无法满足该请求,对GET请求的响应

时间:2020-01-13 14:45:20

标签: curl binance

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

卷曲

卷曲-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&timestamp=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

获取帐户信息

1 个答案:

答案 0 :(得分:1)

这是您的答案:

CloudFront Bad request

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

curl -vko /dev/null -X GET "https://api.binance.com/api/v3/account?timestamp=1578926101&signature=bbce62e6f607e444063f46ad83b0f4e5859980df717dd8ac436357e1783aa828"