Skip to main content

Trade

GET 

/api/v1/dex/trade

Get historical DEX trade data for a given exchange and symbol.

Request

Query Parameters

    chain stringrequired

    Specifes chain

    Example: kaia_mainnet
    exchange stringrequired

    Specifes exchange

    Example: klayswap
    pool stringrequired

    Specifies pool

    Example: 0x
    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 [

  • b integer

    specifies the block number

    bq number

    specifies the base quantity in base unit

    d integer

    specifies the data and time

    i integer

    specifies the log index

    Example: 21
    m string

    specifies the maker

    p number

    specifies the price in quote unit

    qq number

    specifies the quote quantity in base unit

    s string

    specifies the symbol

    t string

    specifies the type (buy, sell, deposit, withdrawal)

    tx string

    specifies the transaction hash

  • ]

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