From 4631609048e07cace4822b964d770e53e128d72a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Jun 2017 22:23:18 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_quotes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iguana/exchanges/LP_quotes.c b/iguana/exchanges/LP_quotes.c index 4918dff3b..283b69dfe 100644 --- a/iguana/exchanges/LP_quotes.c +++ b/iguana/exchanges/LP_quotes.c @@ -523,6 +523,7 @@ char *LP_autotrade(char *myipaddr,int32_t mypubsock,double profitmargin,char *ba asatoshis = bestutxo->payment.value * ordermatchprice; if ( LP_quoteinfoinit(&Q,bestutxo,rel,ordermatchprice) < 0 ) return(clonestr("{\"error\":\"cant set ordermatch quote\"}")); + printf("asatoshis %.8f = bvalue %.8f * ordermatch %.8f\n",dstr(asatoshis),dstr(bestutxo->payment.value),ordermatchprice); if ( LP_quotedestinfo(&Q,Q.timestamp+1,asatoshis,autxo->payment.txid,autxo->payment.vout,autxo->fee.txid,autxo->fee.vout,LP_mypubkey,autxo->coinaddr) < 0 ) return(clonestr("{\"error\":\"cant set ordermatch quote info\"}")); price = LP_query(myipaddr,mypubsock,profitmargin,"request",&Q);