Module order
Expand description
Orders: broker messages -> OrderSnapshot.
Structs§
- Order
Parts - What every order message (unary state, placement response, stream update) has in common.
Functions§
- direction
- [
Side] to broker direction. - order_
type ORDER_TYPE_BESTPRICEhas no counterpart in the domain model and reads as market.- parts_
from_ post PostOrder/ReplaceOrderresponse.- parts_
from_ state GetOrderState/GetOrders.- parts_
from_ stream OrderStateStreamupdate.order_priceis taken as the price of one instrument (the docs do not say; for our own orders the price we sent wins, seeUdCore).- side
- Broker direction to [
Side]. Anything but sell reads as buy. - snapshot
- An [
OrderSnapshot] from the parts of any order message. - state
- The order state of a status report.
- wire_
order_ type - [
OrderType] to broker order type (limit or market).