Browse Source

Test

etomic
jl777 7 years ago
parent
commit
6a6311bfea
  1. 5
      iguana/exchanges/LP_portfolio.c

5
iguana/exchanges/LP_portfolio.c

@ -431,8 +431,8 @@ void prices_loop(void *ignore)
for (iter=0; iter<3; iter++)
{
requestid = quoteid = 0;
if ( LP_utxo_bestfit(sellcoin,relvolume) == 0 )
continue;
if ( LP_utxo_bestfit(sellcoin,relvolume) != 0 )
{
if ( (retstr2= LP_autotrade(ctx,"127.0.0.1",-1,buycoin,sellcoin,maxprice,relvolume,60,24*3600)) != 0 )
{
if ( (retjson2= cJSON_Parse(retstr2)) != 0 )
@ -448,6 +448,7 @@ void prices_loop(void *ignore)
}
if ( requestid != 0 && quoteid != 0 )
break;
} else printf("cant find alice %.8f %s\n",relvolume,sellcoin);
relvolume *= 0.1;
}
}

Loading…
Cancel
Save