Skip to main content

Private events streams

Order notifications#

[  4,  "on",  [    "btcusd",    2,    "7acbbc84-939d-11ea-a827-1831bf9834b0",    "buy",    "w",    "l",    "1",    "1",    "0",    "1",    "1",    1,    1589211516  ]]

Topics

TopicDescription
onOrder New
ocOrder Canceled
ouOrder Updated
orOrder Rejected

Payload

ArgumentDescription
Market IDMarket unique identifier
IDUnique order ID
UUIDUnique order uuid
Side"buy" or "sell"
StateCurrent state of the order
TypeOrder type
PriceOrder price
Average PriceAverage execution price
VolumeCurrent order volume
Origin VolumeOrigin volume
Executed VolumeExecuted volume
Trades CountOrder trades count
TimestampOrder creation timestamp

States

StateDescription
pPending
wWait
dDone
rRejected
cCanceled

Types

TypeDescription
lLimit
mMarket
pPost Only
fFill or Kill

Trade event#

[  4,  "tr",  [    "btcusd",    2,    "3",    "5",    "15",    3,    "5b295fc5-9363-11eb-adb6-1831bf9834b0",    "buy",    "sell",    "0.005",    "btc",    1617334050  ]]

Payload

ArgumentDescription
Market IDMarket unique identifier
IDUnique trade ID
PriceTrade execution price
AmountTrade execution amount
FundsTrade funds, amount * price
OrderIDUser's trade order ID
OrderUUIDUser's trade order UUID
SideUser's trade order side
Taker sideTrade taker side
FeeFee amount
Fee CurrencyFee currency
TimestampTrade timestamp

Balance update#

[  4,  "bu",  [    ["eth", "1000000000", "0"],    ["trst", "1000000000", "0"],    ["usd", "999999999", "0"],    ["btc", "0.998", "0"]  ]]

Payload

Payload is an array of elements:

ArgumentDescription
CurrencyMarket currency identifier
BalanceUser's balance for currency
LockedUser's locked for currency