|
|
@ -104,7 +104,8 @@ enable(coin)\n\ |
|
|
|
disable(coin)\n\ |
|
|
|
inventory(coin)\n\ |
|
|
|
bestfit(rel, relvolume)\n\ |
|
|
|
buy(base, rel, price, relvolume, timeout=10, duration=3600)\n\ |
|
|
|
buy(base, rel, price, relvolume, timeout=10, duration=3600, nonce)\n\ |
|
|
|
sell(base, rel, price, basevolume, timeout=10, duration=3600, nonce)\n\ |
|
|
|
swapstatus()\n\ |
|
|
|
swapstatus(requestid, quoteid)\n\ |
|
|
|
public API:\n \ |
|
|
@ -233,14 +234,14 @@ dividends(coin, height, <args>)\n\ |
|
|
|
{ |
|
|
|
if ( price > SMALLVAL ) |
|
|
|
{ |
|
|
|
return(LP_autobuy(ctx,myipaddr,pubsock,base,rel,price,jdouble(argjson,"relvolume"),jint(argjson,"timeout"),jint(argjson,"duration"),jstr(argjson,"gui"))); |
|
|
|
return(LP_autobuy(ctx,myipaddr,pubsock,base,rel,price,jdouble(argjson,"relvolume"),jint(argjson,"timeout"),jint(argjson,"duration"),jstr(argjson,"gui"),juint(argjson,"nonce"))); |
|
|
|
} else return(clonestr("{\"error\":\"no price set\"}")); |
|
|
|
} |
|
|
|
else if ( strcmp(method,"sell") == 0 ) |
|
|
|
{ |
|
|
|
if ( price > SMALLVAL ) |
|
|
|
{ |
|
|
|
return(LP_autobuy(ctx,myipaddr,pubsock,rel,base,1./price,jdouble(argjson,"basevolume"),jint(argjson,"timeout"),jint(argjson,"duration"),jstr(argjson,"gui"))); |
|
|
|
return(LP_autobuy(ctx,myipaddr,pubsock,rel,base,1./price,jdouble(argjson,"basevolume"),jint(argjson,"timeout"),jint(argjson,"duration"),jstr(argjson,"gui"),juint(argjson,"nonce"))); |
|
|
|
} else return(clonestr("{\"error\":\"no price set\"}")); |
|
|
|
} |
|
|
|
} |
|
|
|