查询历史止盈止损委托
类型: GET
描述: /future/trade/v1/entrust/profit-list-history
限流规则
200/s/apikey
请求参数
| 名称 | 类型 | 必填 | 默认值 | 描述 | 范围 |
|---|---|---|---|---|---|
| id | integer | FALSE | 1 | 页码 | - |
| limit | integer | FALSE | 10 | 单页数量 | - |
| startTime | integer | FALSE | N/A | 开始时间(默认查询90天前) | - |
| endTime | integer | FALSE | N/A | 结束时间 | - |
| symbol | string | FALSE | N/A | 交易对 | - |
| direction | string | FALSE | NEXT | NEXT;PREVIOUS |
请求示例
curl -G "https://fapi.xt.com/future/trade/v1/entrust/profit-list-history" \
-H "validate-appkey: $APPKEY" \ # 必须
-H "validate-timestamp: $TIMESTAMP" \ # 必须
-H "validate-singature: $SIGNATURE" \ # 必须
-H "Content-Type: application/x-www-form-urlencoded" \ # 必须
-d "symbol=btc_usdt" \
-d "page=1" \
-d "size=10" \
-d "startTime=1762074200000" \
-d "endTime=1762074242467" \
响应示例
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"hasNext": false, // 是否有下一页
"hasPrev": false, // 是否有上一页
"items": [ // 数据列表
{
"profitId": "" // string!Long转的(委托id)
}
]
},
"returnCode": 0
}
错误码
| 错误码 | 描述 |
|---|---|
| invalid_direction | direction 不正确 |
| invalid_limit | limit参数设置不正确 |
| invalid_symbol | 交易对不存在 |