From bf7d9c60d45c3a385365cb851ca97e8a3360ced0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 4 Jun 2017 21:03:18 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 591b1e9ff..38016a30a 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -248,7 +248,7 @@ cJSON *LP_tradecandidates(struct LP_utxoinfo *myutxo,char *base) { item = jitem(array,i); LP_quoteparse(&Q,item); - printf(">>>> i.%d %.8f %.8f\n",i,dstr(myutxo->satoshis),dstr(Q.destsatoshis)); + printf(">>>> i.%d %.8f %.8f Q: price %.8f\n",i,dstr(myutxo->satoshis),dstr(Q.destsatoshis),jdouble(item,"price")); safecopy(coinstr,jstr(item,"base"),sizeof(coinstr)); if ( strcmp(coinstr,base) == 0 ) { @@ -264,7 +264,7 @@ cJSON *LP_tradecandidates(struct LP_utxoinfo *myutxo,char *base) jaddnum(icopy,"price",price); jaddi(retarray,icopy); } - } else printf("skip %s estimated %.8f\n",coinstr,dstr(satoshis)); + } } } free_json(array); @@ -306,7 +306,7 @@ cJSON *LP_autotrade(struct LP_utxoinfo *myutxo,char *base,double maxprice) } if ( (prices[i]= price) != 0. && (bestprice == 0. || price < bestprice) ) bestprice = price; - char str[65]; printf("i.%d of %d: (%s) -> txid.%s price %.8f best %.8f dest %.8f\n",i,n,jprint(item,0),bits256_str(str,Q[i].txid),price,bestprice,dstr(Q[i].destsatoshis)); + //char str[65]; printf("i.%d of %d: (%s) -> txid.%s price %.8f best %.8f dest %.8f\n",i,n,jprint(item,0),bits256_str(str,Q[i].txid),price,bestprice,dstr(Q[i].destsatoshis)); } if ( bestprice != 0. ) {