From c9aba1f049218714ba99c32fb6c119fdf48bd9d3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Jul 2017 16:26:07 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 1 + iguana/exchanges/autoprice | 2 ++ 2 files changed, 3 insertions(+) create mode 100755 iguana/exchanges/autoprice diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 13aab17f0..ccff2d66c 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -95,6 +95,7 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r return(clonestr("{\"result\":\" \ available localhost RPC commands:\n \ setprice(base, rel, price)\n\ +autoprice(base, rel, price, margin)\n\ myprice(base, rel)\n\ enable(coin)\n\ disable(coin)\n\ diff --git a/iguana/exchanges/autoprice b/iguana/exchanges/autoprice new file mode 100755 index 000000000..fd4b0b052 --- /dev/null +++ b/iguana/exchanges/autoprice @@ -0,0 +1,2 @@ +source userpass +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"BTC\",\"margin\":0.01}"