Get Candles

This endpoint is used to update the price of a symbol.

GET symbol price

GET http://api.stockhero.ai/candles

Headers

Name
Type
Example

Authorization

Basic Auth

Basic TWlyYWUyRdd0OmhhQDI0QXMjamdkcw==

Please contact us for username and password

Request Body

Name
Type
Required
Description
Example

symbol

string

Full symbol name

AAPL-USD

interval

string

1m, 5m, 15m, 1h, 1d

1m

start_time_ms

int

Get candles from start_time (miliseconds)

1715828406000

end_time_ms

int

Get candles up to end_time (miliseconds)

1655828406000

Responses:

curl --location 'http://127.0.0.1:8000/candles?symbol=XMTS-IDR&interval=1m&start_time_ms=1680652800000&end_time_ms=1716258423000' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic TWlyYWUyMDI0OmhhQDI0QXMjamdk'

Last updated