-
Notifications
You must be signed in to change notification settings - Fork 5
Trading 获取历史委托
CoinTiger-API edited this page Dec 6, 2018
·
6 revisions
{Trading_Macro}/api/order/history (GET) : 包括已成交,撤销,撤销部分
请求参数
参数 | 填写类型 | 说明 |
---|---|---|
api_key | 必填 | 平台分配的api key |
offset | 必填 | 起始行数,最小为1 |
limit | 必填 | 获取的条数,最大值:500 |
symbol | 必填 | 如,tchbtc, ethbtc |
time | 必填 | 时间戳 |
sign | 必填 | 签名 |
响应体
字段 | 实例 | 解释 |
---|---|---|
code | 0 | |
msg | "suc" | code>0 失败 |
data | {"offset":1,"limit":100,"count":1000,"list":[]} | 其中list内容,详见下面内容 |
{
"volume": {
"amount": "1.000",
"icon": "",
"title": "委托数量"
},
"age_price": {
"amount": "0.00000000",
"icon": "",
"title": "平均成交价"
},
"side": "BUY",
"price": {
"amount": "0.04478883",
"icon": "",
"title": "委托价格"
},
"created_at": 1513415184838,
"deal_volume": {
"amount": "0.00000000",
"icon": "",
"title": "成交量"
},
"id": 196,
"label": {
"go": "trade",
"title": "已成交",
"click": 1
},
"side_msg": "买入"
}
English Documents click here