跳到主要内容

创建止盈止损

类型: POST

描述: /future/trade/v1/entrust/create-profit

备注: Content-Type = application/x-www-form-urlencoded && application/json

限流规则

200/s/apikey

参数

名称类型必填默认值描述范围
symbolstringfalseN/A交易对
origQtyintegertrue数量(张)
triggerProfitPriceintegertrue止盈触发价格
triggerStopPriceintegertrue止损触发价格
expireTimeintegertrue过期时间
positionSidestringtrue持仓方向LONG;SHORT
profitDelegateOrderTypestringtrue止盈委托订单类型LIMIT, MARKET
profitDelegateTimeInForcestringtrue止盈委托订单有效期GTC, FOK, IOC, GTX
profitDelegatePricenumberfalse止盈委托价格
stopDelegateOrderTypestringtrue止损委托订单类型LIMIT, MARKET
stopDelegateTimeInForcestringtrue止损委托订单有效期GTC, FOK, IOC, GTX
stopDelegatePricenumberfalse止损委托价格

请求示例

Java
public void getKLine() {
String text = HttpUtil.get(URL + "/data/api/future/trade/v1/getKLine?market=btc_usdt&type=1min&since=0");
System.out.println(text);
}