Skip to content

Interface: FuturesSubmitCrossTpslOrderReq ​

Req for POST /linear-swap-api/v1/swap_cross_tpsl_order. [Cross] Set Take-profit and Stop-loss for existing position. Cross margin only. One of (pair+contract_type) or contract_code required; contract_code preferred when all filled. At least one of tp_trigger_price and sl_trigger_price required. Trade. 5/s.

Properties ​

PropertyTypeDescription
contract_code?stringContract code. swap: BTC-USDT; future: BTC-USDT-210625. Preferred when all filled
contract_type?stringswap, this_week, next_week, quarter, next_quarter
directionFuturesDirectionbuy or sell
pair?stringPair (e.g. BTC-USDT). Use with contract_type
price_protect?booleanPrice protection. Default false. Only when setting tp/sl
sl_order_price?string | numberStop-loss order price (not required for optimal_5/10/20)
sl_order_price_type?"market" | "limit" | "optimal_5" | "optimal_10" | "optimal_20"market (default), limit, optimal_5, optimal_10, optimal_20
sl_trigger_price?string | numberStop-loss trigger price
tp_order_price?string | numberTake-profit order price (not required for optimal_5/10/20)
tp_order_price_type?"market" | "limit" | "optimal_5" | "optimal_10" | "optimal_20"market (default), limit, optimal_5, optimal_10, optimal_20
tp_trigger_price?string | numberTake-profit trigger price
volumestring | numberVolume (number of contracts)

Built by Siebly. Open source SDKs for exchange APIs.