23 for (
const auto &live : feeds) {
24 for (
const auto &pcap : feeds) {
26 live.venue == pcap.venue) {
27 throw std::runtime_error(std::format(
28 "live feed '{}' and pcap feed '{}' can't run together: an exchange has one kind or the other",
29 live.name, pcap.name));
36inline std::string
list_feeds(
const std::vector<FeedInfo> &feeds) {
38 for (
const auto &feed : feeds) {
Helpers for a venue whose one config entry describes several independent exchange instances,...
void reject_mixed_feeds(const std::vector< FeedInfo > &feeds)
Throws when one venue has both live and pcap feeds, in whichever of its instances: a venue's market i...
std::string list_feeds(const std::vector< FeedInfo > &feeds)
<live|pcap> <name> per feed, one per line: the CLI's answer to feeds.
constexpr const char * kind_name(FeedKind kind) noexcept
As the CLI lists it.
FeedKind
Where a feed's market data comes from.
@ LIVE
The venue, as it happens.
One enabled market-data feed, as Exchange::enabledFeeds() reports it.
std::string name
<venue>/<feed>, or for a feed without a name its exchange's <venue>[/<instance>].