|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/brokers/ibroker.hpp>#include <slick/stream_buffer_multiplexer.hpp>#include <nlohmann/json.hpp>#include <cstdint>#include <memory>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| class | slick::trader::BrokerRegistry |
| Maps a broker's config name (e.g. More... | |
Namespaces | |
| namespace | slick |
| namespace | slick::trader |
Macros | |
| #define | SLICK_TRADER_REGISTER_BROKER(key, BrokerType) |
| Defines a broker's factory and registers it. | |
| #define SLICK_TRADER_REGISTER_BROKER | ( | key, | |
| BrokerType ) |
Defines a broker's factory and registers it.
Place it once, at namespace scope, in a translation unit of the broker's library:
SLICK_TRADER_REGISTER_BROKER("coinbase", CoinbaseBroker);
That TU must live in an OBJECT library - slick_trader_add_broker() makes one - because nothing references the registration by name, and out of a static library the linker would drop it and the broker would silently vanish.
Definition at line 79 of file broker_registry.hpp.