Market History

This API provides summarized trading data of all markets over the past 24 hours.

GET /api/v1/kline/?symbol=string&interval=KLineInterval
GET /api/v1/kline/?symbol=string&interval=KLineInterval&startTime=number
GET /api/v1/kline/?symbol=string&interval=KLineInterval&endTime=number
GET /api/v1/kline/?symbol=string&interval=KLineInterval&startTime=number&endTime=number

Queries

  • symbol: string

    • A market symbol, which is a combination of a base ticker, a colon, and a quote ticker.

    • E.g., ETH_ETHSEPOLIA:USDT_ETHSEPOLIA

  • interval: KLineInterval

    • A time period of a single bar.

  • startTime?: number

    • Optional

    • Defaults to 0

    • The start timestamp of a chart, expressed in seconds.

  • endTime?: number

    • Optional

    • Defaults to Date.now()

    • The end timestamp of a chart, expressed in seconds.

Examples

curl -X GET \
    -H "Nectar-Api-Key: <apikey>" \
    <nectar_url>/api/v1/kline/?symbol=ETH_ETH:USDT_ETH&startTime=1695169493&endTime=1695169494&interval=1S

Response

For more detailed information, please refer to the link below:

Last updated