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
fromOrderIdLONG1470930457684189696From Order ID
symbolSTRINGBTCUSDCurrency pair. Return all if not specified. If no value specified, return entries for all symbols
sideSTRINGBUYSide
limitINTEGER20Default 500, Maximum 1000
timestampLONGY1714311403031Timestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
NoObject ArrayQuery result array
- accountIdLONG1471090223379184384Account number
- exchangeIdLONG301Exchange Number
- symbolSTRINGBTCUSDTrading pair
- symbolNameSTRINGBTCUSDTrading pair name
- clientOrderIdSTRING123456An ID defined by the client for the order, it will be automatically generated if it is not sent in the request
- orderIdLONG1470930457684189696System generated order ID
- priceSTRING (decimal)28000Price
- origQtySTRING (decimal)0.01Quantity
- executedQtySTRING (decimal)0Traded volume
- cumulativeQuoteQtySTRING (decimal)0Cumulative volume
- avgPriceSTRING (decimal)0Average traded price
- statusENUMNEWOrder status
- timeInForceENUMGTCDuration of the order before expiring
- typeENUMLIMITOrder Type
- sideENUMBUYBUY or SELL
- stopPriceSTRING (decimal)0.0Not used
- icebergQtySTRING (decimal)0.0Not used
- timeLONG1690084574839Order created timestamp
- updateTimeLONG1690084574843Order last updated timestamp
- isWorkingBOOLEANTRUENot used
- reqAmountSTRING0Requested cash amount
- stpModeENUMEXPIRE_TAKERSelf Trade Prevention Mode.
Enum: EXPIRE_TAKER, EXPIRE_MAKER
Default EXPIRE_TAKER if not specified.
Query Params
int64

System order Id

string

Instrument ID

int32

Default 500; Max 1000.

int64

recv Window

string

Side

int64
required
Defaults to 1714237947157

Millisecond timestamp

string
required
Defaults to caf0df2a514493b7c6e1ed66e32011b78910ee7f63b117e3c515f127e097820d

Signature

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json