Liquidity
GET/api/v1/dex/liquidity
Get 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
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
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
chain string
data
object[]
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
i 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
exchange string
from string
key string
limit integer
page integer
pool string
sort string
to string
total integer
{
"chain": "string",
"data": [
{
"a": [
"SLN",
"USDT"
],
"b": 147266718,
"d": 1709248218,
"i": 21,
"m": 5.992519328803503e+47,
"q": [
0.01594542081681406,
0.073019
],
"s": "SLN-USDT",
"t": "string",
"tx": 2.2351681173547467e+76
}
],
"exchange": "string",
"from": "string",
"key": "string",
"limit": 0,
"page": 0,
"pool": "string",
"sort": "string",
"to": "string",
"total": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Loading...