Funding Trades

Receive updates for any trade events on your account.

Subscribe to the account information channel to keep track of your funding trades. The account information channel will provide a feed of your funding trades for as long as the channel remains open. Any authenticated connection is automatically subscribed to the account information channel.

Example code to open an authenticated connection can be found on our Authenticated Channels Page.

Trade events are sent with CHAN_ID = 0 and can be identified by looking at the TYPE stream field. Funding trade events will use one of the following abbreviations: 'fte' (funding trade executed) and 'ftu' (funding trade update).

[
  CHAN_ID,
  TYPE // 'fte', 'ftu'
  [
    ID,
    CURRENCY,
    MTS_CREATE,
    OFFER_ID,
    AMOUNT,
    RATE,
    PERIOD,
    MAKER,
    ...
  ]
]

[0,"fte",[636854,"fUSD",1575282446000,41238905,-1000,0.002,7,null]]
[0,"ftu",[636854,"fUSD",1575282446000,41238905,-1000,0.002,7,null]]

Stream Fields

TermTypeDescription
CHAN_IDintIdentification number for the channel subscribtion. Funding trades events are always sent through the account information channel with CHAN_ID = 0
TYPEstring'fte' (funding trade executed), 'ftu' (funding trade update)
IDintegerOffer ID
SYMBOLstringThe currency of the offer (fUSD, etc)
MTS_CREATEintMillisecond Time Stamp when the offer was created
OFFER_IDintThe ID of the offer
AMOUNTfloatAmount the offer is for
RATEfloatRate of the offer
PERIODintPeriod of the offer
MAKERint1 if true, 'null' if false; Indicates if the order was executed as maker (true) or taker (false)