Skip to main content

Create Orders

Type: POST

Description: /future/trade/v1/order/create

Content-Type = application/x-www-form-urlencoded && application/json Note:This method does not require a signature.

Parameters

NameTypeMandatoryDefaultDescriptionRanges
clientOrderIdstringfalseN/AClient order ID
symbolstringtrue-Trading pair
orderSidestringtrueN/AOrder sideBUY;SELL
orderTypestringtrueN/AOrder typeLIMIT;MARKET
origQtynumbertrueN/AQuantity (Cont)
pricenumberfalseN/APrice
timeInForcestringfalseGTCValid wayGTC;IOC;FOK;GTX
triggerProfitPricenumberfalseN/AStop profit price
triggerStopPricenumberfalseN/AStop loss price
positionSidestringtrueN/APosition sideLONG;SHORT

OrigQty Calculation Formula

Formula

Explain

  • Truncate: take the integer part
  • Balance: (walletBalance - openOrderMarginFrozen), api: /future/user/v1/compat/balance/list
  • Percent: user input, e.g. 0.2
  • Leverage: leverage you want, e.g. 20
  • Mark_price: current symbol mark price, e.g. 88888 (btc_usdt)
  • Contract_size: contractSize, api: /future/market/v1/public/symbol/detail, contract multiplier (face value)

Example truncate(10000 _ 0.2 _ 20 / 88888 / 0.0001) = 4500


Limit Flow Rules

200/s/apikey

Response Example

Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {},
"returnCode": 0
}