资源加载中... loading...

求助,请问币安永续多交易对的行情怎么获取?

Author: zhaohuo, Created: 2021-05-02 17:58:34, Updated:

function main() { exchange.SetContractType(“swap”) for(var i = 0; i < records.length; i++) Log(exchanges[i].GetRecords()) }

按照视频教程写返回的是 错误 ReferenceError: records is not defined at main (FILE:3)


More

ktrader # 获取数据 exchange.IO("currency", symbol + '_' + 'USDT') exchange.SetContractType('swap') recs = exchange.GetRecords(PERIOD_M30) # 获取K线数组

小草 先获取records,再循环引用