crypto_trader
Cryptocurrency Trading Bot API Documentation
Loading...
Searching...
No Matches
crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig Struct Reference

#include <coinbase_websocket_client_async.h>

Collaboration diagram for crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig:
Collaboration graph

Public Types

using ListenCb = std::function<void(const std::string&)>

Public Member Functions

 CoinbaseWebSocketClientAsyncConfig (const std::string &host, const nlohmann::json &text, const ListenCb &listenCb, int maxReconnectAttempts, const std::chrono::seconds &reconnectDelay, const std::shared_ptr< std::atomic_bool > &isRunning)

Public Attributes

std::string d_host
nlohmann::json d_text
ListenCb d_listenCb
int d_maxReconnectAttempts
std::chrono::seconds d_reconnectDelay
std::shared_ptr< std::atomic_bool > d_isRunning

Member Typedef Documentation

◆ ListenCb

using crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::ListenCb = std::function<void(const std::string&)>

Constructor & Destructor Documentation

◆ CoinbaseWebSocketClientAsyncConfig()

crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::CoinbaseWebSocketClientAsyncConfig ( const std::string & host,
const nlohmann::json & text,
const ListenCb & listenCb,
int maxReconnectAttempts,
const std::chrono::seconds & reconnectDelay,
const std::shared_ptr< std::atomic_bool > & isRunning )
inline

Member Data Documentation

◆ d_host

std::string crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_host

◆ d_isRunning

std::shared_ptr<std::atomic_bool> crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_isRunning

◆ d_listenCb

ListenCb crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_listenCb

◆ d_maxReconnectAttempts

int crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_maxReconnectAttempts

◆ d_reconnectDelay

std::chrono::seconds crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_reconnectDelay

◆ d_text

nlohmann::json crypto_trader::adaptors::CoinbaseWebSocketClientAsyncConfig::d_text

The documentation for this struct was generated from the following file: