Browse Source

Test

etomic
jl777 7 years ago
parent
commit
14c2a629b5
  1. 4
      iguana/exchanges/LP_portfolio.c

4
iguana/exchanges/LP_portfolio.c

@ -444,11 +444,11 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp)
else continue; else continue;
newprice = (price * (1. + margin)); newprice = (price * (1. + margin));
LP_mypriceset(&changed,rel,base,newprice); LP_mypriceset(&changed,rel,base,newprice);
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,rel,base,newprice); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,base,rel,newprice);
printf("price %.8f margin %.8f newprice %.8f %.8f\n",price,margin,newprice,(1. / price) * (1. + margin)); printf("price %.8f margin %.8f newprice %.8f %.8f\n",price,margin,newprice,(1. / price) * (1. + margin));
newprice = (1. / price) * (1. + margin); newprice = (1. / price) * (1. + margin);
LP_mypriceset(&changed,base,rel,newprice); LP_mypriceset(&changed,base,rel,newprice);
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,base,rel,newprice); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,rel,base,newprice);
} }
} }
else else

Loading…
Cancel
Save