文档
测试

挂单:买入/卖出

POST
/api/nex/exchange

请求头

参数名
类型
描述
必填
token
string
请求头加token进行鉴权
必填

请求参数

参数名
类型
描述
必填
type
int
1卖出NEX 2买入NEX
必填
price
string
单价
必填
tronaddr
string(34位)
交易使用的钱包地址
必填
hash
string(64位)
交易Hash(哈希)
必填

响应参数

参数名
类型
描述
必填
code
int
状态码
必填
msg
string
返回消息
必填
time
int
时间戳
必填
data
object (json)
数据集合
必填

说明 / 示例

成功 { "code": 1, "msg": "成功", "time": "1688820938", "data": { "count":999 } } 失败 { "code": 0, "msg": "失败, "time": "1688820395", "data": null }