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

#include <coinbase_websocket_client.h>

Collaboration diagram for crypto_trader::adaptors::CoinbaseWebSocketClientConfig:
Collaboration graph

Public Types

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

Public Member Functions

 CoinbaseWebSocketClientConfig (const std::string &host, const nlohmann::json &text, const ListenCb &listenCb, const std::shared_ptr< std::atomic_bool > &isRunning)

Public Attributes

std::string d_host
nlohmann::json d_text
ListenCb d_listenCb
std::shared_ptr< std::atomic_bool > d_isRunning

Member Typedef Documentation

◆ ListenCb

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

Constructor & Destructor Documentation

◆ CoinbaseWebSocketClientConfig()

crypto_trader::adaptors::CoinbaseWebSocketClientConfig::CoinbaseWebSocketClientConfig ( const std::string & host,
const nlohmann::json & text,
const ListenCb & listenCb,
const std::shared_ptr< std::atomic_bool > & isRunning )
inline

Member Data Documentation

◆ d_host

std::string crypto_trader::adaptors::CoinbaseWebSocketClientConfig::d_host

◆ d_isRunning

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

◆ d_listenCb

ListenCb crypto_trader::adaptors::CoinbaseWebSocketClientConfig::d_listenCb

◆ d_text

nlohmann::json crypto_trader::adaptors::CoinbaseWebSocketClientConfig::d_text

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