Browse Source

Test

etomic
jl777 8 years ago
parent
commit
496614940f
  1. 4
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/autotrade

4
iguana/exchanges/LP_commands.c

@ -116,6 +116,8 @@ forwardhex(pubkey,hex)\n\
return(jprint(retjson,1));
} else return(clonestr("{\"error\":\"no price set\"}"));
}
else if ( strcmp(method,"autotrade") == 0 )
return(LP_autotrade(base,rel,jdouble(argjson,"price"),jdouble(argjson,"volume")));
}
else if ( (coin= jstr(argjson,"coin")) != 0 )
{
@ -148,8 +150,6 @@ forwardhex(pubkey,hex)\n\
return(jprint(retjson,1));
}
}
else if ( strcmp(method,"autotrade") == 0 )
return(LP_autotrade(base,rel,jdouble(argjson,"price"),jdouble(argjson,"volume")));
}
else if ( strcmp(method,"swapstatus") == 0 )
{

2
iguana/exchanges/autotrade

@ -1,2 +1,2 @@
source userpass
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autotrade\",\"base\":\"REVS\",\"rel\":\"KMD\",\"volume\":1.01,\"maxprice\":1.234}"
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autotrade\",\"base\":\"REVS\",\"rel\":\"KMD\",\"volume\":1.01,\"price\":1.234}"

Loading…
Cancel
Save