diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 977c201b4..df8233d8e 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -602,11 +602,11 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port } } } - else if ( IAMCLIENT == 0 && strcmp(method,"getprice") == 0 ) + else if ( strcmp(method,"getprice") == 0 ) retstr = LP_pricestr(jstr(argjson,"base"),jstr(argjson,"rel")); else if ( strcmp(method,"orderbook") == 0 ) retstr = LP_orderbook(jstr(argjson,"base"),jstr(argjson,"rel")); - else if ( IAMCLIENT == 0 && strcmp(method,"getpeers") == 0 ) + else if ( strcmp(method,"getpeers") == 0 ) retstr = LP_peers(); else if ( IAMCLIENT == 0 && strcmp(method,"getutxos") == 0 && (coin= jstr(argjson,"coin")) != 0 ) retstr = LP_utxos(LP_mypeer,coin,jint(argjson,"lastn")); diff --git a/iguana/exchanges/getpeers b/iguana/exchanges/getpeers new file mode 100755 index 000000000..93e7b9f8d --- /dev/null +++ b/iguana/exchanges/getpeers @@ -0,0 +1 @@ +curl --url "http://127.0.0.1:7779" --data "{\"method\":\"getpeers\"}" diff --git a/iguana/exchanges/getprice b/iguana/exchanges/getprice new file mode 100755 index 000000000..88e8e6502 --- /dev/null +++ b/iguana/exchanges/getprice @@ -0,0 +1 @@ +curl --url "http://127.0.0.1:7779" --data "{\"method\":\"myprice\",\"base\":\"REVS\",\"rel\":\"KMD\"}" diff --git a/iguana/exchanges/orderbook b/iguana/exchanges/orderbook new file mode 100755 index 000000000..8ed8b537f --- /dev/null +++ b/iguana/exchanges/orderbook @@ -0,0 +1 @@ +curl --url "http://127.0.0.1:7779" --data "{\"method\":\"orderbook\",\"base\":\"REVS\",\"rel\":\"KMD\"}"