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

Private Channels

Endpoint

Account Channel

Streams collateral balance changes for the authenticated account.

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

Account Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Channel list. Use account.

Example: ["account"]
id
​number

Client-defined identifier echoed in the acknowledgement.

Example: 11

Account Channel › Responses

Account Channel

e
​string

Event type, always account.

E
​number

Event time in milliseconds.

v
​number

Account version associated with the update.

msgEvent
​string

Upstream event label (for example PositionFundingSettle).

​object[]

Collateral entries.


Position Channel

Streams position changes (quantity, funding, margin mode) for the authenticated account.

WSS
positions
wss://ws-contract.weex.com/v3/ws/private

Position Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Channel list. Use positions.

Example: ["positions"]
id
​number

Client-specified identifier echoed in the acknowledgement.

Example: 7

Position Channel › Responses

Position Channel

e
​string

Event type, always positions.

E
​number

Event time in milliseconds.

v
​number

Account data version associated with the update.

msgEvent
​string

Upstream event label (e.g. PositionFundingSettle).

​object[]

Updated position entries.


Fill Channel

Streams real-time fill details for orders owned by the authenticated account.

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

Fill Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Channel list. Use fill.

Example: ["fill"]
id
​number

Client-defined identifier echoed in the acknowledgement.

Example: 9

Fill Channel › Responses

Fill Channel

e
​string

Event type, always fill.

E
​number

Event time in milliseconds.

v
​number

Account data version related to the update.

msgEvent
​string

Upstream event label (e.g. OrderUpdate).

​object[]

Fill entries.


Order Channel

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

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

Order Channel › Request Parameters

method
​string · required

SUBSCRIBE or UNSUBSCRIBE.

Example: SUBSCRIBE
params
​string[] · required

Channel list. Use orders.

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.