get_order returns the order, and order_updated pushes it without orderType, timeInForce, limitPrice, fills, mints, burns, fees and feeTotal. Every field is in the API reference.
Identifiers
Record
regulatoryId from the ack: it is there for that reason.
Quantities
Unlike a status,
leavesQuantity cannot arrive as a value you have no mapping for. The three are the broker’s arithmetic, passed through unchanged; if they do not reconcile, treat the order as a fault and contact Securitize with the traceId.
Fees
Everyget_order answer carries fees, one per trade the order filled in, and feeTotal, their sum. A fee is charged when its trade reaches the broker’s ledger, which is after the fill, so the list can grow after the order has filled: read the order again rather than taking an empty list as final.
feeTotal counts every status: it is what the order is charged. A trade too small to owe a cent at the rate carries no fee. Fees are not pushed: get_order is where they are read.
Limits on an order
- Every order is placed by
quantity. An order bynotionalanswersINVALID_ORDER. - A buy is a
LIMITorder paid from your own cash.quantity × limitPriceplus its fees is held against theavailableofget_cash_balance_v2until the order fills or ends. A buy that cash does not cover, and aMARKETbuy, answerINVALID_ORDER. See Your own cash. - The broker checks the account as a whole too: a buy it cannot pay for answers
INVALID_ORDERwith the messageInsufficient buying power. - A sell the redemption wallet cannot cover is refused with
INVALID_ORDER, and a sell must be placed byquantity. See Sell shares and redeem CETs. - The symbol is checked before the order is sent. A symbol your account does not trade, mistyped or not, answers
INVALID_ORDER; check it againstget_symbols. A symbol your account trades that the broker no longer recognises answersINVALID_SYMBOLnaming it. - Decimal places:
quantity5,limitPrice4. - Tick size: a
limitPriceof 1.00 or more must be in whole cents, at most 2 decimal places. A finer price is refused by the broker as sub-penny (Risk validation: Sub-penny trading is not allowed). Only a price under 1.00 may use 4 decimal places. limitPriceis required on aLIMITorder and refused on aMARKETone, which only a sell may be.- Only
DAYis supported astimeInForce, and it is the default.IOCandFOKare not offered through the broker’s API and answerINVALID_ORDER. AGTCorder is acknowledged and then refused by the broker, arriving asREJECTED.
Status
An update can skip states: an order can go from
WORKING straight to FILLED.
Treat the list as open. On a status you do not recognise, fall back to the quantities instead of failing; a status may be added. brokerStatus is the broker’s own code, for support conversations about one order; branch on status.