SmartQuant Discussion Forum Index SmartQuant Discussion
Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting up Instruments (IB Provider - Options)

 
Post new topic   Reply to topic    SmartQuant Discussion Forum Index -> Helpdesk
View previous topic :: View next topic  
Author Message
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Sat Jul 17, 2010 12:38 pm    Post subject: Setting up Instruments (IB Provider - Options) Reply with quote

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
View user's profile Send private message Visit poster's website
Dr. Anton Fokin



Joined: 05 Aug 2003
Posts: 4473

PostPosted: Sun Jul 18, 2010 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Wed Jul 21, 2010 1:25 pm    Post subject: Thanks Reply with quote

Thanks, works well.
Back to top
View user's profile Send private message Visit poster's website
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Fri Jul 23, 2010 2:57 pm    Post subject: IB Provider bug (Options with multi. maturity dates / month) Reply with quote

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
View user's profile Send private message Visit poster's website
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Fri Jul 23, 2010 4:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dr. Anton Fokin



Joined: 05 Aug 2003
Posts: 4473

PostPosted: Sat Jul 24, 2010 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Sat Jul 24, 2010 12:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Doron Whitman



Joined: 25 Mar 2008
Posts: 6
Location: Toronto, Canada

PostPosted: Fri Jul 30, 2010 1:26 pm    Post subject: Any updates? Reply with quote

Hi Anton,

Have you taken a look at this issue? Any work-arounds / updates / ETA on a fix?.

Thanks, Doron
Back to top
View user's profile Send private message Visit poster's website
Alexei Kurov
Site Admin


Joined: 17 Jul 2003
Posts: 689

PostPosted: Sun Aug 01, 2010 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SmartQuant Discussion Forum Index -> Helpdesk All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group