Skip to main content

Candle

GET 

/api/v1/dex/candle

Fetch historical candle data for a given chain, exchange, pool and interval.

Request

Query Parameters

    chain stringrequired

    Specifes chain

    Example: kaia_mainnet
    exchange stringrequired

    Specifes exchange

    Example: binance
    pool stringrequired

    Specifies pool

    Example: 0x
    interval string

    Specifies interval

    Default value: 1d
    Example: 1d
    from string

    Specifies from

    Example: 2021-01-01
    to string

    Specifies to

    Example: 2021-01-01
    page integer

    Page number

    Default value: 1
    Example: 1
    limit integer

    Page size

    Default value: 1000
    Example: 1000
    sort string

    Possible values: [asc, desc]

    Specifies sort

    Default value: asc
    Example: asc

Header Parameters

    X-DTMX-APIKEY stringrequired

    Your DataMaxi+ API key

Responses

OK

Schema

    chain string

    data

    object[]

  • Array [

  • c number

    specifies close price of the candle

    Example: 60778.21
    d integer

    specifies the opening date and time of candle

    h number

    specifies high price of the candle

    Example: 60778.21
    l number

    specifies low price of the candle

    Example: 60724.33
    o number

    specifies open price of the candle

    Example: 60724.33
    v number

    specifies trading volume (base token) of the candle

    Example: 22.94612
  • ]

  • exchange string
    from string
    interval string
    key string
    limit integer
    page integer
    pool string
    sort string
    to string
    total integer
Loading...