API Reference

Get Current Open orders

Query current active orders

Weight: 1

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'dExample valuesDESCRIPTION
orderIdLONG1470930457684189696Order ID
symbolSTRINGBTCUSDCurrency pair. Return all if not specified.
sideSTRINGBUYSide
limitINTEGER20Default 500, Maximum 1000
timestampLONGY1714311403031Timestamp

Response Content


PARAMETER

TYPE

Example values

DESCRIPTION

No

Object Array

Query result array

  • accountId

LONG

1471090223379184384

Account number

  • exchangeId

LONG

301

Exchange Number

  • symbol

STRING

BTCUSD

Trading pair

  • symbolName

STRING

BTCUSD

Trading pair name

  • clientOrderId

STRING

123456

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

  • orderId

LONG

1470930457684189696

System generated order ID

  • price

STRING (decimal)

28000

Price

  • origQty

STRING (decimal)

0.01

Quantity

  • executedQty

STRING (decimal)

0

Traded volume

  • cumulativeQuoteQty

STRING (decimal)

0

Cumulative volume

  • avgPrice

STRING (decimal)

0

Average traded price

  • status

ENUM

NEW

Order status

  • timeInForce

ENUM

GTC

Duration of the order before expiring

  • type

ENUM

LIMIT

Order Type

  • side

ENUM

BUY

BUY or SELL

  • stopPrice

STRING (decimal)

0.0

Not used

  • icebergQty

STRING (decimal)

0.0

Not used

  • time

LONG

1690084574839

Order created timestamp

  • updateTime

LONG

1690084574843

Order last updated 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!