Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs
WEEX
WEEX Spot REST API

Market

Endpoint

Get Latest Price

Get Latest Price.

GET
/api/v3/market/ticker/price
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight4

Get Latest Price › query Parameters

symbol
​string

Single trading pair (mutually exclusive with symbols).

symbols
​array

Multiple trading pairs. Accepts comma-separated values or a JSON array.

Get Latest Price › Responses

200

Successful response

symbol
​string

Trading pair.

price
​string

Latest traded price.


Get 24h Ticker Statistics

Get 24h Ticker Statistics.

GET
/api/v3/market/ticker/24hr
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight2

Get 24h Ticker Statistics › query Parameters

symbol
​string

Single trading pair (mutually exclusive with symbols).

symbols
​array

Multiple trading pairs. Accepts comma-separated values or a JSON array.

Get 24h Ticker Statistics › Responses

200

Successful response

​object[]
symbol
​string

Trading pair.

priceChange
​string

Absolute price change over the last 24 hours.

priceChangePercent
​string

Percentage price change over the last 24 hours.

lastPrice
​string

Last traded price.

bidPrice
​string

Best bid price.

bidQty
​string

Best bid quantity.

askPrice
​string

Best ask price.

askQty
​string

Best ask quantity.

openPrice
​string

Opening price 24 hours ago.

highPrice
​string

Highest price in the last 24 hours.

lowPrice
​string

Lowest price in the last 24 hours.

volume
​string

Base asset volume in the last 24 hours.

quoteVolume
​string

Quote asset volume in the last 24 hours.

openTime
​integer

First trade timestamp in the 24h window (ms).

closeTime
​integer

Last trade timestamp in the 24h window (ms).

count
​integer

Number of trades in the 24h window.


Get Recent Trades

Get Recent Trades.

GET
/api/v3/market/trades
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight25

Get Recent Trades › query Parameters

symbol
​string · required

Trading pair, e.g. BTCUSDT.

limit
​integer

Number of trades to return. Range 1–1000, default 100.

Get Recent Trades › Responses

200

Successful response

​object[]
id
​string

Trade identifier.

price
​string

Trade price.

qty
​string

Executed quantity (base asset).

quoteQty
​string

Executed amount (quote asset).

time
​integer

Trade time (milliseconds).

isBuyerMaker
​boolean

true if the buyer was the maker side.

isBestMatch
​boolean

true if the trade matched the best price level.


Get Kline Data

Get Kline Data.

GET
/api/v3/market/klines
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight2

Get Kline Data › query Parameters

symbol
​string · required

Trading pair, e.g. BTCUSDT.

interval
​string · required

Candlestick interval (e.g. [1m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,1w]).

Get Kline Data › Responses

200

Successful response

​array[]
array
index[0]
​integer

Open time (ms).

Example: 1764505860000
index[1]
​string

Open price.

Example: 68940.10
index[2]
​string

High price.

Example: 68955.00
index[3]
​string

Low price.

Example: 68938.50
index[4]
​string

Close price.

Example: 68952.40
index[5]
​string

Volume (base asset).

Example: 12.345
index[6]
​integer

Close time (ms).

Example: 1764505919999
index[7]
​string

Quote asset volume.

Example: 850760.12
index[8]
​integer

Number of trades.

Example: 124
index[9]
​string

Taker buy volume (base asset).

Example: 6.789
index[10]
​string

Taker buy volume (quote asset).

Example: 468123.77

Get Historical Klines

Get Historical Klines.

GET
/api/v3/market/historyKlines
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight5

Get Historical Klines › query Parameters

symbol
​string · required

Trading pair, e.g. BTCUSDT.

interval
​string · required

Kline interval. Allowed values: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w.

startTime
​integer

Start time (inclusive). Valid Unix millisecond timestamp that must not be in the future.

endTime
​integer

End time (inclusive). Valid Unix millisecond timestamp that must not be earlier than startTime or in the future.

limit
​integer

Number of klines to return. Range: 1-100. Default: 100.

Get Historical Klines › Responses

200

Successful response

​array[]
array
index[0]
​integer

Open time (ms).

Example: 1763894400000
index[1]
​string

Open price.

Example: 68000.0
index[2]
​string

High price.

Example: 68550.0
index[3]
​string

Low price.

Example: 67810.0
index[4]
​string

Close price.

Example: 68220.0
index[5]
​string

Volume (base asset).

Example: 320.456
index[6]
​integer

Close time (ms).

Example: 1763908800000
index[7]
​string

Quote asset volume.

Example: 21874563.70
index[8]
​integer

Number of trades.

Example: 982
index[9]
​string

Taker buy volume (base asset).

Example: 180.120
index[10]
​string

Taker buy volume (quote asset).

Example: 12345678.90

Get Order Book Depth

Get Order Book Depth.

GET
/api/v3/market/depth
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight5

Get Order Book Depth › query Parameters

symbol
​string · required

Trading pair, e.g. BTCUSDT.

limit
​integer

Number of depth entries. Supported values: 15, 200. Default 15.

Get Order Book Depth › Responses

200

Successful response

lastUpdateId
​integer

Order book snapshot ID.

​array[]

Bid depth entries formatted as [price, quantity].

​array[]

Ask depth entries formatted as [price, quantity].


Get Best Bid/Ask

Get Best Bid/Ask.

GET
/api/v3/market/ticker/bookTicker
https://api-spot.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight4

Get Best Bid/Ask › query Parameters

symbol
​string

Single trading pair (mutually exclusive with symbols).

symbols
​array

Multiple trading pairs. Accepts comma-separated values or a JSON array.

Get Best Bid/Ask › Responses

200

Successful response

​object[]
symbol
​string

Trading pair.

bidPrice
​string

Best bid price.

bidQty
​string

Best bid quantity.

askPrice
​string

Best ask price.

askQty
​string

Best ask quantity.