-
Notifications
You must be signed in to change notification settings - Fork 212
Api Coinpaprika
Sztergbaum Roman edited this page Oct 22, 2020
·
7 revisions
pplx::task<web::http::http_response> async_price_converter(const price_converter_request& request);
Take a request const price_converter_request& request and return a asynchronous task.
const price_converter_request request{.base_currency_id = "BTC", .quote_currency_id = "USD"};
async_price_converter(request)
.then([](web::http::http_response resp) {
//! Handle Answer here
}).then(&handle_exception_pplx_task);
pplx::task<web::http::http_response> async_ticker_info(const ticker_infos_request& request);
Take a request const ticker_infos_request& request and return a asynchronous task.
auto answer_functor = [](web::http::http_response resp) { /* Handle answer here */ };
const ticker_infos_request request{.ticker_currency_id = "btc-bitcoin", .ticker_quotes = {"USD", "EUR", "BTC"}};
async_ticker_info(request).then(answer_functor).then(&handle_exception_pplx_task);