Trades

After a te message you receive shortly a tu message that contains the real trade id (ID) and additional/updated fields.

[
  CHAN_ID, 
  'tu', 
  [
    ID, 
    SYMBOL, 
    MTS, 
    ORDER_ID, 
    EXEC_AMOUNT, 
    EXEC_PRICE, 
    ORDER_TYPE, 
    0, 
    FEE, 
    FEE_CURRENCY,
    CLIENT_ID,
    IRREVERSIBLE
    ...
  ]
]

Stream Fields

TermTypeDescription
IDintegerTrade database id
SYMBOLstringSymbol (tEOSUST, …)
MTS_CREATEintegerExecution timestamp
ORDER_IDintegerOrder id
EXEC_AMOUNTfloatPositive means buy, negative means sell
EXEC_PRICEfloatExecution price
ORDER_TYPEstringOrder type
ORDER_PRICEfloatOrder price
MAKERint1 if true, -1 if false
FEEfloatFee
FEE_CURRENCYstringFee currency
IRREVERSIBLEint1 = block irreversible, 0 = block can be reversed