private static string NormalizeCode(string code) { StockExchangeId exchangeId = StockName.GetExchangeId(code); string prefix = exchangeId == StockExchangeId.ShenzhenExchange ? "sz" : "sh"; return(prefix + code); }
public static string DefaultAbbrevationMarketFormatter(StockExchangeId market) { switch (market) { case StockExchangeId.ShanghaiExchange: return("sh"); case StockExchangeId.ShenzhenExchange: return("sz"); default: return(""); } }