44 const std::string& app_secret,
45 const std::string& access_token,
46 const std::optional<std::string>& http_url = std::nullopt,
47 const std::optional<std::string>& quote_ws_url = std::nullopt,
48 const std::optional<std::string>& trade_ws_url = std::nullopt,
49 const std::optional<Language>& language = std::nullopt,
50 bool enable_overnight =
false,
51 const std::optional<PushCandlestickMode>& push_candlestick_mode =
53 bool enable_print_quote_packages =
true,
54 const std::optional<std::string>& log_path = std::nullopt);
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=std::nullopt, const std::optional< std::string > "e_ws_url=std::nullopt, const std::optional< std::string > &trade_ws_url=std::nullopt, const std::optional< Language > &language=std::nullopt, bool enable_overnight=false, const std::optional< PushCandlestickMode > &push_candlestick_mode=std::nullopt, bool enable_print_quote_packages=true, const std::optional< std::string > &log_path=std::nullopt)
Config(const Config &)=delete
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