Skip to main content

Trade

Topic Format

<symbol>@trade

  • symbol: The trading pair symbol (e.g., ETH_USDT).

Example Topic: ETH_USDT@trade


Message Structure

Fields

FieldTypeDescription
etint32Event type (5 for trade data).
sstringSymbol name (e.g., ETH_USDT).
aint32[]List of Order Actions.
pstring[]List of trade prices.
vstring[]List of trade volumes in base currency.
tstring[]List of timestamps for each trade.

Note: Each trade corresponds to an index in the a, p, v, and t fields. For example, the first trade's data is found at a[0], p[0], v[0], and t[0].


Example Message

{
"et": 5,
"s": "ETH_USDT",
"a": [0, 1],
"p": [
"3.0000000",
"2.0000000"
],
"v": [
"0.150",
"0.100"
],
"t": [
"1720780957097",
"1720780957098"
]
}