Browse Source

Test

etomic
jl777 7 years ago
parent
commit
fec6d27996
  1. 7
      iguana/exchanges/LP_stats.c
  2. 3
      iguana/exchanges/pendings

7
iguana/exchanges/LP_stats.c

@ -298,6 +298,13 @@ char *LP_statslog_disp(int32_t n,uint32_t starttime,uint32_t endtime)
LP_swapstats_line(numtrades,basevols,relvols,line,sp);
item = cJSON_CreateObject();
jadd64bits(item,"aliceid",sp->aliceid);
jaddbits256(item,"src",sp->Q.srchash);
jaddstr(item,"base",sp->Q.srccoin);
jaddnum(item,"basevol",dstr(sp->Q.satoshis));
jaddbits256(item,"dest",sp->Q.desthash);
jaddstr(item,"rel",sp->Q.destcoin);
jaddnum(item,"relvol",dstr(sp->Q.destsatoshis));
jaddnum(item,"price",sp->qprice);
jaddnum(item,"requestid",sp->Q.R.requestid);
jaddnum(item,"quoteid",sp->Q.R.quoteid);
jaddstr(item,"line",line);

3
iguana/exchanges/pendings

@ -0,0 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"statsdisp\",\"starttime\":2000000000,\"endtime\":2000000000}"
Loading…
Cancel
Save