forked from KomodoPlatform/komodo-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Service coinpaprika.provider
firstcryptoman edited this page Dec 13, 2021
·
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;