Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
reject_commands.hpp File Reference
#include "cli_endpoint.hpp"
#include <algorithm>
#include <format>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for reject_commands.hpp:

Go to the source code of this file.

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

template<typename Set>
bool slick::sim::cli::toggle_id (Set &ids, const Command &command, std::string &out)
 Adds the command's ID to ids (flag 1) or removes it (flag 0), and says so in out.
template<typename Set>
void slick::sim::cli::list_ids (const Set &ids, std::string_view name, std::string &out)
 "<name>: a b c", sorted, or "<name>: (none)".
template<typename Set, typename OnNewOrders>
bool slick::sim::cli::serve_rejects (const Command &command, Set &reject_logon, Set &reject_new_orders, OnNewOrders &&on_new_orders, std::string &out)
 Serves the reject commands against a gateway's two lists.