| View previous topic :: View next topic |
| Author |
Message |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Sat Jul 17, 2010 12:38 pm Post subject: Setting up Instruments (IB Provider - Options) |
|
|
Hi,
I am trying to setup 3 instruments (v2.1.3) for a straddle model using IB:
1. SPY ETF
2. SPY Call Option (SPY100821C00108000)
3. SPY Put Option (SPY100821P00108000)
(1) works correctly but I get an "No Security Definition has been found" error for (2) and (3).
The only way I can get (2) or (3) to work is if I delete (1) and use SPY as the Symbol for (2) or (3) since Instrument SPY already exists...
my question is how can I setup the above 3 instruments to work concurrently in IB?
Thanks in advance. |
|
| Back to top |
|
 |
Dr. Anton Fokin
Joined: 05 Aug 2003 Posts: 4473
|
Posted: Sun Jul 18, 2010 11:34 am Post subject: |
|
|
Hi,
you can create three instruments with different OQ symbols, i.e. SPY_ETF, SPY_CALL and SPY_PUT and then set AltSource to IB and AltSymbol to SPY.
Regards,
Anton |
|
| Back to top |
|
 |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Wed Jul 21, 2010 1:25 pm Post subject: Thanks |
|
|
| Thanks, works well. |
|
| Back to top |
|
 |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Fri Jul 23, 2010 2:57 pm Post subject: IB Provider bug (Options with multi. maturity dates / month) |
|
|
Anton, there is a bug with the IB Provider that prevents me from subscribing to the SPY September / December contracts.
Since there are 2 SPY contracts per month (Sep: 20100918 & 20100930) IB expects the exact date (20100918 Not 201009).
One solution is to add a free form AltMaturity field and use that with IB, until than OQ/IB users will not be able to trade options with multiple maturity dates for a given month using the IB provider.
(to replicate the error look at the IB DDE excel spreadsheet and use my attached script to build the instruments).
Looking forward to a solution for this, Doron |
|
| Back to top |
|
 |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Fri Jul 23, 2010 4:59 pm Post subject: |
|
|
As a work around, is it possible for you to provide me with the IB Provider code?
I can twik it and use the description field to override the maturity date until this bug is fixed by rebuilding it as a user provider?
Doron |
|
| Back to top |
|
 |
Dr. Anton Fokin
Joined: 05 Aug 2003 Posts: 4473
|
Posted: Sat Jul 24, 2010 7:58 am Post subject: |
|
|
Hi,
we will take a look at this issue on Monday and will release an update if needed. IB provider uses underlying low level framework (not OQ API like UserProvider does) so that even if we could give you the source code, this would not help much without access to the framework.
Regards,
Anton |
|
| Back to top |
|
 |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Sat Jul 24, 2010 12:17 pm Post subject: |
|
|
Thank you for your prompt reply, I will continue to develop the strategy using imported historical files with the mindset that this issue will get resolved by the time I am ready to use IB for paper/live trading.
Have a great weekend, Doron. |
|
| Back to top |
|
 |
Doron Whitman
Joined: 25 Mar 2008 Posts: 6 Location: Toronto, Canada
|
Posted: Fri Jul 30, 2010 1:26 pm Post subject: Any updates? |
|
|
Hi Anton,
Have you taken a look at this issue? Any work-arounds / updates / ETA on a fix?.
Thanks, Doron |
|
| Back to top |
|
 |
Alexei Kurov Site Admin
Joined: 17 Jul 2003 Posts: 689
|
Posted: Sun Aug 01, 2010 5:15 pm Post subject: |
|
|
Hi Doron,
There is no problem to pass 'day' in maturity argument to TWS too, but we want to make sure that it will be correct in all cases. In other words, we test all possible situations at the moment.
Regards,
Alex _________________ SmartQuant Development Team |
|
| Back to top |
|
 |
|