跳到主要内容

根据profitId查询止盈止损

GET

/az/future/trade/v1/entrust/profit-detail

限流规则​

200/s/apikey

请求参数​

参数类型是否必须默认值描述取值范围
profitIdintegertrueN/A止盈止损id

Java

public void getMarketConfig() {
String text = HttpUtil.get(URL + "/data/api/az/future/trade/v1/getMarketConfig");
System.out.println(text);
}

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"profitId": 0, //委托id
"symbol": "", //交易对
"positionSide": "", //仓位方向
"origQty": 0, //数量(base 币)
"leverage": 0, //杠杆倍数
"triggerPriceType": "", //触发价格类型
"triggerProfitPrice": 0, //止盈价格
"triggerStopPrice": 0, //止损价格
"entryPrice": 0, //开仓均价
"positionSize": 0, //持仓数量(base 币)
"isolatedMargin": 0, //逐仓保证金
"executedQty": 0, //实际成交
"avgPrice": 0, //实际成交均价
"positionType": "", //仓位类型
"delegateQty": 0, //实际委托数量
"delegatePrice": 0, //实际委托价格
"profitDelegateOrderType": "", //止盈委托订单类型
"profitDelegateTimeInForce": "", //止盈委托有效方式
"profitDelegatePrice": 0, //止盈委托委托价格
"stopDelegateOrderType": "", //止损委托订单类型
"stopDelegateTimeInForce": "", //止损委托有效方式
"stopDelegatePrice": 0, //止损委托价格
"closeType": "", //平仓类型:FIXED 固定 ALL 全部
"state": "", //订单状态 NOT_TRIGGERED:新建委托(未触发);TRIGGERING:触发中;TRIGGERED:已触发;USER_REVOCATION:用户撤销;PLATFORM_REVOCATION:平台撤销(拒绝);EXPIRED:已过期;DELEGATION_FAILED:委托失败
"desc": "", //描述,撤销、委托失败等描述
"triggerPriceSide": "", //实际触发方式:PROFIT 止盈触发,STOP 止损触发
"createdTime": 0, //时间
"updatedTime": 0, //最后变更时间
"sourceType": "" //来源
},
"returnCode": 0
}