An instrument a PlatformModule asked for in addition to the one selected in its panel (IPlatformModuleContext.AddInstrument): what it is and the latest market data delivered to the module. More...
Public Member Functions | |
| IReadOnlyList< MarketDataArg > | GetDepth (bool isAsk) |
| The bid (isAsk = false) or ask levels of the order book, best first (copies), as of the delivered depth changes. Empty unless the instrument was added with the order book (HasDepth). | |
| string | FormatPrice (decimal price) |
| Formats a price with the number of decimals of the instrument tick size. | |
Properties | |
| string | Id [get] |
| The identifier of the instrument in the platform: an opaque text that stays the same between runs of the platform. A module that keeps its instruments in its settings saves this and passes it to IPlatformModuleContext.AddInstrument again. | |
| IInstrumentInfo | Instrument [get] |
| The instrument: name, exchange, tick size and the time zone set for it in the platform. | |
| bool | IsDelayed [get] |
| True for an instrument of a delayed data source (its data comes with a delay, typically 15 minutes). | |
| PlatformModuleInstrumentState | State [get] |
| What the platform currently does with the instrument. | |
| bool | HasDepth [get] |
| True if the module asked for the order book of the instrument. | |
| MarketDataArg? | BestBid [get] |
Best bid (price and volume), or null while unknown. | |
| MarketDataArg? | BestAsk [get] |
Best ask (price and volume), or null while unknown. | |
| MarketDataArg? | LastTrade [get] |
The last trade of the instrument delivered to the module, or null while there was none. | |
| InstrumentDailySummary? | Summary [get] |
The exchange statistics of the instrument, or null while the data feed has not reported them. | |
An instrument a PlatformModule asked for in addition to the one selected in its panel (IPlatformModuleContext.AddInstrument): what it is and the latest market data delivered to the module.
Like the members of IPlatformModuleContext, the data members return the state as of the last data delivered to the module and do not change while one of its methods runs.
| string ATAS.Indicators.Modules.IPlatformModuleInstrument.FormatPrice | ( | decimal | price | ) |
Formats a price with the number of decimals of the instrument tick size.
| IReadOnlyList< MarketDataArg > ATAS.Indicators.Modules.IPlatformModuleInstrument.GetDepth | ( | bool | isAsk | ) |
The bid (isAsk = false) or ask levels of the order book, best first (copies), as of the delivered depth changes. Empty unless the instrument was added with the order book (HasDepth).
|
get |
Best ask (price and volume), or null while unknown.
|
get |
Best bid (price and volume), or null while unknown.
|
get |
True if the module asked for the order book of the instrument.
|
get |
The identifier of the instrument in the platform: an opaque text that stays the same between runs of the platform. A module that keeps its instruments in its settings saves this and passes it to IPlatformModuleContext.AddInstrument again.
|
get |
The instrument: name, exchange, tick size and the time zone set for it in the platform.
|
get |
True for an instrument of a delayed data source (its data comes with a delay, typically 15 minutes).
|
get |
The last trade of the instrument delivered to the module, or null while there was none.
|
get |
What the platform currently does with the instrument.
|
get |
The exchange statistics of the instrument, or null while the data feed has not reported them.