Type/to search
0
Follow
1
Followers
求救,为什么币安现货BTCUSDT GetDepth() 只能返回少量数据,深度不够? 问题2 改用get, 为何参数出错
Help
Created 2022-11-22 11:59:45  Updated 2022-11-22 15:05:39
 1
 1359

币安现货BTCUSDT GetDepth() 只能返回少量数据,深度不够
只返回1589到15885 只有4美元之间的数据

"Info": null,
"Asks": [{
"Price": 15889.68,
"Amount": 0.02221
。。。。。。。

。。。。。。。

"Price": 15885.16,
"Amount": 0.42772

不得已,改用get看看,结果

exchanges[1].IO("api", "GET", "/api/v3/depth?symbol=BTCUSDT");

一直返回 Futures_OP 4: 400: {"code":-1100,"msg":"Illegal characters found in parameter 'symbol'; legal range is '^[A-Z0-9-_.]{1,20}$'."}

不管改大小写都没用

Related Recommendations
Comment
All comments (1)

    javascript 例子

    javascript
    function main() { var ret = HttpQuery("https://api.binance.com/api/v3/depth?symbol=BTCUSDT&limit=1000") return ret }

    exchange.IO是调用私有接口的。访问公共行情接口使用HttpQuery函数。

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)