Get All Open Orders
1. Request Url
https://{host}/marketApi/openOrders
2. Request Param
Parameter name
Is it necessary
description
channelId
Y
Channel number
timestamp
Y
Millisecond timestamp(UTC+8)
pageNo
N
The current number of pages(default: 1)
pageSize
N
Number each page(default: 10)
tradePair
Y
Trade pair
3.Request Example
1
{
2
"channelId":"swft-channel",
3
"sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
4
"timestamp":"1557653925555",
5
"tradePair":"BTC/USDT",
6
"pageNo":"1",
7
"pageSize":"10"
8
}
Copied!
4.Response Data
1
{
2
"data":{
3
"pageContent":[
4
{
5
"availCoinCode":"BTC",
6
"availTradeCode":"USDT",
7
"createTime":"2019-08-02 11:14:00",
8
"orderId":"HRwiB8EgFcx5",
9
"price":"1",
10
"successAmt":"0",
11
"totalAmt":"1",
12
"tradePair":"BTC/USDT",
13
"type":"buy",
14
"updateTime":"2019-08-02 11:14:00"
15
}
16
],
17
"pageNo":1,
18
"pageSize":10,
19
"totalCount":1,
20
"totalPage":1
21
},
22
"resCode":"800",
23
"resMsg":"SUCCESS"
24
}
Copied!
5.Response Data Explanation
Description
Is Array
Parameter name
Data type
Length
Is it necessary
Remark
The current number of pages
N
pageNo
Number
20
Y
eg: 1
Number each page
N
pageSize
Number
20
Y
eg: 10
The total number of records
N
totalCount
Number
20
Y
eg: 2
Total number of pages
N
totalPage
Number
20
Y
eg: 1
OrderId
Y
orderId
String
30
Y
eg: Hushjrw8723
Trading code
Y
availCoinCode
String
20
Y
eg: BTC
Trade zone code
Y
availTradeCode
String
20
Y
eg: USDT
Trade pair
Y
tradePair
String
20
Y
BTC/USDT
Price
Y
price
String
30
Y
eg: 0.21312
Order quantity
Y
totalAmt
String
30
Y
eg: 1
Deal quantity
Y
successAmt
String
30
Y
eg: 0
Type
Y
type
String
20
Y
eg: buy
Create time
Y
createTime
String
30
Y
eg: 2019-08-02 11:14:00(UTC+8)
Update time
Y
updateTime
String
30
Y
eg: 2019-08-02 11:14:00(UTC+8)
Last modified 2yr ago
Copy link