Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3d58453b5b
  1. 6
      iguana/exchanges/LP_commands.c

6
iguana/exchanges/LP_commands.c

@ -320,10 +320,10 @@ 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 ",metric);
if ( metric > 0.9 )
printf("%f %f ",price,metric);
if ( metric < 1.1 )
{
metric = Q[i].destsatoshis * metric * metric * metric;
metric = dstr(Q[i].destsatoshis) / metric * metric * metric;
printf("%f, ",metric);
if ( metric > bestmetric )
{

Loading…
Cancel
Save