Trade
GET/api/v1/dex/trade
Fetch historical DEX trade data for a given exchange
and symbol
.
Request
Query Parameters
Specifes chain
Specifes exchange
Specifies pool
Specifies page
1
Specifies limit
1000
Specifies from
Specifies to
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 [
Array [
]
]
data
object[]
data
specifies an array of DEX trade data
specifies the block number
specifies the base quantity in base unit
specifies the data and time
2021-01-01 00:00:00
specifies the maker
specifies the price in quote unit
specifies the pool
specifies the quote quantity in base unit
specifies the symbol
specifies the type (buy, sell, deposit, withdrawal)
specifies the transaction hash
specifies the start date of the requested data (either from
or to
can be used, but not both)
specifies the number of records per page
specifies the current page of the response
specifies the order of the records
specifies the end date of the requested data (either from
or to
can be used, but not both)
[
{
"data": [
{
"b": 0,
"bq": "string",
"d": "2021-01-01 00:00:00",
"m": "string",
"p": "string",
"pool": "string",
"qq": "string",
"s": "string",
"t": "string",
"tx": "string"
}
],
"from": "string",
"limit": 0,
"page": 0,
"sort": "string",
"to": "string"
}
]
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"
}