New Order

Creates a new order, can be used to create margin, exchange, and derivative orders.

You will receive a message of the appropriated type on the "account info" channel

// Model
[
  0,
  "on",
  null,
  {
    "gid": GID,
    "cid": CID,
    "type": TYPE,
    "symbol": SYMBOL,
    "amount": AMOUNT,
    "price": PRICE,
    ...
  }
]

// Example
[
  0,
  "on",
  null,
  {
    "gid": 1,
    "cid": 12345,
    "type": "LIMIT",
    "symbol": "tEOSUST",
    "amount": "1.0",
    "price": "500"
  }
]

Request Fields

NameTypeDescription
gidint32(optional) Group id for the order
cidint45Should be unique in the day (UTC) (not enforced)
typestringEXCHANGE MARKET, EXCHANGE LIMIT, EXCHANGE IOC, EXCHANGE STOP, EXCHANGE FOK
symbolstringsymbol (tEOSUST, tBTCUST, ...)
amountdecimal stringPositive for buy, Negative for sell
pricedecimal stringPrice (Not required for market orders)
tifdatetime string or numberValid for EXCHANGE LIMIT orders only. Should be the number of milliseconds since January 1, 1970, or a string value representing a date
flagsint16See https://docs.eosfinex.com/v1/docs/flag-values.

Type

Additional information about the types of orders can be found here:
https://support.bitfinex.com/hc/en-us/articles/115003506105-Limit-Order

📘

Multiple Flags

You may sum flag values to pass multiple flags.
Default value is 0.