exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
exchange::client Namespace Reference

Namespaces

namespace  cli_option_names
namespace  cli_arg_descriptions

Classes

struct  OrderLimitResult
struct  OrderMarketResult
struct  OrderCancelResult
struct  OrderAmendResult
struct  DataCandlesResult
struct  DataBookL1Result
struct  DataBookL2Result
struct  DataBookL3Result
struct  DataOrderResult
struct  DataExecResult
struct  SecurityListResult
struct  SecurityViewResult
struct  ParseCommandResult
class  ResponseDisplayer

Functions

ParseCommandResult parseCommand (int argc, char **argv, std::string &serverUrl)
int main (int argc, char **argv) noexcept

Function Documentation

◆ main()

int exchange::client::main ( int argc,
char ** argv )
noexcept

The starting code of the exchange client.

Parameters
argcThe number of CLI arguments.
argvThe array of the values of the CLI arguments.
Returns
The exit code of the program.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseCommand()

ParseCommandResult exchange::client::parseCommand ( int argc,
char ** argv,
std::string & serverUrl )

Parse the raw command line arguments into the parameters needed to build a specific gRPC request for the exchange server.

Parameters
argcThe number of command line arguments.
argvThe values of the command line arguments.
serverUrlA mutable reference to the URL of the server to contact (if not specified, it defaults to localhost:8989).
Returns
Details about the command that was parsed from the command line (whether there was an error, and if there was no error, which command was chosen).
Here is the caller graph for this function: