-
Notifications
You must be signed in to change notification settings - Fork 2
api data candlestick
ntwerd edited this page Apr 12, 2023
·
3 revisions
Returns candle stick data [Date, Open, High, Low, Close, Volume].
http://122.8.148.106/robot/api/v1/data/candlestick/<brokerCode>/<accountNo>
GET
Header : X-API-KEY
symbol=[string]timeframe=[1, 5, 15, 60, D]startTime=[yyyy-MM-dd]endTime=[yyyy-MM-dd]
Sample Params
?timeframe=W&symbol=PTT&startTime=2018-03-01&endTime=2018-08-18
-
Code: 200
Content: Time,Open,High,Low,Close,Volume,Open Interest
2018-03-02 00:00:00,56.0,56.4,55.2,55.6,20865800,0
2018-03-05 00:00:00,56.0,56.4,55.0,56.2,16926700,0
2018-03-06 00:00:00,55.6,56.0,55.2,55.2,12232300,0
2018-03-07 00:00:00,55.0,55.0,54.0,54.0,16100700,0
......
-
Code: 200
Content:
{
"status": "F",
"message": "Invalid API key",
"data": {
"className": "InvalidApiKeyException"
}
}
Remark Please carefully re-check url params, in case of invalid symbol, system will return empty data.