![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The mock broker: an in-memory market over bars the caller gives, bound like any broker. More...
Classes | |
| struct | Broker |
| The mock broker's tag: its order references are typed by it, so they work with no other broker. More... | |
| class | DataFeed |
| The mock vendor: records the caller gives, each released once the clock reaches the time it was published. More... | |
| class | Market |
| A market in memory: bars the caller gives, a clock the caller moves, one account's cash, holdings and orders. More... | |
| class | MarketClock |
| The clock a loop waits on over a mock market: waiting moves the market. More... | |
| class | MarketFile |
| A mock market that keeps its account in a file: every placement, cancellation and clock move is written before it is made, and opening the file again rebuilds the same market. More... | |
| class | MarketFileError |
| Thrown by a kept market's Market::advance_to when its state file (MarketFile) could not record the move; the clock did not move. More... | |
| struct | MarketSettings |
| How a Market starts and what it charges. More... | |
| struct | MockAccount |
| The mock broker's one account; it has no selector. More... | |
| struct | MockAmendment |
| A cancellation for the mock broker: the order id. More... | |
| class | MockClient |
| The mock broker's client: blocking, answering from a Market, after any faults scripted for the call. More... | |
Enumerations | |
| enum class | Call { QUOTE , BARS , INSTRUMENT , CALENDAR , HOLDINGS , BUYING_POWER , PLACE , CANCEL , WORKING_ORDERS , ORDER_HISTORY } |
| A call to the mock broker, for scripting a fault (MockClient::fail_next). More... | |
Variables | |
| constexpr std::string_view | environment = "mock" |
| The environment the mock reports: always "mock", never "demo" or "real". | |
The mock broker: an in-memory market over bars the caller gives, bound like any broker.
|
strong |
A call to the mock broker, for scripting a fault (MockClient::fail_next).
Definition at line 23 of file client.hpp.
|
inlineconstexpr |
The environment the mock reports: always "mock", never "demo" or "real".
The library has no environment type (KIS and Kiwoom configure demo or real; Toss has one environment), so this is the statement a program maps when it reports where it trades.
Definition at line 42 of file market.hpp.
Referenced by algotradelib::mock::MockClient::environment().