Postman 向 Binance API 发出 GET 请求

l00*_*00l 6 post get request postman binance

我正在尝试向币安的 API 发送GET请求,但我不知道如何发送。这是文档页面:https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data

我有一个私人apiKeysecretKey. 我可以向币安发出一般请求,但我无法使用我的私钥获取我的私人数据。

第一次尝试:对于 Postman 中的 GET 请求,我使用以下字符串: https://api.binance.com/api/v3/account ?timestamp=1499827319559&signature=here_I_put_my_secret_key

我按照header丹尼的建议通过了apiKey

但我得到:

    {
    "code": -1021,
    "msg": "Timestamp for this request is outside of the recvWindow."
    }
Run Code Online (Sandbox Code Playgroud)

谢谢。

l00*_*00l 3

javascript我解决了这个问题,用邮递员纠正时间。另一个简单的解决方法是使用该ccxt库: https: //github.com/ccxt/ccxt