Fix
This commit is contained in:
@@ -1556,8 +1556,8 @@ extern std::vector<uint8_t> Mineropret; // opreturn data set by the data gatheri
|
|||||||
|
|
||||||
#define issue_curl(cmdstr) bitcoind_RPC(0,(char *)"CBCOINBASE",cmdstr,0,0,0)
|
#define issue_curl(cmdstr) bitcoind_RPC(0,(char *)"CBCOINBASE",cmdstr,0,0,0)
|
||||||
|
|
||||||
const char *Cryptos[] = { "KMD", "ETH", "LTC", "BCHABC", "XMR", "IOTA", "ZEC", "WAVES", "LSK", "DCR" }; // must be on binance (for now)
|
const char *Cryptos[] = { "KMD", "ETH" }; // must be on binance (for now)
|
||||||
//"RVN", "DASH", "XEM", "BTS", "ICX", "HOT", "STEEM", "ENJ", "STRAT"
|
// "LTC", "BCHABC", "XMR", "IOTA", "ZEC", "WAVES", "LSK", "DCR", "RVN", "DASH", "XEM", "BTS", "ICX", "HOT", "STEEM", "ENJ", "STRAT"
|
||||||
const char *Forex[] =
|
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"
|
{ "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
|
}; // must be in ECB list
|
||||||
@@ -2027,7 +2027,7 @@ uint32_t get_binanceprice(const char *symbol)
|
|||||||
int32_t get_cryptoprices(uint32_t *prices,const char *list[],int32_t n,std::vector<std::string> strvec)
|
int32_t get_cryptoprices(uint32_t *prices,const char *list[],int32_t n,std::vector<std::string> strvec)
|
||||||
{
|
{
|
||||||
int32_t i,errs=0; uint32_t price; char *symbol;
|
int32_t i,errs=0; uint32_t price; char *symbol;
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n+strvec.size(); i++)
|
||||||
{
|
{
|
||||||
if ( i < n )
|
if ( i < n )
|
||||||
symbol = (char *)list[i];
|
symbol = (char *)list[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user