From 490b995f18f6db7ab6a942786db27f7e96d29248 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 17 Oct 2017 20:49:32 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 5d7927574..81aca5097 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -292,7 +292,7 @@ void LP_autopriceset(void *ctx,int32_t dir,struct LP_priceinfo *basepp,struct LP // price = 1. / (price * (1. - margin)); //else price = (price * (1. - margin)); - newprice = 1. / (price * (1. - margin)); + newprice = (price * (1. - margin)); if ( (minprice= basepp->minprices[relpp->ind]) == 0. || price >= minprice ) { LP_mypriceset(&changed,relpp->symbol,basepp->symbol,newprice);