New Offer

Create a new funding offer.

Create a new funding offer by constructing a payload using the "fon" (funding offer new) abbreviation and include an offer details object. Please look to the sidebar for examples.

Upon sending an offer, you will receive a confirmation as an 'n' (notification) event and, if the offer is placed successfully, a confirmation through a "fon" (funding offer new) event. Example responses are included in the sidebar. Please look to the Funding Offers and Notifications pages for further information.

Funding offer inputs require you to run the authentication code along with additional code for the input. The authentication code can be found on our Authenticated Channels and the additional code for inputs can be found on the Websocket Inputs page.

// Model
[
  0,
  "fon",
  null,
  {
    type: TYPE,
    symbol: SYMBOL,
    amount: AMOUNT,
    rate: RATE,
    period: PERIOD,
    flags: FLAGS
  }
]

// Examples
[
  0, 
  'fon', 
  null, 
  { 
    type: "LIMIT", 
    symbol: "fUSD", 
    amount: '50', 
    rate: '0.0002', 
    period: 7, 
    flags: 0 
  }
]

[
  0, 
  'fon', 
  null, 
  { 
    type: "FRRDELTAVAR", 
    symbol: "fUSD", 
    amount: '-50', 
    rate: '0.0001', 
    period: 7, 
    flags: 64 
  }
]
// When the offer request is submitted you will receive an 'n' (notification) event as confirmation. If the offer placement is successful, you will also receive an 'fon' (funding offer new) event. Both events are sent through CHANNEL_ID = 0.

[
  0, // CHANNEL_ID
  "n", // EVENT
  [
    1575293958819, // MTS
    "fon-req", // TYPE
    null, // MESSAGE_ID
    null, // _PLACEHOLDER
    [
      41238934, // ID
      null, // SYMBOL
      null, // MTS_CREATED
      null, // MTS_UPDATED
      500, // AMOUNT
      null, // AMOUNT_ORIG
      null, // OFFER_TYPE
      null, // _PLACEHOLDER
      null, // _PLACEHOLDER
      null, // FLAGS
      null, // OFFER_STATUS
      null, // _PLACEHOLDER
      null, // _PLACEHOLDER
      null, // _PLACEHOLDER
      0.02, // RATE
      2, // PERIOD
      null, // NOTIFY
      null, // HIDDEN
      null, // _PLACEHOLDER
      null, // RENEW
      null // _PLACEHOLDER
    ],
    null, // CODE
    "SUCCESS", // STATUS
    "Submitting funding offer of 500.0 UST at 2.000 for 2 days." // TEXT
  ]
]

[
  0, // CHANNEL_ID
  "fon", // EVENT
  [
    41238934, // ID
    "fUST", // SYMBOL
    1575293959000, // MTS_CREATED
    1575293959000, // MTS_UPDATED
    500, // AMOUNT
    500, // AMOUNT_ORIG
    "LIMIT", // OFFER_TYPE
    null, // _PLACEHOLDER
    null, // _PLACEHOLDER
    0, // FLAGS
    "ACTIVE", // OFFER_STATUS
    null, // _PLACEHOLDER
    null, // _PLACEHOLDER
    null, // _PLACEHOLDER
    0.02, // RATE
    2, // PERIOD
    0, // NOTIFY
    0, // HIDDEN
    null, // _PLACEHOLDER
    0, // RENEW
    null // _PLACEHOLDER
  ]
]
🚧

FRR offer

To place an FRR offer, use type FRRDELTAVAR and specify the rate as 0. This will place an FRRDELTAVAR offer with an offset of 0.

Request fields

NameTypeDescription
typeStringLIMIT, FRRDELTAVAR, FRRDELTAFIX
symbolStringSymbol (fUSD, fBTC, ...)
amountDecimal stringAmount (> 0 for offer, < 0 for bid)
rateDecimal stringRate (or offset for FRRDELTA offers)
periodDecimalTime period of offer. Minimum 2 days. Maximum 120 days.
flagsIntSee <https://docs.bitfinex.com/v2/docs/flag-values>.

New offer notification data

IndexFieldTypeDescription
[0]CHANNEL_IDIntID of the channel. (0 for account info messages)
[1]EVENTStringType of event ('n' for notification)
[2]NOTIFICATION_ARRAYArrayNotification array

Notification array data

IndexFieldTypeDescription
[0]MTSIntMillisecond Time Stamp of the update
[1]TYPEStringPurpose of notification ('fon-req')
[2]MESSAGE_IDIntUnique ID of the message
[3]_PLACEHOLDER
[4]OFFER_ARRAYArrayOffer data
[5]CODENull or integerWork in progress
[6]STATUSStringStatus of the notification; it may vary over time (SUCCESS, ERROR, FAILURE, ...)
[7]TEXTStringText of the notification

"fon" event data

IndexFieldTypeDescription
[0]CHANNEL_IDIntID of the channel. (0 for account info messages)
[1]TYPEStringType of event ('fon' for funding offer new)
[2]OFFER_ARRAYArrayOffer data

Offer Array data

Index Field Type Description
[0]IDIntOffer ID
[1]SYMBOLStringThe currency of the offer (fUSD, etc)
[2]MTS_CREATEDIntMillisecond Time Stamp when the offer was created
[3]MTS_UPDATEDIntMillisecond Time Stamp when the offer was updated
[4]AMOUNTFloatCurrent amount of the offer
[5]AMOUNT_ORIGFloatAmount of the initial offer
[6]OFFER_TYPEStringOffer Type
[ . . . ]
[9]FLAGSIntFlags active on the offer; see https://docs.bitfinex.com/v2/docs/flag-values
[10]OFFER_STATUSStringOffer Status: ACTIVE, EXECUTED, PARTIALLY FILLED, CANCELED
[ . . . ]
[14]RATEFloatRate of the offer
[15]PERIODIntPeriod of the offer
[16]NOTIFYInt0 if false, 1 if true
[17]HIDDENInt0 if false, 1 if true
[ . . . ]
[19]RENEWInt0 if false, 1 if true
[ . . . ]