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
    page string

    Specifies page

    Default value: 1
    Example: 1
    limit string

    Specifies limit

    Default value: 1000
    Example: 1000
    from string

    Specifies from

    Example: 2021-01-01
    to string

    Specifies to

    Example: 2021-01-01
    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

  • Array [

  • data

    object[]

    data specifies an array of candle data

  • Array [

  • c string

    specifies close price of the candle

    Example: 60778.21000000
    d string

    specifies the opening date and time of candle

    Example: 2021-01-01 00:00:00
    h string

    specifies high price of the candle

    Example: 60778.21000000
    l string

    specifies low price of the candle

    Example: 60724.33000000
    o string

    specifies open price of the candle

    Example: 60724.33000000
    v string

    specifies trading volume (base token) of the candle

    Example: 22.94612000
  • ]

  • from string

    specifies the start date of the requested data (either from or to can be used, but not both)

    limit integer

    specifies the number of records per page

    page integer

    specifies the current page of the response

    sort string

    specifies the order of the records

    to string

    specifies the end date of the requested data (either from or to can be used, but not both)

  • ]

Loading...