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
Parameter | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Trading pairs, like BTCUSDT |
orderId | String | No | Order ID |
clientOid | String | No | Client customized ID |
startTime | String | Yes | Start time, Unix millisecond timestamp |
endTime | String | No | End time, Unix millisecond timestamp |
limit | String | No | Number of quiries Default: 100 entries |
idLessThan | String | No | For 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
Parameter | Type | Description |
---|---|---|
symbol | String | Trading pair |
orderId | String | Order no. |
clientOid | String | Client customized ID |
size | String | Filled quantity |
priceAvg | String | Order price |
amount | String | Filled quantity |
force | String | Order bot gtc: normal limit order, good till canceled post_only: Post only fok: Fill or kill ioc: Immediate or cancel |
price | String | Order price |
enterPointSource | String | Order 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 |
status | String | Order statuslive : New orderpartial_fill : Partially filledfilled : Fully filledcancelled : The order is cancelledreject : Rejected |
side | String | Directionsell : Sellbuy : Buyliquidation-buy : Settlement – buyliquidation-sell : Settlement – sellsystemRepay-buy : Repay by system – buysystemRepay-selll : Repay by system – sell |
baseSize | String | Quantity of the base currency |
quoteSize | String | Quantity of the quote currency |
orderType | String | Order type limit: limit price market: market price |
cTime | String | Creation time |
uTime | String | Updated time |
loanType | String | Margin 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 |