static Pointer create(asio::io_context &context, Authorizer< Connection > &authorizer, LOB::LimitOrderBook &book)
Create a shared pointer to a new connection.
Definition: connection.hpp:326
Logic for sending/receiving application messages in a financial market.
Definition: authorizer.hpp:26
Server(asio::io_context &context_, LOB::LimitOrderBook &book_, uint16_t port, std::vector< nlohmann::json > accounts)
Initialize a new order entry server.
Definition: server.hpp:69
Logic for looking up and validating credentials for new connections.
Definition: authorizer.hpp:32
const Authorizer< Connection > & get_authorizer()
Return the authorizer associated with this server.
Definition: server.hpp:107
asio::ip::address address() const
Return the address the server is running at.
Definition: server.hpp:93
An order book for managing Limit / Order objects in a continuous double auction.
Definition: limit_order_book.hpp:40
void new_user(std::string username, std::string password)
Create a new user in the account manager.
Definition: authorizer.hpp:46
A server that manages multiple client connections for direct market access.
Definition: server.hpp:33
uint16_t port() const
Return the port the server is running at.
Definition: server.hpp:101
const LOB::LimitOrderBook & get_book()
Return the limit order book for this server.
Definition: server.hpp:113