From f5edc6694e24524d398332755faf6567673babd2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 16 Jul 2017 12:47:12 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 2 +- iguana/exchanges/autoprice | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 3a8389183..a76e7b7f8 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -863,7 +863,7 @@ void prices_loop(void *ignore) } LP_autopriceset(ctx,1,kmdpp,nxtpp,price); LP_autopriceset(ctx,-1,nxtpp,kmdpp,price); - //printf("%s %s -> (%s) nxtkmd %.8f %.8f %.8f\n",assetids[i][1],assetids[i][0],jprint(retjson,0),nxtkmd,dstr(bidsatoshis + asksatoshis),price); + printf("%s %s -> (%s) nxtkmd %.8f %.8f %.8f\n",assetids[i][1],assetids[i][0],jprint(retjson,0),nxtkmd,0.5*dstr(bidsatoshis + asksatoshis),price); free_json(retjson); } } diff --git a/iguana/exchanges/autoprice b/iguana/exchanges/autoprice index 841b49936..e612d19a9 100755 --- a/iguana/exchanges/autoprice +++ b/iguana/exchanges/autoprice @@ -5,3 +5,5 @@ curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\ curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"HUSH\",\"rel\":\"KMD\",\"margin\":0.01}" curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"USD\",\"margin\":0.01}" curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"USD\",\"rel\":\"KMD\",\"margin\":0.01}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"JUMBLR\",\"margin\":0.01}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"JUMBLR\",\"rel\":\"KMD\",\"margin\":0.01}"