嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
具体例子用来订阅如GC,SI等期货的代码
String tickList = "100,101,104,105,106,107,165,221,225,233,236,258,293,294,295,318";
// m_s.reqSecDefOptParams(0, "GC", "COMEX",/* "",*/ "FUT", 8314);
// FutContract fc=new FutContract("GC", "201706");
Contract contract = new Contract();
contract.symbol("SI");
contract.currency("USD");
contract.exchange("NYMEX");
contract.secType("FUT");
contract.lastTradeDateOrContractMonth("201705");
contract.multiplier("5000");
m_s.reqMktData(1, contract, tickList, false, null);
contract = new Contract();
contract.symbol("GC");
contract.currency("USD");
contract.exchange("NYMEX");
contract.secType("FUT");
contract.lastTradeDateOrContractMonth("201704");