private void button7_Click(object sender, EventArgs e) { MdApi md = MdApi.Instance; int ret = md.Init("*****@*****.**", "Chs771005", MDMode.MD_MODE_NULL); if (ret != 0) { //登录失败 return; } List <MarketIndex> marketindex = md.GetLastNMarketIndex("SHSE.600004", 3); ShowData(marketindex.OfType <object>().ToList()); }