文档
测试

🆕 价格k线

POST
/api/nex/pricelist

请求头

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

请求参数

参数名
类型
描述
必填
type
string
1/7/30/all 接口默认返回1天数据
必填

响应参数

参数名
类型
描述
必填
code
int
状态码
必填
msg
string
返回消息
必填
time
int
时间戳
必填
data
object (json)
数据集合
必填
list
object (json)
必填
object (json)
必填
p
int
价格
必填
c
int
成交时间
必填
count
int
数据总记录数
必填
high
int
最高价
必填
low
int
最低价
必填

说明 / 示例

{ "code": 1, "msg": "获取成功", "time": "1691056635", "data": { "list": [ { "price": 1.1, "createtime": 1690633090 }, { "price": 1.1, "createtime": 1690633873 }, { "price": 1.1, "createtime": 1690634032 }, { "price": 1.1, "createtime": 1690634398 }, { "price": 1.1, "createtime": 1690691450 }, { "price": 5, "createtime": 1690772509 }, { "price": 1.01, "createtime": 1690772544 }, { "price": 0.1, "createtime": 1690782215 }, { "price": 0.1, "createtime": 1690782539 }, { "price": 0.1, "createtime": 1690782699 }, { "price": 1.1, "createtime": 1690782989 }, { "price": 1.1, "createtime": 1690783301 }, { "price": 1.1, "createtime": 1690783546 } ], "count": 13, "high": 5, "low": 0.1 } } 失败 { "code": 0, "msg": "未知错误, "time": "1688820395", "data": null }