SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu Jun 20, 2019 5:07 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Wed Apr 16, 2014 7:51 pm 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
Hi,
I'm trying to subscribe to NYMEX Futures Options Feed for Symbol NG in IB, but it's returning "The contract description specified for NG is ambiguous"

This is the symbol downloaded directly from IB for NG Jun14 4'55 P

Attachment:
screen 2014-04-17 01.48.02.png
screen 2014-04-17 01.48.02.png [ 93.45 KiB | Viewed 7499 times ]


All expiration dates, etc are correct for this. This is for both OQ 2014 and OQ 2013 -- What can I specify to subscribe to this feed?


Top
 Profile  
 
PostPosted: Thu Apr 17, 2014 5:09 pm 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

Try to change ContractExpiryFormat property of IB plugin from yyyyMM to yyyyMMdd

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Thu Apr 17, 2014 6:41 pm 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
I have tried this, but there are 2 future options (ON / LNE) that both end on the same dates. Is there a way to specify the Trading Class of this instrument, or any other way to resolve the ambiguity?

All the others work, it is only for NG Futures Options


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 10:11 am 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Quote:
I have tried this, but there are 2 future options (ON / LNE) that both end on the same dates.

Could you give me detailed sample of such contracts?

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 10:46 am 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
Here are the options:

NG Jun14 Futures Option (Expiring May 27 2014) (Trade class ON)
Attachment:
スクリーンショット 2014-04-18 16.38.43.png
スクリーンショット 2014-04-18 16.38.43.png [ 22.38 KiB | Viewed 7472 times ]


NG Jun14 Futures Option (Expiring May 27 2014) (Trade class LNE)
Attachment:
スクリーンショット 2014-04-18 16.39.05 (1).png
スクリーンショット 2014-04-18 16.39.05 (1).png [ 21.86 KiB | Viewed 7472 times ]


Underlying Futures (for reference -- this one is OK)
Attachment:
スクリーンショット 2014-04-18 16.38.54.png
スクリーンショット 2014-04-18 16.38.54.png [ 21.06 KiB | Viewed 7472 times ]


What I'm trying to get is the NG Jun14 4.55 Put Futures Option for Trade Class ON (IB Symbol ONM4 P4550) At the moment even with yyyyMMdd in provider property for IB, (or even with yyyyMMdd hh:mm EST for that matter) IB returns same error message saying that the specified contract for NG is ambiguous.


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 5:50 pm 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

I'm not sure that TradingClass can solve the issue. Anyway, such parameter
is only added into IB Contract in the latest version of API (September, 13), but
our plugin works with previous version.
There is a way to use contract id directly, but it requires some modification of IB plugin.

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 7:10 pm 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
This is understood. Is there a sample code for IB Plugin, such as the one for OpenECry provider which can be used to customize the IB Plugin such that we specify ibLocalSymbol as added parameter?

This is for both Openquant 2014 / 2013. (I primarily use 2014)


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 8:25 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6813
Hi,

do you own an OpenQuant license or planning to subscribe?

Regards,
Anton


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 8:27 pm 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
Yes, I am talking to Arthur about this as we speak.


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 8:42 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6813
I think it should be relatively easy to resolve this issue in OQ 2014 and give you the source code for IB plugin if you acquire a license. OQ 2013 is not that easy since IB plugin uses low level SmartQuant framework, not OpenQuant API / UserProvider (it would not help if we provide you with the source code), but we can address this issue ourselves with high priority if you become a customer.

Regards,
Anton


Top
 Profile  
 
PostPosted: Fri Apr 18, 2014 8:59 pm 
Offline

Joined: Tue Apr 08, 2014 9:50 am
Posts: 11
That's perfect -- Having the code for 2014 plugin would be great! I have already signed up and made the payment for the subscription via Paypal. Thank you so much for this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group