42 const std::string& app_secret,
43 const std::string& access_token,
44 const std::optional<std::string>& http_url,
45 const std::optional<std::string>& quote_ws_url,
46 const std::optional<std::string>& trade_ws_url,
47 const std::optional<Language>& language,
48 bool enable_overnight,
49 const std::optional<PushCandlestickMode>& push_candlestick_mode);
58 const std::string& app_secret,
59 const std::string& access_token)
Definition: config.hpp:16
Config(const std::string &app_key, const std::string &app_secret, const std::string &access_token, const std::optional< std::string > &http_url, const std::optional< std::string > "e_ws_url, const std::optional< std::string > &trade_ws_url, const std::optional< Language > &language, bool enable_overnight, const std::optional< PushCandlestickMode > &push_candlestick_mode)
Config(const Config &)=delete
Config(const std::string &app_key, const std::string &app_secret, const std::string &access_token)
Definition: config.hpp:57
static Status from_env(Config &config)
Config(lb_config_t *config)
void refresh_access_token(int64_t expired_at, AsyncCallback< void *, std::string > callback)
Gets a new access_token
struct lb_config_t lb_config_t
Definition: config.hpp:11
Definition: async_result.hpp:7
std::function< void(AsyncResult< Ctx, T >)> AsyncCallback
Definition: async_result.hpp:39