From 6fec1468af7af52e8aee9b096deed49fdf5deb10 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Jul 2017 15:31:32 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/goal | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 3c7244f3f..4d1488fff 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -267,7 +267,7 @@ trust(pubkey, trust)\n\ } } else if ( strcmp(method,"goal") == 0 ) - return(LP_portfolio_goal(coin,jdouble(argjson,"perc"))); + return(LP_portfolio_goal(coin,jdouble(argjson,"val"))); } else if ( strcmp(method,"goal") == 0 ) return(LP_portfolio_goal("*",100.)); diff --git a/iguana/exchanges/goal b/iguana/exchanges/goal index b6dafb282..3fd9dee0f 100755 --- a/iguana/exchanges/goal +++ b/iguana/exchanges/goal @@ -1,4 +1,4 @@ source userpass -curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"KMD\",\"perc\":99}" -curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"BTC\",\"perc\":10}" -curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"REVS\",\"perc\":1}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"KMD\",\"val\":99}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"BTC\",\"val\":10}" +curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"REVS\",\"val\":1}"