diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index cb0289d8c..3bb040fc4 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -94,7 +94,7 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r else if ( strcmp(method,"help") == 0 ) return(clonestr("{\"result\":\" \ available localhost RPC commands:\n \ -pricearray(base, rel, firsttime=0, lasttime=-1, timescale=60)\n\ +pricearray(base, rel, firsttime=0, lasttime=-1, timescale=60) -> [timestamp, avebid, aveask, highbid, lowask]\n\ setprice(base, rel, price)\n\ autoprice(base, rel, price, margin, type)\n\ goal(coin=*, perc=)\n\ diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 5895e5715..ffe235d6e 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -754,7 +754,7 @@ cJSON *LP_pricearray(char *base,char *rel,uint32_t firsttime,uint32_t lasttime,i lastbidi = bidi; if ( aski != 0 ) lastaski = aski; - } + } else printf("couldnt open either %s %p or %s %p\n",bidfname,bidfp,askfname,askfp); if ( bidfp != 0 ) fclose(bidfp); if ( askfp != 0 ) diff --git a/iguana/exchanges/pricearray b/iguana/exchanges/pricearray index 2d151eb56..8a01248af 100755 --- a/iguana/exchanges/pricearray +++ b/iguana/exchanges/pricearray @@ -1,2 +1,2 @@ source userpass -curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"pricearray\",\"base\":\"REVS\",\"rel\":\"KMD\",\"timescale\":60}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"pricearray\",\"base\":\"KMD\",\"rel\":\"BTC\",\"timescale\":60}"