0

我正在尝试使用 binance api 获取 binance 帐户信息。我有一个密钥和一个 api 密钥。

卷曲

curl -H "X-MBX-APIKEY: apikeygoeshere" -X GET https://api.binance.com/api/v3/account -d 时间戳=1578926101 &signature=bbce62e6f607e444063f46ad83b0f4e5859980df717dd8ac436357e1783aa828

**我使用我的密钥和这个字符串创建了签名:“ https://api.binance.com/api/v3/account×tamp=1578926101

这是回应

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: nBSblWzZLCEQ6lKHdFL2vA0EOArNa7auab25hmdNvrMwfcZQJaA32w==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>gugas-pc:~ guga$ &signature=bbce62e6f607e444063f46ad83b0f4e5859980df717dd8ac436357e1783aa828
-bash: syntax error near unexpected token `&'

我正在尝试使用binance API获取帐户信息

4

1 回答 1

2

这是你的答案:

CloudFront 错误请求

您可以尝试 binance API 中提到的查询字符串:

curl -vko /dev/null -X GET "https://api.binance.com/api/v3/account?timestamp=1578926101&signature=bbce62e6f607e444063f46ad83b0f4e5859980df717dd8ac436357e1783aa828"
于 2020-01-13T17:59:07.647 回答