WS / Trading Channel
Address /future-ws/v1/market
Description
Get the latest transaction data, push when there is transaction data, each push contains only one piece of transaction data.
Channel Name
trade
Submission Parameters
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| op | Yes | string | sub | Operation, sub: subscribe unsub: unsubscribe |
| channel | Yes | string | trade | Channel name |
| symbol | Yes | string | BTC-USDT | Trading pair name |
Return Parameters
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| errno | Yes | int | 0 | Status code |
| errmsg | Yes | success | success | Status information |
| op | Yes | string | sub | Operation, sub: subscribe unsub: unsubscribe |
| channel | Yes | string | trade | Channel Name |
| symbol | Yes | string | BTC-USDT | Trading Pair Name |
Push Data Parameters
| Parameter Name | Mandatory | Type | Example | Description |
|---|---|---|---|---|
| channel | Yes | string | trade | Channel Name |
| symbol | Yes | string | BTC-USDT | Trading Pair |
| id | Yes | long | 17592256642623 | Transaction ID |
| amount | Yes | string | 0.04 | Transaction volume (unit: contract) |
| price | Yes | number | 1997 | Transaction Price |
| direction | Yes | string | buy | buy:Buy,sell:Sell |
| ts | Yes | number | 1502448920106 | Transaction time (timestamp in milliseconds) |