Namespaces | |
| namespace | Default |
| namespace | details |
Classes | |
| struct | AppConfiguration |
| class | ArgCarriage |
| class | BenchmarkConfiguration |
| class | Book |
| class | BusSessionGatewayListener |
| class | ConfigurationBase |
| class | ConnectivityConfiguration |
| struct | CrossOrder |
| class | GatewayEmulatorThread |
| class | GatewayListener |
| class | Helper |
| struct | IdGenerator |
| class | InputLogFileConfiguration |
| class | Listener |
| class | LogonConfiguration |
| class | MainThreadAffinityConfiguration |
| struct | MessagePrinter |
| class | MySessionStorage |
| class | NetworkInterfaceConfiguration |
| class | OptionArgConverter |
| class | OptionArgConverter< const Char * > |
| class | OptionArgConverter< std::string > |
| class | Options |
| struct | Order |
| class | ReceivingThreadAffinityConfiguration |
| class | SessionSettings |
| class | Settings |
| class | SettingsConfiguration |
| struct | SignalHelper |
| class | StorageConfiguration |
| class | StorageConfigurationBase |
| class | TradingClient |
Functions | |
| std::pair< std::unique_ptr< GatewayEmulatorThread< BusSessionGatewayListener > >, std::unique_ptr< GatewayEmulatorThread< GatewayListener > > > | createEmulator (const SessionSettings &settings, const ConnectivityConfiguration &cfg, bool tcpDirect=false) |
| template<typename T> | |
| T | fromStr (const std::string &s) |
| std::shared_ptr< void > | setPriorityAndPolicy (Session *session=nullptr) |
| void | printBenchmarkSettings (std::ostream &o, size_t numberOfMessages, size_t intervalBetweenSending, size_t warmupInterval, SessionStorageType::Enum storageType) |
| std::unique_ptr< Session > | createSession (SessionType::Enum sessionType, SessionSettings settings, SessionListener *listener, SessionStorageType::Enum storageType) |
| std::unique_ptr< Session > | createSession (SessionReactor &stack, SessionType::Enum sessionType, SessionSettings settings, SessionListener *listener, SessionStorageType::Enum storageType) |
| std::unique_ptr< Session > | createSession (ServiceFactory &factory, SessionType::Enum sessionType, SessionSettings settings, SessionListener *listener, SessionStorageType::Enum storageType) |
| template<typename T, typename Stack> | |
| std::future< T > | wait (Stack &stack, std::promise< T > &promise, std::chrono::seconds timeout=std::chrono::seconds{30}) |
| template<typename T> | |
| std::future< T > | wait (std::promise< T > &promise, std::chrono::seconds timeout=std::chrono::seconds{30}) |
| BgwCredentials | receiveBgwCredentials (SessionSettings settings, std::string host, Port port) |
| void | throwBadOption (const Char *arg) |
| void | throwDuplicatedOption (const Char *option) |
| void | throwOptionArgConversionFailed (const Char *option) |
| template<typename T> | |
| bool | fromStr (T &result, const std::string &s) |
| bool | fromStr (SessionStorageType::Enum &result, const std::string &s) |
| template<typename Value> | |
| void | convertOptionArg (Value &value, const Char *option, const std::string &str) |
| void | throwBadOptionArgQty (const Char *option, size_t argQty, size_t minQty, size_t maxQty) |
| void | throwReqiredOptionArgMissing (const Char *option) |
| template<typename Value, typename Iterator> | |
| bool | args (const Options &options, const Char *option, Iterator target, size_t minQty=0, size_t maxQty=static_cast< size_t >(-1)) |
| template<typename Value> | |
| Value | argOrDefault (const Options &options, const Char *option, const Value &defaultValue=Value()) |
| template<typename Value, size_t Length> | |
| const Value * | argOrDefault (const Options &options, const Char *option, Value(&defaultValue)[Length]) |
| template<typename Value> | |
| Value | requiredArg (const Options &options, const Char *option) |
| SessionSettings | fillSettings (const LogonConfiguration &logonCfg, const ConnectivityConfiguration &connCfg, const SettingsConfiguration &settingsCfg) |
| void | fillSettings (SessionSettings &settings, const StorageConfigurationBase &cfg) |
| template<typename Config> | |
| void | fillStorageSettings (SessionSettings &settings, const Config &cfg, typename std::enable_if< std::is_base_of< StorageConfigurationBase, Config >::value, void * >::type=nullptr) |
| template<typename Config> | |
| void | fillStorageSettings (SessionSettings &, const Config &, typename std::enable_if<!std::is_base_of< StorageConfigurationBase, Config >::value, void * >::type=nullptr) |
| template<typename Config> | |
| void | fillBenchmarkSettings (SessionSettings &settings, const Config &, typename std::enable_if< std::is_base_of< BenchmarkConfiguration, Config >::value, void * >::type=nullptr) |
| template<typename Config> | |
| void | fillBenchmarkSettings (SessionSettings &settings, const Config &, typename std::enable_if<!std::is_base_of< BenchmarkConfiguration, Config >::value, void * >::type=nullptr) |
| template<typename AppCfg> | |
| SessionSettings | fillSettings (const AppCfg &cfg) |
| template<typename ... T> | |
| void | ignoreUnusedVariableWarning (T &&...) noexcept |
| std::string | toStr (Order::PriceOptional value) |
| auto | print (OrderPtr order) |
| bool | activeOrder (const Order &order) noexcept |
| template<typename MsgType> | |
| Timestamp | getTransactTime (MsgType &&msg, typename std::enable_if< hasTransactTime< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| Timestamp | getTransactTime (MsgType &&msg, typename std::enable_if<!hasTransactTime< MsgType >::value &&hasExecId< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| Timestamp | getTransactTime (MsgType &&, typename std::enable_if<!hasTransactTime< MsgType >::value &&!hasExecId< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| ExecTypeEnum | getOrdStatus (MsgType &&msg, ExecTypeEnum, typename std::enable_if< hasExecType< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| ExecTypeEnum | getOrdStatus (MsgType &&, ExecTypeEnum defaultValue, typename std::enable_if<!hasExecType< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| void | setOrdStatus (Order &order, MsgType &&msg, ExecTypeEnum defaultValue) |
| template<typename MsgType> | |
| void | setLeavesQty (Order &order, MsgType &&msg, typename std::enable_if< hasLeavesQty< MsgType >::value, void * >::type=nullptr) |
| template<typename MsgType> | |
| void | setLeavesQty (Order &, MsgType &&, typename std::enable_if<!hasLeavesQty< MsgType >::value, void * >::type=nullptr) |
| Decimal9 | toPriceMantissa (Decimal value) |
| template<typename T> | |
| T | parseUserInput (const std::string &userInput, typename std::enable_if< std::is_integral< T >::value, void * >::type=nullptr) |
| template<typename T> | |
| T | parseUserInput (const std::string &userInput, typename std::enable_if< isScopedEnum< T >::value, void * >::type=nullptr) |
| template<typename T> | |
| Decimal | parseUserInput (const std::string &userInput, typename std::enable_if< std::is_floating_point< T >::value, void * >::type=nullptr) |
| template<typename T> | |
| T | parseUserInput (const std::string &userInput, typename std::enable_if< std::is_same< T, std::string >::value, void * >::type=nullptr) |
| template<typename T> | |
| auto | toValueNamePair (T v, typename std::enable_if< isScopedEnum< T >::value, void * >::type=nullptr) |
| template<typename It> | |
| auto | join (It first, It last, char delim, typename std::enable_if< isScopedEnum< typename It::value_type >::value, void * >::type=nullptr) |
Variables | |
| constexpr size_t | NewOrderCrossRequestMaxEntriesCount = 2 |
| constexpr size_t | QuoteCancelRequestMaxEntriesCount = 1 |
| constexpr size_t | MassQuoteRequestMaxEntriesCount = 2 |
Definition at line 39 of file TradingClient.h.
| using CancelRequestMsg = MessageHolder<CancelRequest> |
Definition at line 38 of file TradingClient.h.
| using CrossOrderPtr = std::shared_ptr<CrossOrder> |
| using hasExecId = typename details::hasExecIdImpl<cleanType<T>> |
| using hasExecType = typename details::hasExecTypeImpl<cleanType<T>> |
| using hasLeavesQty = typename details::hasLeavesQtyImpl<cleanType<T>> |
| using hasTransactTime = typename details::hasTransactTimeImpl<cleanType<T>> |
| using MassQuoteRequestMsg = MessageHolder<MassQuoteRequest, getMaxMessageSize<MassQuoteRequest>(MassQuoteRequestMaxEntriesCount)> |
Definition at line 43 of file TradingClient.h.
| using NewOrderCrossRequestMsg = MessageHolder<NewOrderCrossRequest, getMaxMessageSize<NewOrderCrossRequest>(NewOrderCrossRequestMaxEntriesCount)> |
Definition at line 35 of file TradingClient.h.
Definition at line 36 of file TradingClient.h.
| using OptionalRef = std::optional<std::shared_ptr<T>> |
| typedef std::vector<OptionArg> OptionArgs |
Definition at line 40 of file TradingClient.h.
| using QuoteCancelRequestMsg = MessageHolder<QuoteCancelRequest, getMaxMessageSize<QuoteCancelRequest>(QuoteCancelRequestMaxEntriesCount)> |
Definition at line 42 of file TradingClient.h.
| using QuoteRequestMsg = MessageHolder<QuoteRequest> |
Definition at line 41 of file TradingClient.h.
Definition at line 37 of file TradingClient.h.
|
noexcept |
Definition at line 1053 of file TradingClient.cpp.
|
inline |
Definition at line 375 of file Options.h.
|
inline |
Definition at line 385 of file Options.h.
|
inline |
Definition at line 345 of file Options.h.
|
inline |
|
inline |
Definition at line 157 of file Emulator.h.
|
inline |
|
inline |
|
inline |
| void fillBenchmarkSettings | ( | SessionSettings & | settings, |
| const Config & | , | ||
| typename std::enable_if< std::is_base_of< BenchmarkConfiguration, Config >::value, void * >::type | = nullptr ) |
Definition at line 83 of file Settings.h.
| void fillBenchmarkSettings | ( | SessionSettings & | settings, |
| const Config & | , | ||
| typename std::enable_if<!std::is_base_of< BenchmarkConfiguration, Config >::value, void * >::type | = nullptr ) |
Definition at line 96 of file Settings.h.
| SessionSettings fillSettings | ( | const AppCfg & | cfg | ) |
Definition at line 102 of file Settings.h.
|
inline |
Definition at line 32 of file Settings.h.
|
inline |
Definition at line 64 of file Settings.h.
| void fillStorageSettings | ( | SessionSettings & | , |
| const Config & | , | ||
| typename std::enable_if<!std::is_base_of< StorageConfigurationBase, Config >::value, void * >::type | = nullptr ) |
Definition at line 79 of file Settings.h.
| void fillStorageSettings | ( | SessionSettings & | settings, |
| const Config & | cfg, | ||
| typename std::enable_if< std::is_base_of< StorageConfigurationBase, Config >::value, void * >::type | = nullptr ) |
Definition at line 73 of file Settings.h.
| T fromStr | ( | const std::string & | s | ) |
|
inline |
Definition at line 230 of file Options.h.
| bool fromStr | ( | T & | result, |
| const std::string & | s ) |
| ExecTypeEnum getOrdStatus | ( | MsgType && | , |
| ExecTypeEnum | defaultValue, | ||
| typename std::enable_if<!hasExecType< MsgType >::value, void * >::type | = nullptr ) |
| ExecTypeEnum getOrdStatus | ( | MsgType && | msg, |
| ExecTypeEnum | , | ||
| typename std::enable_if< hasExecType< MsgType >::value, void * >::type | = nullptr ) |
| Timestamp getTransactTime | ( | MsgType && | , |
| typename std::enable_if<!hasTransactTime< MsgType >::value &&!hasExecId< MsgType >::value, void * >::type | = nullptr ) |
| Timestamp getTransactTime | ( | MsgType && | msg, |
| typename std::enable_if< hasTransactTime< MsgType >::value, void * >::type | = nullptr ) |
| Timestamp getTransactTime | ( | MsgType && | msg, |
| typename std::enable_if<!hasTransactTime< MsgType >::value &&hasExecId< MsgType >::value, void * >::type | = nullptr ) |
|
noexcept |
|
inline |
Definition at line 208 of file Utils.h.
| T parseUserInput | ( | const std::string & | userInput, |
| typename std::enable_if< isScopedEnum< T >::value, void * >::type | = nullptr ) |
Definition at line 157 of file Utils.h.
| Decimal parseUserInput | ( | const std::string & | userInput, |
| typename std::enable_if< std::is_floating_point< T >::value, void * >::type | = nullptr ) |
Definition at line 184 of file Utils.h.
| T parseUserInput | ( | const std::string & | userInput, |
| typename std::enable_if< std::is_integral< T >::value, void * >::type | = nullptr ) |
Definition at line 142 of file Utils.h.
| T parseUserInput | ( | const std::string & | userInput, |
| typename std::enable_if< std::is_same< T, std::string >::value, void * >::type | = nullptr ) |
|
inline |
Definition at line 77 of file Order.h.
|
inline |
Definition at line 182 of file Helpers.h.
|
inline |
Definition at line 264 of file Listener.h.
Definition at line 391 of file Options.h.
| void setLeavesQty | ( | Order & | , |
| MsgType && | , | ||
| typename std::enable_if<!hasLeavesQty< MsgType >::value, void * >::type | = nullptr ) |
| void setLeavesQty | ( | Order & | order, |
| MsgType && | msg, | ||
| typename std::enable_if< hasLeavesQty< MsgType >::value, void * >::type | = nullptr ) |
| void setOrdStatus | ( | Order & | order, |
| MsgType && | msg, | ||
| ExecTypeEnum | defaultValue ) |
Definition at line 122 of file Utils.h.
|
inline |
Definition at line 150 of file Helpers.h.
|
inline |
|
inline |
Definition at line 298 of file Options.h.
|
inline |
|
inline |
Definition at line 209 of file Options.h.
|
inline |
| std::string toStr | ( | Order::PriceOptional | value | ) |
| auto toValueNamePair | ( | T | v, |
| typename std::enable_if< isScopedEnum< T >::value, void * >::type | = nullptr ) |
| std::future< T > wait | ( | Stack & | stack, |
| std::promise< T > & | promise, | ||
| std::chrono::seconds | timeout = std::chrono::seconds{30} ) |
Definition at line 227 of file Listener.h.
| std::future< T > wait | ( | std::promise< T > & | promise, |
| std::chrono::seconds | timeout = std::chrono::seconds{30} ) |
Definition at line 253 of file Listener.h.
|
constexpr |
Definition at line 33 of file TradingClient.h.
|
constexpr |
Definition at line 31 of file TradingClient.h.
|
constexpr |
Definition at line 32 of file TradingClient.h.