|
Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
|
#include "instance_expansion.hpp"#include <md_feed/replay_gate.hpp>#include <nlohmann/json.hpp>#include <cstdint>#include <format>#include <memory>#include <stdexcept>#include <string>#include <string_view>#include <unordered_map>Go to the source code of this file.
Namespaces | |
| namespace | slick |
| namespace | slick::sim |
| namespace | slick::sim::exch |
| Helpers for a venue whose one config entry describes several independent exchange instances, such as CME's market segments or ICE's silos. | |
Functions | |
| bool | slick::sim::exch::is_enabled_feed (const nlohmann::json &feed, std::string_view type) |
| True for a md_feeds entry of type that is not disabled. | |
| bool | slick::sim::exch::has_enabled_feed (const nlohmann::json &instance, std::string_view type) |
| True when the instance's md_feeds has an enabled feed of type. | |
| void | slick::sim::exch::claim_pcap_control_ports (std::unordered_map< uint16_t, std::string > &ports, const nlohmann::json &instance, std::string_view feed_type, const std::string &owner, std::string_view venue) |
| Claims the TCP control port of each enabled pcap feed of instance for owner. | |
| template<typename Queue> | |
| std::shared_ptr< md_feed::ReplayGate > | slick::sim::exch::make_replay_gate (const nlohmann::json &instance, std::string_view feed_type, Queue &md_queue) |
| The gate a replaying instance's publisher waits on, or null when its config has no enabled feed of feed_type. | |
| void | slick::sim::exch::reject_pcap_with_live_feeds (bool has_pcap_feed, size_t live_feeds, std::string_view venue, std::string_view kind, const std::string &name) |
| Throws when a replay and live feeds would both write the one book. | |
| template<typename Event, typename Feed> | |
| Event | slick::sim::exch::replay_stamped (Event event, const Feed *feed) |
| event with its time set from the replay: a replay is stamped on the wall clock, not with the capture's own time. | |