nexustrader.core.registry¶
The OrderRegistry class tracks active orders by their internal OID (Order ID). It provides methods to register, query, and unregister orders, as well as temporary order storage for orders that are being submitted to the exchange.
Key methods:
register_order(oid)– mark an OID as activeis_registered(oid)– check whether an OID is activeunregister_order(oid)– remove an OID from the active setregister_tmp_order(order)– store anOrderobject temporarily before it is acknowledgedget_tmp_order(oid)– retrieve a temporarily stored order by OIDunregister_tmp_order(oid)– remove a temporarily stored order