Links

All Orders

  1. 1.
    Interface call:
https://{host}/api/v2/queryAllTrade
2. Request parameter instance
parameter
whether
explain
equipmentNo
Yes
Equipment unique number
sourceType
Yes
ANDROID,IOS,H5
pageNo
No
It is used to identify which platfEg: 1, default 1: number of records displayed per page
pageSize
No
Eg: 10, default 10
3. Example of request parameters
{
"equipmentNo":"SFjeigreEIFegjieFei",
"sourceType":"H5",
"pageNo":"1",
"pageSize":"10"
}
4.Example of returned results
{
"data": {
"pageContent": [
{
"beginDate": "2022-03-10 18:44:21",
"chainFee": "0.001",
"changeType": "advanced",
"depositFeeRate": "0.002",
"detailState": "timeout",
"feeCoinAmt": "0.004",
"feeCoinCode": "ETH",
"fromCoinAmt": "2",
"fromCoinCode": "ETH",
"instantRate": "6.923076923076",
"isNft": "",
"nftUrl": "",
"orderId": "f94e631b-d99b-4dd5-98f7-09bf99d16d94",
"payTokenUrl": "",
"percentChange": "",
"router": {},
"toCoinAmt": "13.713109",
"toCoinCode": "BNB(BSC)",
"tradeFlag": "",
"tradeState": "timeout"
},
{
"beginDate": "2022-03-10 18:30:36",
"chainFee": "0.001",
"changeType": "advanced",
"depositFeeRate": "0.002",
"detailState": "timeout",
"feeCoinAmt": "0.002",
"feeCoinCode": "ETH",
"fromCoinAmt": "1",
"fromCoinCode": "ETH",
"instantRate": "6.923076923076",
"isNft": "",
"nftUrl": "",
"orderId": "864ca993-8fb8-4715-aab6-cd2e87b625cb",
"payTokenUrl": "",
"percentChange": "",
"router": {},
"toCoinAmt": "6.865979",
"toCoinCode": "BNB(BSC)",
"tradeFlag": "",
"tradeState": "timeout"
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 2,
"totalPage": 1
},
"resCode": "800",
"resMsg": "success",
"resMsgEn": ""
}
5.Return Parameter Description
Field Name
field
data type
remarks
pageNo
pageNo
String
eg:1
pageSize
pageSize
String
eg:10
totalPage
totalPage
String
eg:10
totalCount
totalCount
String
eg:100
pageContent
pageContent
String
eg:[{name1:value1},{name1:value1},{name1:value1}]
fromCoinCode
fromCoinCode
String
eg:ETH
toCoinCode
toCoinCode
String
eg:BTC
fromCoinAmt
fromCoinAmt
String
eg:0.0
toCoinAmt
toCoinAmt
String
eg:0.14
beginDate
beginDate
String
eg:2017-09-08
feeCoinCode
feeCoinCode
String
eg:ETH
ffeeCoinAmt
ffeeCoinAmt
String
eg:0.0003
orderId
orderId
String
eg:d47e8b9b-c17f-432b-9285-a46c0a3ceb9a
tradeState
tradeState
String
"Wait_deposits: currency to be saved, exchange: in exchange complete: complete (successful exchange) timeout: timeout, wait_refund: failed exchange, currency to be returned, refund_complete: returned currency"

Code Example

Nodejs code example

//getToken example
import axios from 'axios'
const params = {
equipmentNo:"zfgryh918f93a19fdg6918a68cf5",
sourceType:"H5",
userNo:"",
sessionUuid:"",
orderId:"",
sourceFlag:"widget",
pageNo:1,
pageSize:5,
fromAddress:"0x19b9918f...f85ad08ba0"
}
const res = await axios.post('https://{host}/api/v2/queryAllTrade', params )
console.log(res)
Postman example
Response Data
{
"data": {
"pageContent": [
{
"beginDate": "2022-03-10 18:44:21",
"chainFee": "0.001",
"changeType": "advanced",
"depositFeeRate": "0.002",
"detailState": "timeout",
"feeCoinAmt": "0.004",
"feeCoinCode": "ETH",
"fromCoinAmt": "2",
"fromCoinCode": "ETH",
"instantRate": "6.923076923076",
"isNft": "",
"nftUrl": "",
"orderId": "f94e631b-d99b-4dd5-98f7-09bf99d16d94",
"payTokenUrl": "",
"percentChange": "",
"router": {},
"toCoinAmt": "13.713109",
"toCoinCode": "BNB(BSC)",
"tradeFlag": "",
"tradeState": "timeout"
},
{
"beginDate": "2022-03-10 18:30:36",
"chainFee": "0.001",
"changeType": "advanced",
"depositFeeRate": "0.002",
"detailState": "timeout",
"feeCoinAmt": "0.002",
"feeCoinCode": "ETH",
"fromCoinAmt": "1",
"fromCoinCode": "ETH",
"instantRate": "6.923076923076",
"isNft": "",
"nftUrl": "",
"orderId": "864ca993-8fb8-4715-aab6-cd2e87b625cb",
"payTokenUrl": "",
"percentChange": "",
"router": {},
"toCoinAmt": "6.865979",
"toCoinCode": "BNB(BSC)",
"tradeFlag": "",
"tradeState": "timeout"
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 2,
"totalPage": 1
},
"resCode": "800",
"resMsg": "成功",
"resMsgEn": ""
}
For specific request parameters, please reference the Google document.