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).

[
  0, //CHAN_ID
  "fte", //TYPE
  [
    636854, //ID
    "fUSD", //SYMBOL
    1575282446000, //MTS_CREATE
    41238905, //OFFER_ID
    -1000, //AMOUNT
    0.002, //RATE
    7, //PERIOD
    null //MAKER
  ] //FUNDING_TRADE_ARRAY
]

Funding trade update data

IndexTermTypeDescription
[0]CHAN_IDIntIdentification number for the channel subscribtion. Funding trades events are always sent through the account information channel with CHAN_ID = 0
[1]TYPEString'fte' (funding trade executed), 'ftu' (funding trade update)
[2]FUNDING_TRADE_ARRAYArrayFunding trade array

Funding trade arrays (Index [2])

IndexTermTypeDescription
[0]IDIntOffer ID
[1]SYMBOLStringThe currency of the offer (fUSD, etc)
[2]MTS_CREATEIntMillisecond Time Stamp when the offer was created
[3]OFFER_IDIntThe ID of the offer
[4]AMOUNTFloatAmount the offer is for
[5]RATEFloatRate of the offer
[6]PERIODIntPeriod of the offer
[7]MAKERInt1 if true, 'null' if false; Indicates if the order was executed as maker (true) or taker (false)