创建条件单
trading_place_algoCreate conditional orders for Binance futures, including stop loss, take profit, and trailing stop. Set trigger prices, callback rates, and reduce-only or close-position options to automate risk management.
Instructions
创建条件委托(止损/止盈/追踪止损)。type 决定必填参数:
STOP_MARKET / TAKE_PROFIT_MARKET:需 triggerPrice
STOP / TAKE_PROFIT:需 triggerPrice + price(限价委托价)
TRAILING_STOP_MARKET:需 callbackRate(百分比,0.1~10),可选 activatePrice 触发价方向规则(违反将报 -2021 Order would immediately trigger):
止损类(STOP*):BUY 须高于最新价,SELL 须低于最新价
止盈类(TAKE_PROFIT*):BUY 须低于最新价,SELL 须高于最新价 closePosition=true 时触发后全平仓位,且要求该 symbol 已有对应方向持仓 (无持仓时报错 GTE can only be used with open positions),不可传 quantity / reduceOnly。 持仓模式:双向(Hedge)必须传 positionSide(LONG/SHORT),单向省略;可用 trading_position_mode 查询。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| type | Yes | ||
| price | No | 限价委托价,仅 STOP / TAKE_PROFIT 类型需要 | |
| symbol | Yes | ||
| quantity | No | ||
| reduceOnly | No | ||
| timeInForce | No | ||
| workingType | No | ||
| callbackRate | No | 追踪止损回撤百分比(0.1~10,1=1%),仅 TRAILING_STOP_MARKET 需要 | |
| clientAlgoId | No | ||
| positionSide | No | ||
| priceProtect | No | ||
| triggerPrice | No | 触发价。止损类 BUY 须高于现价 / SELL 须低于现价,止盈类相反 | |
| activatePrice | No | 追踪止损激活价,未达到前不开始追踪 | |
| closePosition | No | 触发后全平该合约仓位;为 true 时不可传 quantity / reduceOnly |