Skip to main content

Module instrument

Module instrument 

Source
Expand description

Instrument directory and trading status.

Functions§

availability
Broker trading status to [TradingAvailability].
from_bond
A bond record of the Bonds listing to [Instrument] of kind Bond.
from_currency
A currency record of the Currencies listing to [Instrument] of kind Currency.
from_etf
An ETF record of the Etfs listing to [Instrument] of kind Etf.
from_future
A futures record of the Futures listing to [Instrument] of kind Future. It has no ISIN.
from_option
An option record of the Options listing to [Instrument] of kind Option. It has no ISIN and no figi.
from_share
A share record of the Shares listing to [Instrument] of kind Stock.
instrument_from_full
Full record of GetInstrumentBy to [Instrument].
instrument_from_short
FindInstrument returns short records without currency; currency stays empty (use get for it).
kind
Instrument kind of a broker message to the domain [InstrumentKind].
trading_params
lot_size is units per lot. min_qty is one lot: an order is a whole number of lots (and the library counts the quantity of an order in units). price_step_value equals the step (price is per one instrument in the settlement currency); futures need GetFuturesMargin for the step in money, not requested here.
trading_status
Broker trading status to [TradingStatus] of id.