mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
84 lines
2.4 KiB
JSON
84 lines
2.4 KiB
JSON
|
|
{
|
|
"price": [{
|
|
"title": "Get a stock price",
|
|
"description": "Returns the last traded price of a stock",
|
|
"request": {
|
|
"symbol": "AAPL"
|
|
},
|
|
"response": {
|
|
"symbol": "AAPL",
|
|
"price": 131.265
|
|
}
|
|
}],
|
|
"quote": [{
|
|
"title": "Get a stock quote",
|
|
"description": "Returns the last quote for a stock including bid and ask prices",
|
|
"request": {
|
|
"symbol": "AAPL"
|
|
},
|
|
"response": {
|
|
"symbol": "AAPL",
|
|
"ask": 131.12,
|
|
"bid": 131.11,
|
|
"ask_size": 7,
|
|
"bid_size": 4,
|
|
"timestamp": "2021-06-18T13:49:23.678Z"
|
|
}
|
|
}],
|
|
"history": [{
|
|
"title": "Get historic data",
|
|
"description": "Returns historic stock data for a given date",
|
|
"request": {
|
|
"stock": "AAPL",
|
|
"date": "2020-10-01"
|
|
},
|
|
"response": {
|
|
"symbol": "AAPL",
|
|
"open": 117.64,
|
|
"close": 116.79,
|
|
"high": 117.72,
|
|
"low": 115.83,
|
|
"date": "2020-10-01"
|
|
}
|
|
}],
|
|
"orderBook": [{
|
|
"title": "Order book history",
|
|
"description": "Returns historic order book for a given date",
|
|
"request": {
|
|
"stock": "AAPL",
|
|
"date": "2020-10-01",
|
|
"start": "2020-10-01T10:00:00Z",
|
|
"end": "2020-10-01T11:00:00Z",
|
|
"limit": 3
|
|
},
|
|
"response": {
|
|
"symbol": "AAPL",
|
|
"date": "2020-10-01",
|
|
"orders": [
|
|
{
|
|
"ask_price": 117.49,
|
|
"bid_price": 117.3,
|
|
"ask_size": 1,
|
|
"bid_size": 1,
|
|
"timestamp": "2020-10-01T10:00:02.672770187Z"
|
|
},
|
|
{
|
|
"ask_price": 117.47,
|
|
"bid_price": 117.35,
|
|
"ask_size": 2,
|
|
"bid_size": 1,
|
|
"timestamp": "2020-10-01T10:00:33.258111144Z"
|
|
},
|
|
{
|
|
"ask_price": 117.47,
|
|
"bid_price": 117.3,
|
|
"ask_size": 2,
|
|
"bid_size": 2,
|
|
"timestamp": "2020-10-01T10:00:33.386282508Z"
|
|
}
|
|
]
|
|
}
|
|
}]
|
|
}
|