From a53ffd5e852acb3465f3e3b5baefedf04508c86b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 17 Oct 2017 21:10:04 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 23919cd69..48e022d68 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -289,8 +289,8 @@ void LP_autopriceset(void *ctx,int32_t dir,struct LP_priceinfo *basepp,struct LP margin = oppomargin; //printf("min %.8f %s/%s %.8f dir.%d margin %.8f (%.8f %.8f)\n",basepp->minprices[relpp->ind],relpp->symbol,basepp->symbol,price,dir,margin,1. / (price * (1. - margin)),(price * (1. + margin))); if ( dir > 0 ) - newprice = 1. / (price * (1. - margin)); - else newprice = (price * (1. - margin)); + newprice = 1. / (price * (1. + margin)); + else newprice = (price * (1. + margin)); //newprice = 1. / (price * (1. - margin)); if ( (minprice= basepp->minprices[relpp->ind]) == 0. || price >= minprice )