Search Historical Orders
1. Request Url
https://{host}/marketApi/historyOrders
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
"averagePrice":"",
8
"createTime":"2019-07-31 11:12:06",
9
"orderId":"gxrn9R0N4weI",
10
"price":"1",
11
"status":"canceled",
12
"successAmt":"0",
13
"successTradeAmt":"0",
14
"totalAmt":"1",
15
"totalTradeAmt":"1",
16
"tradeFee":"0",
17
"tradePair":"BTC/USDT",
18
"type":"buy",
19
"updateTime":"2019-07-31 11:12:06"
20
}
21
],
22
"pageNo":1,
23
"pageSize":10,
24
"totalCount":60,
25
"totalPage":6
26
},
27
"resCode":"800",
28
"resMsg":"SUCCESS"
29
}
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: 1
The total volume
Y
totalTradeAmt
String
30
Y
eg: 0.21312
Deal volume
Y
successTradeAmt
String
30
Y
eg: 0.21312
Type
Y
type
String
20
Y
eg: buy
Fee
Y
tradeFee
String
20
Y
eg: 0.000426
Average price
Y
averagePrice
String
20
Y
eg: 0.21312
Status
Y
status
String
30
Y
eg: canceled
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