基本信息
源码名称:盈透期货行情订阅代码
源码大小:0.32M
文件格式:.zip
开发语言:Java
更新时间:2017-03-09
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 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");