On Thu, Sep 24, 2009 at 4:17 PM, Eugene Kononov <[email protected]>wrote:

> The factory method which you are using is only suitable for futures
> contracts which expire on the March-June-September-December cycle. These
> would be YM, ES, and NQ. For all other contracts, you should specify the
> expiration explicitly:
>
> Contract contract = ContractFactory.makeStockContract("HO", "NYMEX",
> "200911");
>
>
>
Sorry, this should be:
Contract contract = ContractFactory.makeFutureContract("HO", "NYMEX",
"200911");

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to