Skip to main content

Trade

GET 

/api/v1/dex/trade

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

Request

Query Parameters

    exchange stringrequired

    Specifes exchange

    Example: klayswap
    pool stringrequired

    Specifies pool

    Example: 0x
    page string

    Default value: 1

    Specifies page

    Example: 1
    limit string

    Default value: 1000

    Specifies limit

    Example: 1000
    from string

    Specifies from

    Example: 2021-01-01
    to string

    Specifies to

    Example: 2021-01-01
    sort string

    Possible values: [asc, desc]

    Default value: asc

    Specifies sort

    Example: asc

Header Parameters

    X-DTMX-APIKEY stringrequired

    Your DataMaxi+ API key

Responses

OK

Schema

  • Array [

  • data

    object[]

    data specifies an array of DEX trade data

  • Array [

  • b integer

    specifies the block number

    bq string

    specifies the base quantity in base unit

    d string

    specifies the data and time

    m string

    specifies the maker

    p string

    specifies the price in quote unit

    pool string

    specifies the pool

    qq string

    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

  • ]

  • 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...