-
Notifications
You must be signed in to change notification settings - Fork 210
Service coinpaprika.provider
syl edited this page Oct 24, 2020
·
1 revision
Provides tools to fetch prices on coinpaprika API.
std::string get_rate_conversion(const std::string& fiat, const std::string& ticker, std::error_code& ec) const noexcept;
Returns the price in the given fiat of the given ticker as an std::string.
std::error_code ec;
current_price = paprika.get_rate_conversion("USD", "BTC", ec);
t_ticker_info_answer get_ticker_infos(const std::string& ticker) const noexcept;
t_ticker_historical_answer get_ticker_historical(const std::string& ticker) const noexcept;