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


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
Language
Credentials
Header
Click Try It! to start a request and see the response here!