private String GetTickDataPath(String code, int date) { int month = date / 100; CodeIdParser parser = new CodeIdParser(code); VarietyInfo varietyInfo = dataLoader_Variety.GetVariety(parser.VarietyId); if (varietyInfo == null) { return(null); } string market = varietyInfo.Exchange; if (market.Equals("DL")) { market = "dc"; } else if (market.Equals("SQ")) { market = "sc"; } else if (market.Equals("ZZ")) { market = "zc"; } string path = srcDataPath + "\\" + month + "\\" + market + "\\" + GetFullCode(code, parser, market == "zc") + "_" + date + ".csv"; return(path); //return srcDataPath + "\\" + dataLoader_InstrumentInfo.GetBelongMarket(code) + "\\" + date + "\\" + code + "_" + date + ".csv"; }
private String GetCodePath(String code, int date) { CodeIdParser parser = new CodeIdParser(code); VarietyInfo varietyInfo = dataLoader_Variety.GetVariety(parser.VarietyId); return(srcDataPath + "\\" + varietyInfo.Exchange + "\\" + date + "\\" + CodeInfoUtils.GetSimpleCodeId(code) + "_" + date + ".csv"); }
public List <double[]> GetUpdatedTradingSessionDetail(string code, int date) { CodeIdParser parser = new CodeIdParser(code); string variety = parser.VarietyId; VarietyInfo varietyInfo = dataLoader_Variety.GetVariety(variety); if (varietyInfo == null) { return(null); } string exchange = varietyInfo.Exchange; return(dataLoader_TradingSessionDetail.GetTradingSessionDetail(exchange, variety, date)); }