How to resolve the issues?
I want my deposit history of mine from my Binance account. Here is my PHP code with the cURL language.
API: https://api.binance.com/wapi/v3/depositHistory.html?recvWindow=10000×tamp=1627618427968&signature=af3e0de841a4d6e8817daf2811a024d19637255665eb37979b8b18a3b2b5218e
X-MBX-APIKEY = $mykey;
$secret = $mySecretKey;
$query_string = timestamp=round(microtime(true) * 1000);
$signature = hash_hmac('sha256', $query_string, $secret);
$timestamp = round(microtime(true) * 1000);
Timestamp and signature should be the last parameters;
Check out:
https://dev.binance.vision/t/faq-signature-for-this-request-is-not-valid/176
This works for me:
$timestamp = [
'timestamp' => time() * 1000,
'recvWindow' => 5000
];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.