Expand description
Orders: Finam OrderState <-> core snapshots, requests.
Functions§
- build_
place_ order - Builds the
PlaceOrderrequest. Quantity is in pieces (шт.), as in the Finam API. - cid_
from_ comment - Cid carried by an order echo: the comment (lossless) wins.
- is_
active - Order is still working at the broker (unknown statuses count as working, never hidden).
- map_
order_ state - Core snapshot of a Finam order.
cidis resolved by the caller (seeOrderIndex). - map_
status - Finam status -> core state.
filled/leftcome from executed/remaining quantity. - order_
instrument - Instrument of an order echo.
- order_
type_ from_ pb - Stop and multi-leg orders have no core equivalent: shown as the nearest plain type.
- rejection_
of - Rejection coming back as an order status in the
PlaceOrderresponse. - side_
from_ pb - Finam side -> core side. An unspecified side reads as
Buy: check the source of a value before you trust it on an order that is not yours.