Get Recent Trades

Introduction

This endpoint allows you to get no more than 1000 recent trades of all trading pair

API Address

https://api.trx.market/api/exchange/common/latestOrders

Request Method

GET

Query Parameters

Name

Type

Required

Default Value

Description

Value Range

Example

pairID

string

Yes

-

Trading pair ID

Trading pair ID value in the trading pair list

1

start

int

No

0

Get the initial number of records

[0,1000]

0

limit

int

No

20

Total number of records that need to be looked up

[0,1000]

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

total

int

Total Number of Records

10

blockID

string

Block ID

8591223

buyerAddr

string

Buyer address

TRmCTvQYScxrDN8bWZCzmGYajmeso4YCd6

sellerAddr

string

Seller address

TQxc6m1uZdrQD9xzHWCfRzb1V8e9KbzVSS

volume

float64

Actual turnover (unit: quote token)

242417.1

price

float64

Deal price

0.00307

orderTime

string

Order time

1555922807009

order_type

int

Trading direction 0: buy order, 1: sell order

0

pairID

int64

Trading pair ID

44

unit

string

Internal reserved fields

Response Example

{
code: 0,
message: "OK",
data: {
total: 657,
rows: [
{
blockID: "8591409",
buyerAddr: "TQxc6m1uZdrQD9xzHWCfRzb1V8e9KbzVSS",
sellerAddr: "TRmCTvQYScxrDN8bWZCzmGYajmeso4YCd6",
volume: 215945.4,
price: 0.00302,
orderTime: "1555923364862",
unit: "",
order_type: 1,
pairID: 44
},
{
blockID: "8591381",
buyerAddr: "TQxc6m1uZdrQD9xzHWCfRzb1V8e9KbzVSS",
sellerAddr: "TRmCTvQYScxrDN8bWZCzmGYajmeso4YCd6",
volume: 127945.2,
price: 0.00295,
orderTime: "1555923281164",
unit: "",
order_type: 1,
pairID: 44
}
]
}
}