我正在尝试向GET
Binance的API发送请求,但我不知道该怎么做。这是文档页面:https : //github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data
我有一个私人apiKey
和secretKey
。我可以向Binance提出一般请求,但无法使用私钥获取我的私有数据。
第一次尝试:对于邮递员中的GET请求,我使用以下字符串:https ://api.binance.com/api/v3/account?timestamp=1499827319559&signature =here_I_put_my_secret_key
我header
像丹尼(Danny)建议的那样通过apiKey
。
但是我得到:
{
"code": -1021,
"msg": "Timestamp for this request is outside of the recvWindow."
}
谢谢。
我解决了javascript
在邮递员中使用此校正时间的问题。另一个简单的解决方法是使用该ccxt
库:https : //github.com/ccxt/ccxt
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句