Trade
GET/api/v1/dex/trade
Get historical DEX trade data for a given exchange
and symbol
.
Request
Query Parameters
Specifes chain
Specifes exchange
Specifies pool
Specifies from
Specifies to
Page number
1
Page size
1000
Possible values: [asc
, desc
]
Specifies sort
asc
Header Parameters
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
specifies the block number
specifies the base
specifies the base quantity in base unit
specifies the data and time
specifies the log index
21
specifies the maker
specifies the price in quote unit
specifies the quote quantity in base unit
specifies the quote
specifies the symbol
specifies the type (buy, sell, deposit, withdrawal)
specifies the tokenId
specifies the transaction hash
{
"chain": "string",
"data": [
{
"b": 0,
"base": "string",
"bq": 0,
"d": 0,
"i": 21,
"m": "string",
"p": 0,
"qq": 0,
"quote": "string",
"s": "string",
"t": "string",
"tokenId": "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
specifies the error message
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error
specifies the error message
{
"error": "string"
}