![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
Identifies an instrument: its country, venue and symbol. More...
#include <algotradelib/src/core/types.hpp>
Public Attributes | |
| Country | country_ {Country::KR} |
| The listing country, which selects the symbol convention and the price grid. | |
| Venue | venue_ {Venue::COMBINED} |
| The venue that is part of the identity (two venues are two instruments). | |
| std::string | symbol_ |
| The symbol as the venue spells it, such as "005930". | |
Friends | |
| bool | operator== (const InstrumentId &lhs, const InstrumentId &rhs) |
| Compares country, venue and symbol. | |
| bool | operator< (const InstrumentId &lhs, const InstrumentId &rhs) |
| Orders identities by country, venue, then symbol, so they can key a map. | |
|
friend |
|
friend |
| Country algotradelib::InstrumentId::country_ {Country::KR} |
The listing country, which selects the symbol convention and the price grid.
Definition at line 80 of file types.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide(), algotradelib::runner::journal_entry_to_line(), operator<, and operator==.
| std::string algotradelib::InstrumentId::symbol_ |
The symbol as the venue spells it, such as "005930".
Definition at line 88 of file types.hpp.
Referenced by algotradelib::runner::journal_entry_to_line(), operator<, and operator==.
| Venue algotradelib::InstrumentId::venue_ {Venue::COMBINED} |
The venue that is part of the identity (two venues are two instruments).
Where an order is routed is OrderRequest::venue_, not this.
Definition at line 86 of file types.hpp.
Referenced by algotradelib::runner::journal_entry_to_line(), operator<, and operator==.