首页 > 解决方案 > 邮递员 GET 请求 Binance API

问题描述

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

我有一个私人apiKeysecretKey. 我可以向 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."
    }

谢谢。

标签: postgetrequestpostmanbinance

解决方案


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


推荐阅读