Skip to content

GetChartData

Info

GET https://{some_domain}/quotes/candles

Returns historical OHLC candle data for a symbol and timeframe from local quote storage.

If the symbol has an external source, the server resolves it and reads history using that source name.

Authorization

This endpoint follows the public client HTTP route exposed by the server. If the broker deployment protects it with JWT on the edge, send the usual token in Authorization.

Query Parameters

Field Type Required Description
symbol string Yes Internal symbol name
from int Yes Range start as Unix timestamp in seconds
to int Yes Range end as Unix timestamp in seconds
frame string Yes Candle timeframe, for example 1M, 5M, 1H, 1D
count int No Accepted by validation, currently not used by the handler

Response

Success 200

{
  "structure": ["open", "high", "low", "close", "volume", "time"],
  "data": [
    [1.1000, 1.1020, 1.0990, 1.1015, 1200, 1712448000],
    [1.1015, 1.1050, 1.1000, 1.1045, 980, 1712451600]
  ]
}

Each candle row is returned as:

[open, high, low, close, volume, time]

Error Responses

Code Error Description
400 INVALID_DATA Invalid request payload
401 <FormatErrorCode> Symbol not found or symbol resolution failed