From 34edbfc270ae42fca27d1d3793324f285fe92adc Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Nov 2017 16:27:51 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index cd9ccab14..ff6e7709a 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -277,20 +277,13 @@ void LP_autopriceset(void *ctx,int32_t dir,struct LP_priceinfo *basepp,struct LP double margin,minprice,newprice,oppomargin,fixedprice,factor,offset; double bid,ask; int32_t changed; margin = basepp->margins[relpp->ind]; oppomargin = relpp->margins[basepp->ind]; - if ( (fixedprice= relpp->fixedprices[basepp->ind]) > SMALLVAL ) + if ( (fixedprice= basepp->fixedprices[relpp->ind]) > SMALLVAL ) { LP_mypriceset(&changed,relpp->symbol,basepp->symbol,fixedprice); printf("autoprice FIXED %s/%s <- %.8f\n",basepp->symbol,relpp->symbol,fixedprice); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,relpp->symbol,basepp->symbol,fixedprice); return; } - else if ( (fixedprice= basepp->fixedprices[relpp->ind]) > SMALLVAL ) - { - LP_mypriceset(&changed,basepp->symbol,relpp->symbol,fixedprice); - printf("autoprice FIXED2 %s/%s <- %.8f\n",basepp->symbol,relpp->symbol,fixedprice); - LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,basepp->symbol,relpp->symbol,fixedprice); - return; - } if ( margin != 0. || oppomargin != 0. ) { offset = basepp->offsets[relpp->ind];