Postman GET 请求到 Binance API

标签 post get request postman binance

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

我有一个私有(private)apiKeysecretKey .
我可以向 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/

相关文章:

c# - 如何使用 RestSharp 将登录名和密码发布到 API?

javascript - php 中的查询因 get 和空格而失败

java - Feign 接口(interface)是否应该具有带有指定名称的 @PathVariable 和 @RequestParam 注释才能工作?

javascript - 如何向客户端设置 CORS header

javascript - 从 Javascript 接收数据后重定向到新页面

c# - 在 WP7 中发送图像

http - Akka-http POST 结果为 "The server-side HTTP version is not supported"

javascript - 为什么使用空字符串作为搜索参数发出 get 请求会返回随机数据而不是没有数据?

javascript - 传递具有相同参数名称的多个 POST 参数

javascript - AngularJS 架构尚未注册型号 'Post'