111112113114115116117118119120121
private void obtainContract() { switch (m_mode) { case 0: { m_contract = new StkContract("IBM"); m_contract.m_currency = "EUR"; break; } case 1: {
87888990919293949596
m_contract = new OptContract("IBM", "20121019", 200, "CALL"); m_contract.m_currency = "USD"; m_contract.m_multiplier = "100"; Contract underlying = new StkContract("IBM"); submitSecDef(1, underlying); m_status = Status.SecDef; }