Curl基于贫穷和金钱贪婪的二进制文档



我正在尝试curl到binance api。

我基于:

  • https://binance-docs.github.io/apidocs/spot/en/
  • https://binance-docs.github.io/apidocs/futures/en/

我已经创建了一堆成功的卷发,例如在孤立的期货中下限价单。

现在我只是试图更改参数/url来创建新的查询。

例如,让我们获取我的资产(https://binance-docs.github.io/apidocs/spot/en/#query-margin-asset-market_data(。

由于是"MARKET_DATA",我只需要API-key,不需要签名:

curl -X GET -H "X-MBX-APIKEY: MyLongPrivateKey" https://sapi.binance.com/sapi/v2/margin/allAssets

我得到:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr/>Powered by Tengine<hr><center>tengine</center>
</body>
</html>

当我用-L做同样的卷曲时,它会将我重定向到主页。。。

有人能解释我该如何翻译那个#吗$&*&$%@真正卷曲的医生?

  • https://sapi.binance.com/sapi/v1...
  • https://sapi.binance.com/sapi/v2...
  • https://sapi.binance.com/sapi/v3...
  • https://fapi.binance.com/fapi/...
  • https://api.binance.com/api/v[其他数字]

尝试了各种组合,均失败。。

文档的正确端点是:GET /sapi/v1/margin/allAssets,并且所有CCD_ 3端点在基本URL CCD_。

所以这应该有效:

curl -X GET -H "X-MBX-APIKEY: MyLongPrivateKey" https://api.binance.com/sapi/v1/margin/allAssets

最新更新