HTTP · Spot trading

Get Open Orders

Returns orders that are still open (not fully filled).

GEThttps://api.koinsayang.com/api/v2/spot/trade/unfilled-orders

Request parameters

NameTypeRequiredDescription
symbol
query
stringOptionalTrading pair, e.g. BTCUSDT
startTime
query
stringOptionalQuery start time (only data from the last 90 days can be returned. When accessing a managed sub-account, startTime cannot be earlier than the binding start time.)
endTime
query
stringOptionalQuery end time (the range between trigTime and endTime cannot exceed 90 days)
idLessThan
query
stringOptionalLast orderId of the previous page, for pagination
limit
query
stringOptionalNumber of records, default 100, max 100
orderId
query
stringOptionalOrder ID
force
query
stringOptionalExecution strategy (not applicable when orderType is market; see enumeration values: Execute strategy)

Response fields

FieldTypeDescription
userIdstringAccount ID
symbolstringTrading pair
orderIdstringOrder ID
clientOidstringClient order ID
priceAvgstringOrder price
sizestringOrder size (base coin when orderType = limit; quote coin when orderType = market)
orderTypestringOrder type (see enumeration values: order type)
sidestringTrade side (see enumeration values: trade side)
statusstringOrder status (see enumeration values: order status)
basePricestringFill price
baseVolumestringFilled quantity
quoteVolumestringTotal filled value
forcestringExecution strategy (not applicable when orderType is market; see enumeration values: Execution strategy)
cTimestringCreation time (Unix timestamp in milliseconds)
uTimestringUpdate time (Unix timestamp in milliseconds)

Response example

200 · application/json
{
"code": "00000",
"msg": "success",
"requestTime": 1766140196667,
"data": [
{
"userId": "1009178902657",
"symbol": "BTCUSD",
"orderId": "1385439562767183872",
"clientOid": "osl-global-eth-usdtXMRX3ea35dac900006",
"priceAvg": "100100.2900000000000000",
"size": "0.5000000000000000",
"orderType": "limit",
"side": "buy",
"status": "partially_filled",
"basePrice": "100100.2900000000000000",
"baseVolume": "0.1000000000000000",
"quoteVolume": "10010.0290000000000000",
"force": "post_only",
"cTime": "1766040452663",
"uTime": "1766042034254"
}
]
}