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
Name | Type | Description |
---|---|---|
gid | int32 | (optional) Group id for the order |
cid | int45 | Should be unique in the day (UTC) (not enforced) |
type | string | EXCHANGE MARKET, EXCHANGE LIMIT, EXCHANGE IOC, EXCHANGE STOP, EXCHANGE FOK |
symbol | string | symbol (tEOSUST, tBTCUST, ...) |
amount | decimal string | Positive for buy, Negative for sell |
price | decimal string | Price (Not required for market orders) |
tif | datetime string or number | Valid for EXCHANGE LIMIT orders only. Should be the number of milliseconds since January 1, 1970, or a string value representing a date |
flags | int16 | See 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.