合约交易

合约手续费查询

POST https://service.xxx.com/platformapi/chainup/open/futures/feeList

需要将参数表格中的数据包装成json字符串 利用rsa 进行参数加密和签名 作为body中的data和sign

Headers

NameTypeDescription

Content-Type

String

application/json

Request Body

NameTypeDescription

app_id*

String

商家唯一编号

sign*

String

用rsa_third_pri对query中的数据签名

data*

String

rsa_saas_pub加密query中数据

time*

String

请求时间

{
    "code": "", //返回code	
    "msg": "", //成功或失败提示信息	
    "data": "",
    "sign": ""
}

data 中解密后的结构体

{
  "count": "20",
  "list": [
    {
      "itemDate": 10008902123,//日期,时间戳格式,精确到秒
      "uid": "20300021",//用户id
      "coin": "btc",//币种
      "tradeAmount": "2000",//交易额
      "feeAmount": "1"//手续费
    }
  ]
}

以下为参与rsa加密的参数:

名称类型是否必需例子描述

startDate

String

YES

200001

开始日期,精确到天,时间戳精确到秒

endDate

String

YES

xxxxx@.com

结束日期,精确到天,时间戳精确到秒

page

String

NO

1

页码 默认1

pageSize

String

NO

10

每页条数,默认100

合约经纪人角色查询

POST https://service.xxx.com/platformapi/chainup/open/futures/agentUser

需要将参数表格中的数据包装成json字符串 利用rsa 进行参数加密和签名 作为body中的data和sign

Headers

NameTypeDescription

Content-Type

String

application/json

Request Body

NameTypeDescription

app_id*

String

商家唯一编号

sign*

String

用rsa_third_pri对query中的数据签名

data*

String

rsa_saas_pub加密query中数据

time*

String

请求时间

{
    "code": "", //返回code	
    "msg": "", //成功或失败提示信息	
    "data": "",
    "sign": ""
}

data 中解密后的结构体

{
  "count": "sed in ipsum",
  "list": [
    {
      "itemDate": 10008902123,//日期,时间戳格式,精确到秒
      "uid": "20300021",//用户id
      "coin": "btc",//币种
      "tradeAmount": "2000",//交易额
      "feeAmount": "1"//手续费
    }
  ]
}

以下为参与rsa加密的参数:

名称类型是否必需例子描述

startDate

String

YES

200001

开始日期,精确到天,时间戳精确到秒

endDate

String

YES

xxxxx@.com

结束日期,精确到天,时间戳精确到秒

page

String

NO

1

页码 默认1

pageSize

String

NO

10

每页条数,默认100

Last updated