Skip to main content

Liquidity

GET 

/api/v1/dex/liquidity

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

Request

Query Parameters

    chain stringrequired

    Specifes chain

    Example: kaia_mainnet
    exchange stringrequired

    Specifes exchange

    Example: binance
    pool stringrequired

    Specifies pool

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

  • Array [

  • a string[]

    specifies assets that has been added or removed

    Example: ["SLN","USDT"]
    b integer

    specifies the block number

    Example: 147266718
    d integer

    specifies the unix timestamp of liquidity event

    Example: 1709248218
    l integer

    specifies the log index

    Example: 21
    m string

    specifies the maker

    Example: 5.992519328803503e+47
    q number[]

    specifies the quantity in base unit for each asset

    Example: [0.01594542081681406,0.073019]
    s string

    specifies the symbol

    Example: SLN-USDT
    t string

    specifies the type (add, remove)

    tx string

    specifies the transaction hash

    Example: 2.2351681173547467e+76
  • ]

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