![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
A quote: the last traded price of an instrument at a point in time. More...
#include <algotradelib/src/core/types.hpp>
Public Attributes | |
| InstrumentId | instrument_ |
| The instrument. | |
| Decimal64 | last_price_ |
| The last traded price, as the broker reported it. | |
| Currency | currency_ |
| The currency of last_price_. | |
| std::optional< std::chrono::system_clock::time_point > | exchange_time_ |
| When the exchange says the quote was true, if the broker gave a timestamp. | |
| std::chrono::system_clock::time_point | received_at_ |
| When this process received the quote, on this machine's clock. | |
| std::optional< TopOfBook > | top_of_book_ |
| The best bid and offer. | |
| std::optional< Decimal64 > | volume_ |
| The session's cumulative traded volume, if the broker gave it. | |
A quote: the last traded price of an instrument at a point in time.
| Currency algotradelib::QuoteSnapshot::currency_ |
The currency of last_price_.
| std::optional<std::chrono::system_clock::time_point> algotradelib::QuoteSnapshot::exchange_time_ |
| InstrumentId algotradelib::QuoteSnapshot::instrument_ |
The instrument.
Definition at line 872 of file types.hpp.
Referenced by algotradelib::backtest::Backtester< Strategy, CapsType >::feed(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::feed().
| Decimal64 algotradelib::QuoteSnapshot::last_price_ |
The last traded price, as the broker reported it.
Definition at line 874 of file types.hpp.
Referenced by algotradelib::backtest::Backtester< Strategy, CapsType >::feed(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::feed().
| std::chrono::system_clock::time_point algotradelib::QuoteSnapshot::received_at_ |
When this process received the quote, on this machine's clock.
Definition at line 880 of file types.hpp.
Referenced by algotradelib::backtest::Backtester< Strategy, CapsType >::feed(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::feed().
| std::optional<TopOfBook> algotradelib::QuoteSnapshot::top_of_book_ |
| std::optional<Decimal64> algotradelib::QuoteSnapshot::volume_ |