jl777 7 years ago
parent
commit
2f93b99037
  1. 3
      iguana/exchanges/LP_portfolio.c

3
iguana/exchanges/LP_portfolio.c

@ -582,7 +582,10 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp)
price = 1. / price_btc;
else continue;
if ( factor > 0. )
{
printf("price %.8f -> factor %.8f %.8f\n",price,factor,(price * factor) + offset);
price = (price * factor) + offset;
}
newprice = (price * (1. + buymargin));
if ( LP_autorefs[i].lastbid < SMALLVAL )
LP_autorefs[i].lastbid = newprice;

Loading…
Cancel
Save