API Reference

Get All Traded orders

Retrieve all traded orders

📘

Note

Frequency Limit Type: WEIGHT: 5

In regards to master API key. The request parameters of "side" and "accountId". If "accountId" is passed, it will only query the orders under the current account. If not passed, it will first query the main account, and if the results are less than 500, it will then query the sub-accounts.

Request Parameters

PARAMETERTYPEReq 'dDESCRIPTION
accountIdSTRINGAccount ID
orderIdLONGFrom Order Id, which is used to return orders whose orders' id are smaller than this orderId
symbolSTRINGCurrency pair
startTimeLONGStart Timestamp
endTimeLONGEnd Timestamp. Only supports the last 90 days timeframe
sideSTRINGSide
limitINTEGERDefault 500, max 1000
timestampLONGYTimestamp

Response Content

PARAMETER

TYPE

Example values

DESCRIPTION

No

Object Array

Query result array

  • accountId

LONG

1464567707961719552

Account ID

  • exchangeId

LONG

301

Account number

  • symbol

STRING

ETHUSD

Trading pair

  • symbolName

STRING

ETHUSD

Trading pair name

  • clientOrderId

STRING

9999999998000

An ID defined by the client for the order, it will be automatically generated if it is not sent in the request

  • orderId

LONG

1484664263574306816

System generated order ID

  • price

STRING(value)

1860

Price

  • origQty

STRING(value)

10

Quantity

  • executedQty

STRING(value)

10

Traded volume

  • cumulativeQuoteQty

STRING(value)

18600

Cumulative volume

  • avgPrice

STRING(value)

1860

Average traded price

  • status

ENUM

FILLED

Order status

  • timeInForce

ENUM

GTC

Duration of the order before expiring

  • type

ENUM

LIMIT

Order Type

  • side

ENUM

SELL

BUY or SELL

  • stopPrice

STRING(value)

0.0

Not used

  • icebergQty

STRING(value)

0.0

Not used

  • time

STRING(value)

1691721772082

Current Timestamp

  • updateTime

STRING(value)

1691721796685

Update Timestamp

  • isWorking

BOOLEAN

true

Not used

  • reqAmount

STRING

0

Requested cash amount

  • stpMode

ENUM

EXPIRE_MAKER

Self Trade Prevention Mode.

Enum: EXPIRE_TAKER, EXPIRE_MAKER
Default EXPIRE_TAKER if not specified.

Language
Credentials
Header
Click Try It! to start a request and see the response here!