Skip to main content
GET
/
v1
/
market
/
kline
Get unified market kline (OHLCV)
curl --request GET \
  --url https://data-tools.prd.arrays.org/api/v1/market/kline
{
  "data": [
    {
      "price_close": 123,
      "price_high": 123,
      "price_low": 123,
      "price_open": 123,
      "time_close": "<string>",
      "time_open": "<string>",
      "volume": 123
    }
  ],
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "details": [
      {
        "field": "<string>",
        "got": "<string>",
        "reason": "<string>"
      }
    ],
    "docs_url": "<string>",
    "examples": [
      "<string>"
    ],
    "hint": "<string>",
    "message": "The requested resource was not found.",
    "suggestions": [
      "<string>"
    ]
  },
  "pagination": "<unknown>",
  "request_id": "<string>",
  "success": true
}

Query Parameters

trading_pair
string
required

Trading pair (e.g. BINANCE_SPOT_BTC_USDT, US_SPOT_AAPL_USD)

start_time
string
required

Start time in ISO 8601 / RFC3339 format (e.g. 2025-01-01T00:00:00Z)

end_time
string
required

End time in ISO 8601 / RFC3339 format (e.g. 2025-01-02T00:00:00Z)

interval
enum<string>
required

Kline interval

Available options:
1min,
5min,
15min,
30min,
1h,
4h,
1d,
1w,
1m
limit
integer

Max number of bars (default 500, max 10000)

session
string

Trading session: RTH or ETH (default ETH, stock/option only)

Response

OK

data
object[]
error
object
pagination
any
request_id
string
success
boolean