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
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
chain string
data
object[]
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
{
"chain": "string",
"data": [
{
"b": 0,
"bq": 0,
"d": 0,
"i": 21,
"m": "string",
"p": 0,
"qq": 0,
"s": "string",
"t": "string",
"tx": "string"
}
],
"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...