获取当前委托订单

1. 接口调用:

https://{host}/marketApi/openOrders

2. 请求参数实例

参数

是否必须

说明

channelId

渠道id

timestamp

毫秒时间戳(UTC+8)

sign

签名

pageNo

当前页数(默认1)

pageSize

每页条数(默认10)

tradePair

交易对

3.请求参数示例

 {
     "channelId":"swft-channel",
     "sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
     "timestamp":"1557653925555",
     "tradePair":"BTC/USDT",
     "pageNo":"1",
     "pageSize":"10"
 }

4.返回结果示例

 {
    "data":{
        "pageContent":[
            {
                "availCoinCode":"BTC",
                "availTradeCode":"USDT",
                "createTime":"2019-08-02 11:14:00",
                "orderId":"HRwiB8EgFcx5",
                "price":"1",
                "successAmt":"0",
                "totalAmt":"1",
                "tradePair":"BTC/USDT",
                "type":"buy",
                "updateTime":"2019-08-02 11:14:00"
            }
        ],
        "pageNo":1,
        "pageSize":10,
        "totalCount":1,
        "totalPage":1
    },
    "resCode":"800",
    "resMsg":"成功"
}

5.返回参数说明

字段名称

是否数组

字段

数据类型

数据长度

必须项

备注

当前页数

N

pageNo

Number

20

Y

eg: 1

每页条数

N

pageSize

Number

20

Y

eg: 10

总记录数

N

totalCount

Number

20

Y

eg: 2

总页数

N

totalPage

Number

20

Y

eg: 1

订单号

Y

orderId

String

30

Y

eg: Hushjrw8723

交易币种

Y

availCoinCode

String

20

Y

eg: BTC

交易区币种

Y

availTradeCode

String

20

Y

eg: USDT

交易对

Y

tradePair

String

20

Y

BTC/USDT

价格

Y

price

String

30

Y

eg: 0.21312

下单数量

Y

totalAmt

String

30

Y

eg: 1

成交数量

Y

successAmt

String

30

Y

eg: 0

类型

Y

type

String

20

Y

eg: buy

创建时间

Y

createTime

String

30

Y

eg: 2019-08-02 11:14:00(UTC+8)

更新时间

Y

updateTime

String

30

Y

eg: 2019-08-02 11:14:00(UTC+8)

Last updated