Move code out of main.cpp

This commit is contained in:
King_DuckZ 2022-05-14 18:23:58 +02:00
commit 18e5317baf
7 changed files with 117 additions and 82 deletions

View file

@ -19,6 +19,10 @@
#include "ticker_price.hpp"
namespace wren {
class VM;
} //namespace wren
namespace duck {
enum class BitcoinityMatchType {
Any,
@ -27,11 +31,13 @@ enum class BitcoinityMatchType {
ExchangeOnly
};
extern const std::string_view g_bitcoinity_wren_module;
TickerPrice bitcoinity_ticker_price (
std::string_view exchange,
std::string_view currency,
BitcoinityMatchType match_type
);
extern const std::string_view g_bitcoinity_wren_module;
void register_bitcoinity_to_wren (wren::VM& vm);
} //namespace duck