Post
Topic
Board Reputation
Re: Is stocks.exchange a scam?
by
retard75
on 01/08/2018, 12:38:33 UTC
I missed something earlier. SlowGrowth said contact him on discord.

What's discord?

I'm gonna just quote myself and let you know I figured out what Discord is. lol

Hehe.  Grin


Now to something completely different:

Has anybody get the PRIVATE API to work?
Since their humungous site update the requests responding with "The credentials are invalid".
I'm aware of the change in the url.
Also tried to encode the signature, apiKey, apiSecret in several ways and even set up a new account  ...
still won't work.

Halp?



EDIT:
Figured it out. They changed (undocumented) the way they create the HMAC signature.

In PHP it looks now:

Code:
$hmacsignature = bin2hex(hash_hmac("sha512", $post_data,  $API_SECRET , true  ));

Old and therefor now obsolete way was: $hmacsignature = base64_encode( hash_hmac("sha512", $post_data, base64_decode( $API_SECRET ), true ) );