How to make the Binance money?

Author: sikaru, Created: 2017-11-28 20:40:24, Updated: 2017-11-28 20:44:56

Example 1: As a query string

queryString: symbol=LTCBTC&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1&price=0.1&recvWindow=5000&timestamp=1499827319559

HMAC SHA256 signature:

[linux]$ echo -n “symbol=LTCBTC&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1&price=0.1&recvWindow=5000&timestamp=1499827319559” | openssl dgst -sha256 -hmac “NhqPtmdSJYdKjVHjA7PZj4Mge3R5YNiP1e3UZjInClVN65XAbvqqM6A7H5fATj0j” (stdin)= c8db56825ae71d6d79447849e617115f4a920fa2acdcab2b053c4b2838bd6b71

He needs to add a timestamp parameter and then sign the entire querystring. I try. var querystr = asset=abc&amount=100 & address=abc×tamp=abc; var sig = HMAC ((sha256,hex, querystr, secretkey);// The second argument is all triedexchange.IO("api", POST button, /wapi/v3/withdraw.html button, querystr+" & signature="+sig); orexchange.IOThis is the first time that the website has been updated. Get it {msg:"{code:-1105,msg:Parameter payload was was empty.}",success:false}

exchange.IOThe following is a list of the most commonly used APIs (api, POST, /wapi/v3/withdraw.html?+querystr+"&signature="+sig,""); I will. {msgstr: "{msgstr: "Illegal characters found in parameter signature ; legal range is ^[A-Fa-f0-9]{64}$.}", success : false}

If not signed {msg:"{code:-1022,msg:Signature for this request is not valid.}",success:false}


More

aimmpanHow long will it take for the Bitcoin to arrive?

sikaruIt's done, don't use the official v3, you can change it to v1, e.IO (("api", "POST", "/wapi/v1/withdraw.html", "amount=" + amount + "&asset=" + currency + "&address=" + address);

The Little DreamThe IO function does not require a signature.

The Little DreamThis IO that is wrapped in BotVS is supposed to be V1 and not V3.

sikaruI tried not to sign, and it gives an error....