Skip to content

twsFuture in reqContractDetails

2 messages · omerle, Jeff Ryan

#
Hi everyone,

Is there any workaround to get reqContractDetails working for a future contract without 
knowing exactly the expiry ?

For instance if I launch

Contract=twsFUT(symbol="EBM",exch="MATIF",expiry="20130311",currency="EUR")
reqContractDetails(conn=getOption("ib"),Contract=Contract)

It works but if I have a future without knowing exactly the expiry it doesn't work.
Or, is there a function to get all the expiries of a given future (for instance EBM).

Thanks,


Olivier

Une messagerie gratuite, garantie ? vie et des services en plus, ?a vous tente ?
Je cr?e ma bo?te mail www.laposte.net
#
Olivier,

You can set the fields that you are seeking to ="" to act as a wildcard.  i.e.
[1] 12
[1] "20120810" "20121112" "20130110" "20130311" "20130510" "20131111"
 [7] "20140110" "20140310" "20140512" "20141110" "20150112" "20150310"


HTH
Jeff
On Fri, Jul 6, 2012 at 5:37 AM, omerle <omerle at laposte.net> wrote: