Browse Source

Autoprice with USD pegs

jl777
jl777 7 years ago
parent
commit
4b6e001e6d
  1. 2
      iguana/exchanges/LP_portfolio.c

2
iguana/exchanges/LP_portfolio.c

@ -592,7 +592,7 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp)
} }
if ( factor > 0. ) if ( factor > 0. )
{ {
printf("USD %.8f KMDBTC %.8f pricebtc %.8f price %.8f -> factor %.8f %.8f\n",price_usd,kmd_btc,price_btc,price,factor,(price * factor) + offset); //printf("USD %.8f KMDBTC %.8f pricebtc %.8f price %.8f -> factor %.8f %.8f\n",price_usd,kmd_btc,price_btc,price,factor,(price * factor) + offset);
price = (price * factor) + offset; price = (price * factor) + offset;
} }
newprice = (price * (1. + buymargin)); newprice = (price * (1. + buymargin));

Loading…
Cancel
Save