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

Private Channels

Endpoint

Account Channel

Streams balance and asset updates (account) for the authenticated spot account. Events are pushed when deposits, withdrawals, transfers, or order operations change available balances.

WSS
account
wss://ws-spot.weex.com/v3/ws/private

Account Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Use account.

Example: ["account"]
id
​number

Client-defined identifier echoed in the acknowledgement.

Example: 1

Account Channel › Responses

Account Channel

e
​string

Event type, account.

E
​number

Event time in milliseconds.

v
​number

Account version.

msgEvent
​string

Upstream event name (e.g. DepositUpdate, WithdrawUpdate, OrderUpdate).

​object[]

Asset list describing the latest balances.


Fill Channel

Streams execution details (fill) for orders belonging to the authenticated account.

WSS
fill
wss://ws-spot.weex.com/v3/ws/private

Fill Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Use fill.

Example: ["fill"]
id
​number

Client-defined identifier echoed in the acknowledgement.

Example: 2

Fill Channel › Responses

Fill Channel

e
​string

Event type, fill.

E
​number

Event time in milliseconds.

v
​number

Account version.

msgEvent
​string

Upstream event name (for example OrderUpdate).

​object[]

Fill entries.


Order Channel

Streams real-time order lifecycle updates for the authenticated spot account.

WSS
orders
wss://ws-spot.weex.com/v3/ws/private

Order Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Use orders. Only a single private channel may be subscribed per entry.

Example: ["orders"]
id
​number

Client-provided identifier echoed in the acknowledgement.

Example: 1

Order Channel › Responses

Order Channel

e
​string

Event type, always orders.

E
​number

Event time in milliseconds.

v
​number

Account version associated with the update.

msgEvent
​string

Upstream event name (for example OrderUpdate).

​object[]

Updated order entries.