From fec6d2799616bce1d9c4405033524bc0a1e07971 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Oct 2017 20:53:47 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_stats.c | 7 +++++++ iguana/exchanges/pendings | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 iguana/exchanges/pendings diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index 7773fb757..8fb5af5f9 100644 --- a/iguana/exchanges/LP_stats.c +++ b/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); diff --git a/iguana/exchanges/pendings b/iguana/exchanges/pendings new file mode 100755 index 000000000..a2aa46c83 --- /dev/null +++ b/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}"