报错: Uncaught RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
策略代码如下: function main() {
var trade_symbols = ["coin_name_ETH","coin_name_BCH","coin_name_XRP","coin_name_EOS","coin_name_LTC","coin_name_TRX","coin_name_ETC","coin_name_LINK","coin_name_XLM","coin_name_ADA","coin_name_XMR","coin_name_DASH","coin_name_ZEC","coin_name_XTZ","coin_name_BNB","coin_name_ATOM","coin_name_ONT","coin_name_IOTA","coin_name_BAT","coin_name_VET","coin_name_NEO","coin_name_QTUM","coin_name_IOST","coin_name_THETA","coin_name_ALGO","coin_name_ZIL","coin_name_KNC","coin_name_ZRX","coin_name_COMP","coin_name_OMG","coin_name_DOGE","coin_name_SXP","coin_name_KAVA","coin_name_BAND","coin_name_RLC","coin_name_MKR","coin_name_SNX","coin_name_DOT","coin_name_DEFI","coin_name_YFI","coin_name_BAL","coin_name_CRV","coin_name_TRB","coin_name_RUNE","coin_name_SUSHI","coin_name_EGLD","coin_name_SOL","coin_name_ICX","coin_name_STORJ","coin_name_UNI","coin_name_AVAX","coin_name_ENJ","coin_name_FLM","coin_name_KSM","coin_name_NEAR","coin_name_AAVE","coin_name_FIL","coin_name_RSR","coin_name_LRC","coin_name_BEL","coin_name_AXS","coin_name_ALPHA","coin_name_ZEN","coin_name_SKL","coin_name_GRT","coin_name_1INCH","coin_name_CHZ","coin_name_SAND","coin_name_ANKR","coin_name_LIT","coin_name_RVN","coin_name_SFP","coin_name_COTI","coin_name_CHR","coin_name_MANA","coin_name_ALICE","coin_name_HBAR","coin_name_ONE","coin_name_LINA","coin_name_STMX","coin_name_DENT","coin_name_CELR","coin_name_HOT","coin_name_MTL","coin_name_OGN","coin_name_NKN","coin_name_1000SHIB","coin_name_BAKE","coin_name_GTC","coin_name_BTCDOM","coin_name_IOTX","coin_name_C98","coin_name_MASK","coin_name_ATA","coin_name_DYDX","coin_name_1000XEC","coin_name_GALA","coin_name_CELO","coin_name_AR","coin_name_ARPA","coin_name_CTSI","coin_name_LPT","coin_name_ENS","coin_name_PEOPLE","coin_name_ROSE","coin_name_DUSK","coin_name_FLOW","coin_name_IMX","coin_name_API3","coin_name_GMT","coin_name_APE","coin_name_WOO","coin_name_JASMY","coin_name_OP","coin_name_INJ","coin_name_STG","coin_name_SPELL","coin_name_1000LUNC","coin_name_LUNA2","coin_name_LDO","coin_name_ICP","coin_name_APT","coin_name_QNT","coin_name_FET","coin_name_FXS","coin_name_HOOK","coin_name_MAGIC","coin_name_T","coin_name_HIGH","coin_name_MINA","coin_name_ASTR","coin_name_PHB","coin_name_GMX","coin_name_CFX","coin_name_STX","coin_name_BNX","coin_name_ACH","coin_name_SSV","coin_name_CKB","coin_name_PERP","coin_name_TRU","coin_name_LQTY","coin_name_ID","coin_name_ARB","coin_name_JOE","coin_name_TLM","coin_name_AMB","coin_name_LEVER","coin_name_RDNT","coin_name_HFT","coin_name_XVS","coin_name_BLUR","coin_name_EDU","coin_name_SUI","coin_name_1000PEPE","coin_name_1000FLOKI","coin_name_UMA","coin_name_COMBO","coin_name_NMR","coin_name_MAV","coin_name_XVG","coin_name_WLD","coin_name_PENDLE","coin_name_ARKM","coin_name_AGLD","coin_name_YGG","coin_name_DODOX","coin_name_BNT","coin_name_OXT","coin_name_SEI","coin_name_CYBER","coin_name_HIFI","coin_name_ARK","coin_name_BICO","coin_name_BIGTIME","coin_name_WAXP","coin_name_BSV","coin_name_RIF","coin_name_POLYX","coin_name_GAS","coin_name_POWR","coin_name_TIA","coin_name_CAKE","coin_name_MEME","coin_name_TWT","coin_name_TOKEN","coin_name_ORDI","coin_name_STEEM","coin_name_BADGER","coin_name_ILV","coin_name_NTRN","coin_name_KAS","coin_name_BEAMX","coin_name_1000BONK","coin_name_PYTH","coin_name_SUPER","coin_name_USTC","coin_name_ONG","coin_name_ETHW","coin_name_JTO","coin_name_1000SATS","coin_name_AUCTION","coin_name_1000RATS","coin_name_ACE","coin_name_MOVR","coin_name_NFP","coin_name_AI","coin_name_XAI","coin_name_WIF","coin_name_MANTA","coin_name_ONDO","coin_name_LSK","coin_name_ALT","coin_name_JUP","coin_name_ZETA","coin_name_RONIN","coin_name_DYM","coin_name_OM","coin_name_PIXEL","coin_name_STRK","coin_name_GLM","coin_name_PORTAL","coin_name_TON","coin_name_AXL","coin_name_MYRO","coin_name_METIS","coin_name_AEVO","coin_name_VANRY","coin_name_BOME","coin_name_ETHFI","coin_name_ENA","coin_name_W","coin_name_TNSR","coin_name_SAGA","coin_name_TAO","coin_name_OMNI","coin_name_REZ","coin_name_BB","coin_name_NOT","coin_name_TURBO","coin_name_IO","coin_name_ZK","coin_name_MEW","coin_name_LISTA","coin_name_ZRO","coin_name_RENDER","coin_name_BANANA","coin_name_RARE","coin_name_G","coin_name_SYN","coin_name_SYS","coin_name_VOXEL","coin_name_BRETT","coin_name_ALPACA","coin_name_POPCAT","coin_name_SUN","coin_name_VIDT","coin_name_NULS","coin_name_DOGS","coin_name_MBOX","coin_name_CHESS","coin_name_FLUX","coin_name_BSW","coin_name_QUICK","coin_name_NEIROETH","coin_name_RPL","coin_name_AERGO","coin_name_POL","coin_name_UXLINK","coin_name_1MBABYDOGE","coin_name_NEIRO","coin_name_KDA","coin_name_FIDA","coin_name_FIO","coin_name_CATI","coin_name_GHST","coin_name_LOKA","coin_name_HMSTR","coin_name_REI","coin_name_COS","coin_name_EIGEN","coin_name_DIA"]
var re; while (true) { for (var i = 0; i < trade_symbols.length; i++) { exchange.IO(“currency”, trade_symbols[i].slice(10)+‘_USDT’); // 设置交易对 exchange.SetContractType(“swap”); re = exchange.GetRecords(60); // 获取1小时K线 if (re && re.length > 0) { Log(trade_symbols[i],‘最新K线时间:’, _D(re[re.length - 1].Time), re[re.length - 1].Open, re.length); } Sleep(1000) } Sleep(3600000); // 休眠
}
}
我的疑惑: 一旦trade_symbols长度太大,币种太多,那么就会出现如上面的报错。怎么才能解决?