Rearrange
This commit is contained in:
@@ -1552,6 +1552,16 @@ extern std::vector<uint8_t> Mineropret; // opreturn data set by the data gatheri
|
|||||||
#define PRICES_MAXCHANGE (COIN / 100) // maximum acceptable change, set at 1%
|
#define PRICES_MAXCHANGE (COIN / 100) // maximum acceptable change, set at 1%
|
||||||
#define PRICES_SIZEBIT0 (sizeof(uint32_t) * 4) // 4 uint32_t unixtimestamp, BTCUSD, BTCGBP and BTCEUR
|
#define PRICES_SIZEBIT0 (sizeof(uint32_t) * 4) // 4 uint32_t unixtimestamp, BTCUSD, BTCGBP and BTCEUR
|
||||||
#define KOMODO_LOCALPRICE_CACHESIZE 7
|
#define KOMODO_LOCALPRICE_CACHESIZE 7
|
||||||
|
|
||||||
|
|
||||||
|
#define issue_curl(cmdstr) bitcoind_RPC(0,(char *)"CBCOINBASE",cmdstr,0,0,0)
|
||||||
|
|
||||||
|
const char *Cryptos[] = { "KMD", "ETH", "LTC", "BCHABC", "XMR", "IOTA", "DASH", "XEM", "ZEC", "WAVES", "RVN", "LSK", "DCR", "BTS", "ICX", "HOT", "STEEM", "ENJ", "STRAT" }; // must be on binance (for now)
|
||||||
|
|
||||||
|
const char *Forex[] =
|
||||||
|
{ "BGN","NZD","ILS","RUB","CAD","PHP","CHF","AUD","JPY","TRY","HKD","MYR","HRK","CZK","IDR","DKK","NOK","HUF","GBP","MXN","THB","ISK","ZAR","BRL","SGD","PLN","INR","KRW","RON","CNY","SEK","EUR"
|
||||||
|
}; // must be in ECB list
|
||||||
|
|
||||||
uint32_t PriceCache[KOMODO_LOCALPRICE_CACHESIZE][4+sizeof(Cryptos)/sizeof(*Cryptos)+sizeof(Forex)/sizeof(*Forex)];
|
uint32_t PriceCache[KOMODO_LOCALPRICE_CACHESIZE][4+sizeof(Cryptos)/sizeof(*Cryptos)+sizeof(Forex)/sizeof(*Forex)];
|
||||||
|
|
||||||
void komodo_PriceCache_shift()
|
void komodo_PriceCache_shift()
|
||||||
@@ -1923,13 +1933,6 @@ cJSON *send_curl(char *url,char *fname)
|
|||||||
|
|
||||||
// get_urljson just returns the JSON returned by the URL using issue_curl
|
// get_urljson just returns the JSON returned by the URL using issue_curl
|
||||||
|
|
||||||
#define issue_curl(cmdstr) bitcoind_RPC(0,(char *)"CBCOINBASE",cmdstr,0,0,0)
|
|
||||||
|
|
||||||
const char *Cryptos[] = { "KMD", "ETH", "LTC", "BCHABC", "XMR", "IOTA", "DASH", "XEM", "ZEC", "WAVES", "RVN", "LSK", "DCR", "BTS", "ICX", "HOT", "STEEM", "ENJ", "STRAT" };
|
|
||||||
|
|
||||||
const char *Forex[] =
|
|
||||||
{ "BGN","NZD","ILS","RUB","CAD","PHP","CHF","AUD","JPY","TRY","HKD","MYR","HRK","CZK","IDR","DKK","NOK","HUF","GBP","MXN","THB","ISK","ZAR","BRL","SGD","PLN","INR","KRW","RON","CNY","SEK","EUR"
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const char *Techstocks[] =
|
const char *Techstocks[] =
|
||||||
|
|||||||
Reference in New Issue
Block a user