From fb5edc1729773421beb0af2e1c70d71b19b03d4f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 29 Sep 2016 13:20:27 -0300 Subject: [PATCH] test --- basilisk/basilisk_tradebot.c | 3 ++- iguana/iguana_exchanges.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_tradebot.c b/basilisk/basilisk_tradebot.c index 51cdbe2b3..bbda31649 100755 --- a/basilisk/basilisk_tradebot.c +++ b/basilisk/basilisk_tradebot.c @@ -405,7 +405,8 @@ double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk aveprice = refprice; if ( fabs(aveprice) < SMALLVAL ) return(0); - destamount = (1.0 - profitmargin) * aveprice * list[0].srcamount; + //retvals[0] = avebid, retvals[1] = bidvol, retvals[2] = aveask, retvals[3] = askvol; + destamount = (1.0 - profitmargin) * retvals[0] * list[0].srcamount; if ( (retstr= InstantDEX_available(myinfo,iguana_coinfind(list[0].dest),0,0,list[0].dest)) != 0 ) { if ( (retjson= cJSON_Parse(retstr)) != 0 ) diff --git a/iguana/iguana_exchanges.c b/iguana/iguana_exchanges.c index ab7a089e1..8ff60232a 100755 --- a/iguana/iguana_exchanges.c +++ b/iguana/iguana_exchanges.c @@ -105,7 +105,7 @@ double instantdex_aveprice(struct supernet_info *myinfo,struct exchange_quote *s { pricesum += (quote.price * quote.volume); totalvol += quote.volume; - printf("i.%d of %d %12.8f vol %.8f %s | aveprice %.8f total vol %.8f\n",i,n,sortbuf[i].price,quote.volume,active[quote.val]->exchange->name,pricesum/totalvol,totalvol); + //printf("i.%d of %d %12.8f vol %.8f %s | aveprice %.8f total vol %.8f\n",i,n,sortbuf[i].price,quote.volume,active[quote.val]->exchange->name,pricesum/totalvol,totalvol); } } if ( totalvol > 0. )