From 2f93b99037cc61a5f0428b3be9ed40aad6b41497 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 31 Mar 2018 13:40:50 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 8dd603178..6dac2a7e8 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/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;