post - 邮递员 GET 请求 Binance API
问题描述
我正在尝试向GET
Binance 的 API 发送请求,但我不知道该怎么做。这是文档页面:https ://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data
我有一个私人apiKey
和secretKey
. 我可以向 Binance 提出一般性请求,但我无法使用我的私钥获取我的私人数据。
第一次尝试:对于 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
推荐阅读
- mysql - 从忽略周末天数的日期减去天数
- android - RecyclerView onClickListener 设置性能
- mysql - MySQL 一对多和一对一的关系是如何定义的?
- node.js - 如何使用 Fiddler 接收的 vanilla Node 发送 HTTP 请求?
- listview - 在 Flutter 中加载长图像列表的最佳方法
- c# - C# datagrid ShortcutsEnabled
- ios - 如何从应用商店连接中删除版本号条目
- azure-service-fabric - 在 RunAsync(CancellationToken) 中从客户端手动调用 Cancel
- java - 如何使用 parallelStream 处理 2 个列表
- r - R:如何添加具有不同列的两个数据框