Skip to Content

Query Open Orders

Request URL

GET /ftapi/v1/openOrder

Request Parameters

NameTypeRequiredDescription
symbolIdSTRINGNOTrading pair
orderIdLONGNOOrder ID
limitINTNONumber of results, max 1000

Response Parameters

NameTypeDescription
codeSTRINGResponse Code
msgSTRINGResponse Message
successBOOLEANSuccess Flag
data[].avgPriceSTRING
data[].conditionOrderIdSTRING
data[].ctimeINTEGER
data[].feeAmountSTRING
data[].feeAssetIdSTRING
data[].leverageINTEGER
data[].marginModeSTRING
data[].mtimeINTEGER
data[].orderIdSTRING
data[].positionModeSTRING
data[].postOnlyINTEGER
data[].priceSTRING
data[].profitSTRING
data[].profitRateSTRING
data[].quantitySTRING
data[].reduceOnlyBOOLEAN
data[].remainingLockedSTRING
data[].sideSTRING
data[].statusSTRING
data[].symbolIdSTRING
data[].timeInForceSTRING
data[].totalAmountSTRING
data[].totalQuantitySTRING
data[].tpSlOBJECT
data[].tradeAmountSTRING
data[].tradeQuantitySTRING
data[].typeSTRING
data[].uidSTRING

Request Example

https://openapi.bittap.com/ftapi/v1/openOrder?symbol=BTC-USDT-M

Response Example

{ "code": "0", "data": [ { "avgPrice": "104616.7", // Average fill price (fill amount / fill quantity) "conditionOrderId": "", // Conditional order ID (empty if not conditional order) "ctime": 1762239532998, // Creation time (millisecond timestamp) "feeAmount": "0.044985181", // Fee generated (unit: feeAssetId) "feeAssetId": "USDT", // Fee currency (e.g., USDT) "leverage": 20, // Leverage (e.g., 20x) "marginMode": "CROSSED", // Margin mode: CROSSED=cross margin, ISOLATED=isolated margin "mtime": 1762239539000, // Last update time (millisecond timestamp) "orderId": "111479286124253184", // Order unique ID (long converted to string) "positionMode": "HEDGE", // Position mode: HEDGE=hedge mode, ONEWAY=one-way mode "postOnly": 0, // Post only: 0=no (allow taker), 1=yes (maker only) "price": "104616.7", // Order price (valid for limit orders) "profit": "0", // Realized PnL (only valid after fill) "profitRate": "0", // PnL rate (profit / margin) "quantity": "0.1314", // Current remaining unfilled quantity "reduceOnly": false, // Reduce only: true=reduce only, false=normal order "remainingLocked": "687.331719", // Remaining locked margin (unreleased portion) "side": "BUY", // Direction: BUY=buy/long, SELL=sell/short "status": "OPEN", // Order status: OPEN=open, FILLED=filled, CANCELED=canceled "symbolId": "BTC-USDT-M", // Trading pair identifier (BTC-USDT perpetual contract) "timeInForce": "GTC", // Time in force strategy: GTC=good till canceled, IOC=immediate or cancel, FOK=fill or kill "totalAmount": "14196.48619", // Total order amount (price * totalQuantity) "totalQuantity": "0.1357", // Total order quantity "tpSl": { // Take profit/stop loss settings "slExecutePrice": null, // Stop loss execution price (if triggered, recorded) "slPrice": null, // Stop loss trigger price "slPriceType": null, // Stop loss type (1=limit, 2=market, etc.) "tpExecutePrice": null, // Take profit execution price (if triggered, recorded) "tpPrice": null, // Take profit trigger price "tpPriceType": null // Take profit type (1=limit, 2=market, etc.) }, "tradeAmount": "449.85181", // Filled amount (cumulative fill amount) "tradeQuantity": "0.0043", // Filled quantity "type": "LIMIT", // Order type: LIMIT=limit order, MARKET=market order "uid": "76957286" // User ID } ], "msg": "Request successful", "success": true }

Error Codes

Error CodeDescription
500Server Error

Code Example

Last updated on: