Search code examples
postgetrequestpostmanbinance

Postman GET request to Binance API


I'm trying to send a GET request to Binance's API, but I don't exactly know how to. Here is the documentation page: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data

I have a private apiKey and secretKey. I can do a general request to Binance, but I cannot get my private data, using my private keys.

First try: For the GET request in Postman I use this string: https://api.binance.com/api/v3/account?timestamp=1499827319559&signature=here_I_put_my_secret_key

And I pass as a header as Danny suggested the apiKey.

But I get:

    {
    "code": -1021,
    "msg": "Timestamp for this request is outside of the recvWindow."
    }

Thanks.


Solution

  • I solved this correcting the time using javascript in Postman. Another easy fix is to use the ccxt library : https://github.com/ccxt/ccxt