Skip to main content

Get Cross Current Orders

Frequency limit:10 times/1s (UID)

Description

HTTP Request

  • GET /api/v2/margin/crossed/open-orders
Request Example
curl "https://api.bitget.com/api/v2/margin/crossed/open-orders?symbol=BTCUSDT&limit=20&startTime=1693205171000&endTime=1694155571000" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pairs, like BTCUSDT
orderIdStringNoOrder ID
clientOidStringNoClient customized ID
startTimeStringYesStart time, Unix millisecond timestamp
endTimeStringNoEnd time, Unix millisecond timestamp
limitStringNoNumber of quiries
Default: 100 entries
idLessThanStringNoFor turning pages. The first query is not passed. When querying data in the second page and the data beyond, the last loanId returned in the last query is used, and the result will return data with a value less than this one; the query response time will be shortened.
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1695636829522,
"data": {
"orderList": [
{
"orderId": "121211212122",
"symbol": "BTCUSDT",
"orderType": "limit",
"enterPointSource": "API",
"clientOid": "myClientOid001",
"loanType": "normal",
"price": "32111",
"side": "buy",
"status": "live",
"baseSize": "0.01",
"quoteSize": "1000",
"priceAvg": "32111",
"size": "0.01",
"amount": "1000",
"force": "gtc",
"cTime": "1695629859821",
"uTime": "1695629890839"
}
],
"maxId": "1",
"minId": "1"
}
}

Response Parameters

ParameterTypeDescription
symbolStringTrading pair
orderIdStringOrder no.
clientOidStringClient customized ID
sizeStringFilled quantity
priceAvgStringOrder price
amountStringFilled quantity
forceStringOrder bot
gtc: normal limit order, good till canceled
post_only: Post only
fok: Fill or kill
ioc: Immediate or cancel
priceStringOrder price
enterPointSourceStringOrder source
WEB: Orders created on the website
API: Orders created on API
SYS: System managed orders, usually generated by forced liquidation logic
ANDROID: Orders created on the Android app
IOS: Orders created on the iOS app
statusStringOrder status
live: New order
partial_fill: Partially filled
filled: Fully filled
cancelled: The order is cancelled
reject: Rejected
sideStringDirection
sell: Sell
buy: Buy
liquidation-buy: Settlement – buy
liquidation-sell: Settlement – sell
systemRepay-buy: Repay by system – buy
systemRepay-selll: Repay by system – sell
baseSizeStringQuantity of the base currency
quoteSizeStringQuantity of the quote currency
orderTypeStringOrder type
limit: limit price
market: market price
cTimeStringCreation time
uTimeStringUpdated time
loanTypeStringMargin order model
normal: place a normal order
autoLoan place an order with auto-borrow
autoRepay place an order with auto-repay
autoLoanAndRepay place an order with auto-borrow and auto-repay

How was your Reading Experience with us?