Skip to main content

Cross Place Order

Rate Limit: 10 req/sec/UID

Description

HTTP Request

  • POST /api/v2/margin/crossed/place-order
Request Example
curl -X POST "https://api.bitget.com/api/v2/margin/crossed/place-order"  -H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" -d '{"symbol": "BTCUSDT", "side":"buy", "orderType":"market", "force":"gtc", "quoteSize":"10000", "loanType":"normal"}'

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pairs, like BTCUSDT
orderTypeStringYesOrder type
limit: limit price
market: market price
priceStringNoPrice
loanTypeStringYesMargin 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
forceStringYesTime in force (invalid when orderType is market)
gtc: Normal limit order, good till canceled
post_only: Post only
fok: Fill or kill
ioc: Immediate or cancel
baseSizeStringNoMust fill limit and market sell. Sell order presents quantity of based currency (the left coin).
quoteSizeStringNoMust fill market buy. Buy order presents quantity of quote currency (the right coin).
clientOidStringNoCustomized ID
The idempotency time is 6 hours, only valid when orders are unfilled.
sideStringYesDirection
sell: Sell
buy: Buy
stpModeStringNoSTP Mode, default none
none not setting STP
cancel_taker cancel taker order
cancel_maker cancel maker order
cancel_both cancel both of taker and maker orders
Response Example
{
"code": "00000",
"data": {
"orderId": "121211212122",
"clientOid": "121211212122"
},
"msg": "success",
"requestTime": 1627293504612
}

Response Parameters

ParameterTypeDescription
orderIdStringOrder ID
clientOidStringCustomized ID

How was your Reading Experience with us?