This commit is contained in:
jl777
2019-04-02 02:24:31 -11:00
parent 57b769c44d
commit 8e84d8e0ea
2 changed files with 4 additions and 4 deletions

View File

@@ -2202,8 +2202,8 @@ char *komodo_pricename(char *name,int32_t ind)
return(0);
if ( ind < sizeof(Forex)/sizeof(*Forex) )
{
strcpy(name,Forex[ind]);
strcat(name,"USD");
name[0] = 'U', name[1] = 'S', name[2] = 'D';
strcpy(name+3,Forex[ind]);
return(name);
} else ind -= sizeof(Forex)/sizeof(*Forex);
}

View File

@@ -1245,8 +1245,8 @@ UniValue prices(const UniValue& params, bool fHelp)
offset = j*width + i;
smoothed = komodo_pricesmoothed(&correlated[i],daywindow);
UniValue parr(UniValue::VARR);
parr.push_back(ValueFromAmount((int64_t)prices[offset]*10000));
parr.push_back(ValueFromAmount(correlated[i]*j<36?10000:1));
parr.push_back(ValueFromAmount((int64_t)prices[offset]*j<36?10000:1));
parr.push_back(ValueFromAmount(correlated[i]));
parr.push_back(ValueFromAmount(smoothed));
p.push_back(parr);
}