Cancel Offer

Cancel a funding offer.

To cancel an offer, construct a payload using the "foc" (funding offer cancel) abbreviation. Include the Offer ID in the payload. Please look to the sidebar for a model and example.

When you cancel an offer, you will receive a message of the appropriated type on the "account info" channel. Example responses are included in the sidebar. Please look to the Funding Offers page 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,
  "foc",
  null,
  {
    id: ID
  }
]

// Examples
[
  0, 
  'foc', 
  null, 
  { 
    id: 12345
  }
]
[
CHANNEL_ID
EVENT
 [
 MTS, //omitted for 'foc' event
 TYPE, //omitted for 'foc' event
 MESSAGE_ID, //omitted for 'foc' event
 null, //omitted for 'foc' event
  [
    ID,
    SYMBOL,
    MTS_CREATED,
    MTS_UPDATED,
    AMOUNT,
    AMOUNT_ORIG,
    OFFER_TYPE,
    _PLACEHOLDER,
    _PLACEHOLDER,
    FLAGS,
    OFFER_STATUS,
    _PLACEHOLDER,
    _PLACEHOLDER,
    _PLACEHOLDER,
    RATE,
    PERIOD,
    NOTIFY,
    HIDDEN,
    _PLACEHOLDER,
    RENEW,
    _PLACEHOLDER
  ]
 CODE, //omitted for 'foc' event
 STATUS, //omitted for 'foc' event
 TEXT //omitted for 'foc' event
 ]
]

[0,"foc",[41238934,"fUST",1575293959000,1575294374000,500,500,"LIMIT",null,null,0,"CANCELED",null,null,null,0.02,2,0,0,null,0,null]]

Request Fields

NameTypeDescription
idintOffer ID

Response Fields

TermTypeDescription
CHANNEL_IDintID of the channel. (0 for account info messages)
EVENTstringType of event ('n' for notification)
MTSintMillisecond Time Stamp of the update
TYPEstringPurpose of notification ('on-req', 'oc-req', 'uca', 'fon-req', 'foc-req')
MESSAGE_IDintunique ID of the message
IDintegerOffer ID
SYMBOLstringThe currency of the offer (fUSD, etc)
MTS_CREATEDintMillisecond Time Stamp when the offer was created
MTS_UPDATEDintMillisecond Time Stamp when the offer was created
AMOUNTfloatCurrent amount of the offer
AMOUNT_ORIGfloatAmount of the initial offer
OFFER_TYPEstringOffer Type
FLAGSintFlags active on the offer; see https://docs.bitfinex.com/v2/docs/flag-values
OFFER_STATUSstringOffer Status: ACTIVE, EXECUTED, PARTIALLY FILLED, CANCELED
RATEfloatRate of the offer
PERIODintPeriod of the offer
NOTIFYbooleanTrue / false
HIDDENint0 if false, 1 if true
RENEWbooleanTrue / false
CODEnull or integerWork in progress
STATUSstringStatus of the notification; it may vary over time (SUCCESS, ERROR, FAILURE, ...)
TEXTstringText of the notification