Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
cli_endpoint.hpp File Reference
#include <common/control_messages.hpp>
#include <slick/logger.hpp>
#include <slick/queue.hpp>
#include <cstdint>
#include <cstring>
#include <string>
#include <string_view>
Include dependency graph for cli_endpoint.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  slick::sim::cli::Command
 One command, as the CLI server hands it to the thread that runs it. More...
class  slick::sim::cli::CliEndpoint
 Where the CLI server's commands reach a thread that owns some state (the main thread, or a venue's order gateway), and where that thread's answers come back. More...

Namespaces

namespace  slick
namespace  slick::sim
namespace  slick::sim::cli
 The CLI commands that switch a gateway's business rejects per ID: REJECT_LOGON, REJECT_NEW_ORDERS and LIST_REJECTS.

Functions

std::string slick::sim::cli::instance_path (std::string_view venue, std::string_view instance)
 <venue>/<instance>, or <venue> alone for the one instance of a venue configured without a list of them, which exch::expand_instances names after the venue.
std::string slick::sim::cli::venue_path (std::string_view venue, std::string_view rest={})
 <venue>[/<rest>], the venue lowercased (CME -> cme).
std::string slick::sim::cli::pcap_feed_path (std::string_view venue, std::string_view feed)
 pcap/<venue>/<feed>.
constexpr std::string_view slick::sim::cli::cut_text (std::string_view text, size_t size) noexcept
 text cut to size bytes, backing off up to 3 so as not to split a UTF-8 character.
bool slick::sim::cli::refuse_unserved (const Command &command, std::string &out)
 A handler's answer to a command it doesn't serve: says so in out, false.
constexpr slick::logger::LogLevel slick::sim::cli::log_level (CliCommandType command) noexcept
 What a command and its answer are logged at: DEBUG for what clients poll.