Binance gains k-line length, with platform interface not exceeding 1000

Author: The bride too., Created: 2022-03-22 17:46:33, Updated:

exchange.IO("currency", “BTC_USDT”)
exchange.SetContractType (swap button) exchange.SetMaxBarLen ((1500) is a free exchange. var records = exchange.GetRecords ((900) Log ((records.length); So, we're going to set the value to 1500, and we're going to print the result to 1000.

用如下代码,结果是1500
var message = "pair=" + "BTCUSDT" + "&contractType="+  "PERPETUAL"+  "&interval=" + "15m" +     "&limit=1500";
var founding = exchanges[0].IO("api", "GET", "/fapi/v1/continuousKlines", message);
Log(founding.length);

 exchange.SetMaxBarLen这个函数的指定值是不是不能超过1000?

More

The Little DreamHello, the real disk is based on the data access limit of the exchange's interface.

The Little DreamWell, thanks for the reminder, this next upgrade will change it. The previous limit of Binance was 1000. 1500 should have been changed recently.

The bride too.I'm just reminding you that it could be your packaging problem.

The Little Dream 币安么?之前币安是1000,他们文档改了。FMZ封装的时候给设置了上限1000.临时解决可以用HttpQuery访问这个接口也可以拿到数据。

The bride too. /upload/asset/13639130c166dd2bd60a.png

The bride too.It's clear that the exchange cap is 1,500, not 1,000.