Get Candlesticks
GET
https://chartdata.sfox.com/candlesticks
Retrieve historical candlestick / OHLCV (Open-High-Low-Close-Volume) data for a currency pair. Returns an array of objects, each representing a candle.
Data represents aggregated trades data from all of sFOX's supported liquidity providers. NOT representative of trades executed on sFOX.
Data is not forward-filled and, therefore, may be incomplete. e.g. no data will be returned for an interval during which 0 trades were recorded.
Responses are limited to 500 candles. If the requested startTime
, endTime
, and period
will result in more than 500 data points, your request will be rejected. To retrieve data over a larger time range, you will need to make multiple requests with new startTime
/ endTime
ranges. Candles may precede your specified startTime
value.
Query Parameters
Parameter | Type | Description |
---|---|---|
| string | Specify the currency pair to retrieve data for. e.g. |
| timestamp | The unix timestamp (seconds) of the first datapoint returned |
| timestamp | The unix timestamp (seconds) of the last datapoint you want returned |
| int | The duration or interval of each datapoint or candle in seconds (e.g.
|
Response Body
Key | Description |
---|---|
| The price of the first trade recorded after the |
| The highest trade price during this period |
| The lowest trade price during this period |
| The price of the last trade executed in this period |
| Total base currency volume traded during this period |
| The unix timestamp of the beginning of the period |
| The trading pair / symbol |
| The duration of each datapoint in seconds |
| The volume-weighted average price of the period |
| The total number of trades executed across all liquidity providers during that period |
Responses
Example Request
Last updated