我正在尝试发送 GET
向 Binance 的 API 提出请求,但我不知道如何去做。
这是文档页面:https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data
我有一个私有(private)apiKey
和 secretKey
.
我可以向 Binance 发出一般请求,但无法使用我的私钥获取我的私有(private)数据。
第一次尝试:
对于 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."
}
谢谢。
最佳答案
我使用 javascript
解决了这个更正时间在 postman 。
另一个简单的解决方法是使用 ccxt
图书馆:https://github.com/ccxt/ccxt
关于Postman GET 请求到 Binance API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61139102/