mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
77 lines
2.1 KiB
JSON
77 lines
2.1 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"
|
|
},
|
|
"response": {
|
|
"symbol": "AAPL",
|
|
"date": "2020-10-01",
|
|
"orders": [
|
|
{
|
|
"bid_price": 101,
|
|
"bid_size": 112,
|
|
"timestamp": "2020-10-01T08:00:00.037685138Z"
|
|
},
|
|
{
|
|
"bid_price": 116.52,
|
|
"bid_size": 1,
|
|
"timestamp": "2020-10-01T08:00:00.053150454Z"
|
|
},
|
|
{
|
|
"ask_price": 116.92,
|
|
"bid_price": 116.7,
|
|
"ask_size": 1,
|
|
"bid_size": 3,
|
|
"timestamp": "2020-10-01T08:00:17.417598642Z"
|
|
}
|
|
]
|
|
}]
|
|
|
|
}
|