Skip to content

api data tick

ntwerd edited this page Apr 12, 2023 · 3 revisions

Ticker Data


Returns json data about ticker [date, price, volume].

URL

http://122.8.148.106/robot/api/v1/data/tick/<brokerCode>/<accountNo>

Method:

GET

Required:

Header : X-API-KEY

URL Params

  • symbol=[string]
  • startTime=[yyyy-MM-dd HH:mm:ss]
  • endTime=[yyyy-MM-dd HH:mm:ss]

Sample Params

?symbol=PTT&startTime=2018-08-15 00:00:00&endTime=2018-08-17 00:00:00

Success Response:

  • Code: 200

    Content: Time Last Volume

2018-08-15 09:55:12.369,51.5,1358400
2018-08-15 09:55:36.354,51.5,200000
2018-08-15 09:55:36.354,51.5,94500
2018-08-15 09:55:36.354,51.5,5500
...

Error Response:

  • Code: 200

    Content:

{
    "status": "F",
    "message": "Invalid API key",
    "data": {
        "className": "InvalidApiKeyException"
    }
}

Clone this wiki locally