Browse Source

Test

etomic
jl777 8 years ago
parent
commit
8682106cfe
  1. 4
      iguana/exchanges/LP_commands.c

4
iguana/exchanges/LP_commands.c

@ -320,11 +320,11 @@ cJSON *LP_autotrade(struct LP_utxoinfo *myutxo,char *base,double maxprice)
if ( (price= prices[i]) != 0. && Q[i].destsatoshis != 0 )
{
metric = price / bestprice;
printf("%f %f ",price,metric);
printf("%f %f %f %f ",price,metric,dstr(Q[i].destsatoshis),metric * metric * metric);
if ( metric < 1.1 )
{
metric = dstr(Q[i].destsatoshis) * metric * metric * metric;
printf("%f, ",metric);
printf("%f\n",metric);
if ( bestmetric == 0. || metric < bestmetric )
{
besti = i;

Loading…
Cancel
Save