Browse Source

Test

patch-3
jl777 7 years ago
parent
commit
c7b73c2bc8
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 4
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_ordermatch.c

@ -913,7 +913,7 @@ struct LP_quoteinfo *LP_trades_gotrequest(void *ctx,struct LP_quoteinfo *qp,stru
return(0); return(0);
if ( p >= qprice ) if ( p >= qprice )
break; break;
price /= 0.99777; price /= 0.995;
i++; i++;
} }
printf("i.%d qprice %.8f myprice %.8f price %.8f [%.8f]\n",i,qprice,myprice,price,p); printf("i.%d qprice %.8f myprice %.8f price %.8f [%.8f]\n",i,qprice,myprice,price,p);

4
iguana/exchanges/LP_rpc.c

@ -665,7 +665,7 @@ again:
if ( coin->electrum != 0 ) if ( coin->electrum != 0 )
rate *= 1.5; rate *= 1.5;
if ( fabs(rate - coin->rate) > SMALLVAL ) if ( fabs(rate - coin->rate) > SMALLVAL )
printf("t%u estimated rate.(%s) (%s) -> %.8f %.8f\n",coin->ratetime,coin->symbol,retstr,rate,coin->rate); printf("%u t%u estimated rate.(%s) (%s) -> %.8f %.8f\n",(uint32_t)time(NULL),coin->ratetime,coin->symbol,retstr,rate,coin->rate);
coin->rate = rate; coin->rate = rate;
coin->ratetime = (uint32_t)time(NULL); coin->ratetime = (uint32_t)time(NULL);
} }
@ -683,7 +683,7 @@ again:
double LP_getestimatedrate(struct iguana_info *coin) double LP_getestimatedrate(struct iguana_info *coin)
{ {
double rate = 0.00000020; double rate = 0.00000005;
if ( coin == 0 ) if ( coin == 0 )
return(rate); return(rate);
if ( (rate= _LP_getestimatedrate(coin)) <= 0. ) if ( (rate= _LP_getestimatedrate(coin)) <= 0. )

Loading…
Cancel
Save