Orders
The open orders feed tracks updates to all of your users' open orders.
Subscription Instructions
private.enterprise.users.open-orders
Order Object
Order updates received will include the following object per order:
id
int
sFOX-generated order ID, assigned on order creation.
action
string
Order side. Possible values: buy
(buy order), sell
(sell order)
algorithm_id
int
type
string
pair
string
Pair or product in the format basequote
. e.g. btcusd
, ethbtc
, ethusdc
quantity
number
Order size in base currency quantity.
price
number
Order limit price.
amount
number
Amount (quote currency) to spend when buying.
net_market_amount
number
amount
net fees for Market (100
) orders.
filled
number
Unsigned, cumulative base currency quantity filled.
vwap
number
Cumulative volume-weighted average fill price of the order.
filled_amount
number
Unsigned, cumulative quote currency amount filled.
fees
number
Unsigned, cumulative quote currency fee amount accrued to this order.
net_proceeds
number
Signed, cumulative quote currency proceeds amount net fees.
status
string
routing_option
string
Special order routing instructions.
routing_type
string
Order routing type.
time_in_force
string
Order time in force specified at order creation.
expires
datetime
Expiration date of the order (for time_in_force
= GTD
orders)
dateupdated
datetime
Date of the most recent update to this order.
date_added
datetime
Date the order was created.
client_order_id
string
User-specified ID for this order.
algorithm_options
string[]
Additional object specifying special order parameters.
destination
string
Order destination.
Order Statuses
Orders may have any of the following statuses.
Started
100
The order is open and active
Filled quantity may be >= 0
Filled quantity is < the order quantity
Cancel Pending
90
The order is in the process of being canceled but cancellation has not been completed
The order may still receive fills
Canceled
10
The order was successfully canceled
Order may have been partially filled prior to cancellation
Filled
210
The order has fully filled
The order has not yet settled
Done
300
The order was is completed, no longer active, and settled successfully
Filled quantity = order quantity
The order will not receive new fills
Example Code
Last updated