Kline (Candlestick) API

Retrieve historical candlestick/OHLC data for tokens.

Endpoint

GET /api/v1/historyKLines

Parameters

Parameter
Type
Required
Description

symbol

string

Yes

Trading pair symbol (e.g., ETH/USD, BTC/USD)

interval

string

Yes

Candlestick interval

start_time

number

No

Start timestamp (seconds)

end_time

number

No

End timestamp (seconds)

limit

number

No

Number of candles to return

Supported Intervals

Interval
Description

1m

1 minute

5m

5 minutes

15m

15 minutes

30m

30 minutes

1h

1 hour

4h

4 hours

1d

1 day

1w

1 week

Response

Response Fields

Top-level Fields

Field
Type
Description

code

number

HTTP status code (200 for success)

data

object

Response data containing candles

is_success

boolean

Whether the request was successful

msg

string

Error message (empty on success)

Candle Fields

Field
Type
Description

symbol

string

Trading pair symbol

interval

string

Candlestick interval

timestamp

number

Candle open time (Unix seconds)

open

string

Opening price (USD)

high

string

Highest price (USD)

low

string

Lowest price (USD)

close

string

Closing price (USD)

volume

string

Trading volume in base token

volume_quote

string

Trading volume in quote currency

trade_count

number

Number of trades in this candle

oracle_count

number

Number of oracle price updates

is_empty

boolean

Whether the candle has no data

Error Codes

Code
Description

400

Invalid request parameters

404

Symbol not found

500

Internal server error

Last updated