TypeError: not a function at main (__FILE__:20) Làm thế nào để giải quyết vấn đề này?

Tác giả:1070278998@qq.com, Tạo: 2022-01-10 12:58:07, Cập nhật:

chức năng chính (() {

for(var i in exchanges){
    var e = exchanges[i];
    var trade = new Trade(i);
    //Log(typeof(P_vol_p), typeof(P_level));
    trade.level = getPara(P_level, i);
    trade.vol_u = P_vol_u;
    trade.contract_value = getPara(P_contract_value, i);
    trade.precision_price = getPara(P_precision_price, i);
    trade.precision_vol = getPara(P_precision_vol, i);
    trade.pos_vol = 0
    trade.pos_price = 0;
    tradeArr.push(trade);
    e.SetContractType("swap");
    e.SetMarginLevel(P_level);
 if(!IsVirtual() ){
        if(!symbolArr)
            var symbolArr = $.get_symbol_arr(e);
        trade.precision_price = symbolArr[e.GetCurrency()].precision_price;
        trade.precision_vol = symbolArr[e.GetCurrency()].precision_vol;
        trade.contract_value = symbolArr[e.GetCurrency()].contract_value;
        trade.min_qty = symbolArr[e.GetCurrency()].min_qty;
        trade.min_val = symbolArr[e.GetCurrency()].min_val;
    
 }
    e.SetPrecision(trade.precision_price, trade.precision_vol)
    Log("设置精度", trade.precision_price, trade.precision_vol);
    e.SetMaxBarLen(500)
}

Thêm nữa

Cỏ nhỏBạn có chọn thư mục không, bạn sử dụng hàm thư mục $.get_symbol_arr