New wren methods ticker_currency() and ticker_exchange()

This commit is contained in:
King_DuckZ 2022-05-14 07:54:13 +02:00
commit 6cbe6ae47f
3 changed files with 57 additions and 8 deletions

View file

@ -20,10 +20,17 @@
#include "ticker_price.hpp"
namespace duck {
enum class BitcoinityMatchType {
Any,
Exact,
CurrencyOnly,
ExchangeOnly
};
TickerPrice bitcoinity_ticker_price (
std::string_view exchange,
std::string_view currency,
bool exact_match
BitcoinityMatchType match_type
);
extern const std::string_view g_bitcoinity_wren_module;