CBOE Emulator
1.0
|
Logic for sending/receiving application messages in a financial market. More...
Namespaces | |
Extensions | |
Extensions to the Client / Server asio context. | |
Handlers | |
Logic for handling CLI messages for the Client / Server. | |
LOB | |
Logic for maintaining a continuous double auction via a limit-order book. | |
Classes | |
class | Authorizer |
Logic for looking up and validating credentials for new connections. More... | |
class | Client |
A client for interacting with the direct market access server. More... | |
class | Connection |
A TCP connection to a client device for providing direct market access. More... | |
class | Server |
A server that manages multiple client connections for direct market access. More... | |
struct | SystemAccount |
A subclass of the LOB::Account that manages client state on the market server. More... | |
Typedefs | |
typedef std::set< OrderID > | OrderIDSet |
a type for keeping order IDs in an unordered set | |
typedef int32_t | ClientShares |
a type for storing the amount of shares a client has | |
typedef int64_t | ClientCapital |
a type for storing the amount of capital a client has | |
typedef Clock::TimeStamp | TimeStamp |
A forward a declaration for the Clock timestamp. | |
typedef uint32_t | SequenceNumber |
A type for sequence numbers. | |
typedef std::array< char, 4 > | Username |
A type for user names. | |
typedef std::array< char, 12 > | Password |
A type for passwords. | |
typedef uint32_t | Quantity |
A type for order quantities. | |
typedef uint64_t | Price |
A type for order prices. | |
typedef uint64_t | OrderID |
A type for order IDs. | |
Enumerations | |
enum | Side : char { Sell = 'S', Buy = 'B' } |
The side of an order. | |
Functions | |
Username | make_username (std::string username) |
Make a username from the given input string. More... | |
Password | make_password (std::string password) |
Make a password from the given input string. More... | |
std::ostream & | operator<< (std::ostream &stream, const Side &side) |
Write the order side to a stream. More... | |
constexpr double | side_to_double (Side side) |
Convert an order side character to a double. More... | |
constexpr bool | side_to_bool (Side side) |
Convert an order side character to a boolean value. More... | |
constexpr LOB::Side | side_to_LOB_side (Side side) |
Convert a side character to a LOB side value. More... | |
constexpr Side | bool_to_side (bool side) |
Convert a boolean to an order side. More... | |
Variables | |
class OrderEntry::Server | __attribute__ |
Logic for sending/receiving application messages in a financial market.
A single side (buy/sell) of the LimitOrderBook.
Logic for sending/receiving application messages in a financial market.
|
inlineconstexpr |
Convert a boolean to an order side.
side | the side to convert to an order side |
Password OrderEntry::make_password | ( | std::string | password | ) |
Make a password from the given input string.
password | the string to convert to a password object |
Username OrderEntry::make_username | ( | std::string | username | ) |
Make a username from the given input string.
username | the string to convert to a username object |
|
inline |
Write the order side to a stream.
stream | the stream to write the order side to |
side | the order side to write to the stream |
|
inlineconstexpr |
Convert an order side character to a boolean value.
side | the order side to convert |
|
inlineconstexpr |
Convert an order side character to a double.
side | the order side to convert to a double |