From 836a2ce6ba5fe801ddd94d1894f94305133737ea Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Nov 2017 16:22:01 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 607853dea..cd9ccab14 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -242,8 +242,8 @@ int32_t LP_autoprice(char *base,char *rel,cJSON *argjson) { if ( fixedprice > SMALLVAL ) { - refbase = rel; - refrel = base; + refbase = base; + refrel = rel; } for (i=0; ifixedprices[relpp->ind]) > SMALLVAL ) { LP_mypriceset(&changed,basepp->symbol,relpp->symbol,fixedprice); - printf("autoprice FIXED %s/%s <- %.8f\n",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; }