33
Follow
63
Followers
Binance obtiene la longitud de la línea K y la interfaz de la plataforma no puede superar los 1000
Created 2022-03-22 17:46:33
6
1218
exchange.IO("currency", "BTC_USDT")
exchange.SetContractType("swap")
exchange.SetMaxBarLen(1500)
var records = exchange.GetRecords(900)
Log(records.length);
Se dice 1500 y se imprime 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?
Related Recommendations
Quick Start for JavaScriptFutures_Kraken linkFutures_Bybit LinkBuilt-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractType
Comment
All comments (6)
币安么?之前币安是1000,他们文档改了。FMZ封装的时候给设置了上限1000.临时解决可以用HttpQuery访问这个接口也可以拿到数据。
4 years ago
- 1


