WEEX 现货 REST API
stringarraystringstringstringstringstringstringstringstringstringstringstringstringstringintegerintegerinteger
string · requiredstring · requiredarray integerstringstringstringstringstringintegerstringintegerstringstring
string · requiredstring · requiredintegerintegerintegerarray integerstringstringstringstringstringintegerstringintegerstringstring
获取24小时价格变动情况
获取24小时价格变动情况。
GET
/api/v3/market/ticker/24hr
https://api-spot.weex.com
查询参数
symbol单个交易对,与 symbols 互斥。
symbols多个交易对,支持逗号分隔或 JSON 数组格式。
获取24小时价格变动情况 › 响应
200
成功响应
object[]
symbol交易对。
priceChange24 小时价格变化。
priceChangePercent24 小时价格变化百分比。
lastPrice最新成交价。
bidPrice最优买价。
bidQty最优买量。
askPrice最优卖价。
askQty最优卖量。
openPrice24 小时开盘价。
highPrice24 小时最高价。
lowPrice24 小时最低价。
volume24 小时成交量(基础资产)。
quoteVolume24 小时成交额(计价资产)。
openTime区间起始时间(毫秒)。
closeTime区间结束时间(毫秒)。
count24 小时成交笔数。
获取近期成交
获取近期成交。
GET
/api/v3/market/trades
https://api-spot.weex.com
获取K线数据
获取K线数据。
GET
/api/v3/market/klines
https://api-spot.weex.com
查询参数
symbol交易对,例如 BTCUSDT。
intervalK线周期,例如 [1m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,1w]。
获取K线数据 › 响应
200
成功响应
array[]
index[0]开盘时间(毫秒)。
Example: 1764505860000
index[1]开盘价。
Example: 68940.10
index[2]最高价。
Example: 68955.00
index[3]最低价。
Example: 68938.50
index[4]收盘价。
Example: 68952.40
index[5]成交量(基础资产)。
Example: 12.345
index[6]收盘时间(毫秒)。
Example: 1764505919999
index[7]成交额(计价资产)。
Example: 850760.12
index[8]成交笔数。
Example: 124
index[9]主动买入成交量(基础资产)。
Example: 6.789
index[10]主动买入成交额(计价资产)。
Example: 468123.77
获取历史K线
获取历史K线。
GET
/api/v3/market/historyKlines
https://api-spot.weex.com
查询参数
symbol交易对,例如 BTCUSDT。
intervalK线周期,可选:1m、5m、15m、30m、1h、2h、4h、6h、8h、12h、1d、1w。
startTime起始时间(包含),有效的 Unix 毫秒时间戳,不能晚于当前时间。
endTime结束时间(包含),有效的 Unix 毫秒时间戳,需 ≥ startTime 且不能晚于当前时间。
limit返回的K线条数,范围 1-100,默认 100。
获取历史K线 › 响应
200
成功响应
array[]
index[0]开盘时间(毫秒)。
Example: 1763894400000
index[1]开盘价。
Example: 68000.0
index[2]最高价。
Example: 68550.0
index[3]最低价。
Example: 67810.0
index[4]收盘价。
Example: 68220.0
index[5]成交量(基础资产)。
Example: 320.456
index[6]收盘时间(毫秒)。
Example: 1763908800000
index[7]成交额(计价资产)。
Example: 21874563.70
index[8]成交笔数。
Example: 982
index[9]主动买入成交量(基础资产)。
Example: 180.120
index[10]主动买入成交额(计价资产)。
Example: 12345678.90