TRXMarket
Search
K

Get Trading History

Introduction
This endpoint allows you to get trading history of trading pairs.
API Address
Request Method
GET
Query Parameters
Name
Type
Required
Default Value
Description
Value Range
Example
pair
string
Yes
-
Trading pair
Trading pair ID value
TRX-USDT
fromId
int
No
0
Get trading history with order_id greater than or equal to this value
Non-negative integer
0
limit
int
No
100
Total number of records that need to be looked up
Non-negative integer
10
Response Content
Name
Type
Description
Example
code
int
Status code (For details, please refer to status code)
0
message
string
Message (For details, please refer to status code)
OK
id
int
Order ID
454991
timestamp
int
Deal Time
1555923439
price
float64
Deal Price
0.00293
amount
float64
Trading Volume (unit: quote token)
477.184488
type
string
Trading direction
sell
Response Example
{
code: 0,
message: "OK",
data: {
rows: [
{
id: 454991,
timestamp: 1555923439,
price: 0.00293,
amount: 477.184488,
type: "sell"
},
{
id: 454997,
timestamp: 1555923497,
price: 0.00297,
amount: 636.075693,
type: "sell"
},
{
id: 455001,
timestamp: 1555923550,
price: 0.00299,
amount: 687.241633,
type: "sell"
}
]
}
}