FORUMS BROKERS SOFTWARE
Home
 
    Forums > Technically Speaking > Automated Trading > Error: No security definition has been found for

Old Nov 24th, 2010, 08:23 PM   #1
sungtaeyoo
 
 
Join Date: Aug 2010
Posts: 55
I tried to get snapshot of SPX Call option. So I created Contract like below(I'm
using Krs.Ats.IBNet for c#) and then called
RequestMarketData() but I got "Error: No security definition has been found for the request".

Does anybody know what's wrong with the Contract?

mainCallCont = new Contract(101, "SPX", SecurityType.Option, "20101124", 1200.0,
RightType.Call,"", "Smart", "USD", "", "", SecurityIdType.None, "");

client.RequestMarketData(SnapshotRequestBase+1, mainCallCont, null, true,
false);
    Quote
Old Nov 24th, 2010, 09:07 PM   #2
rosy2
 
 
Join Date: Aug 2006
Posts: 1,399
Quote:
Quote from sungtaeyoo:

I tried to get snapshot of SPX Call option. So I created Contract like below(I'm
using Krs.Ats.IBNet for c#) and then called
RequestMarketData() but I got "Error: No security definition has been found for the request".

Does anybody know what's wrong with the Contract?

mainCallCont = new Contract(101, "SPX", SecurityType.Option, "20101124", 1200.0,
RightType.Call,"", "Smart", "USD", "", "", SecurityIdType.None, "");

client.RequestMarketData(SnapshotRequestBase+1, mainCallCont, null, true,
false);
Why didnt you say what API and broker this is for?

change Smart to CBOE
    Quote
Old Nov 24th, 2010, 10:38 PM   #3
sungtaeyoo
 
 
Join Date: Aug 2010
Posts: 55
Sorry. I'm using IB API with Krs.Ats.IBNet which is c# wrapper.
    Quote
Old Nov 25th, 2010, 12:58 AM   #4
Bob111
 
 
Join Date: May 2002
Posts: 7,412
try TWSAPI yahoo board..
    Quote
 
Reply
Thread Tools

Forum Jump



   Conduct Rules   Privacy Policy   Sitemap Copyright © 2014, Elite Trader. All rights reserved.   

WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Trading & Clearing
AMP Global Clearing
Futures and FX Trading
Collective2
Automated Trading Services
CTS
Futures Trading Software
dom993trading.com
NinjaTrader Consulting
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
NinjaTrader
Trading Software Provider
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thenut-trader.com
FX, Gold, & Stock Signals
TradersStudio
System Building & Backtesting
Tradier
Equity and Options Trading
Trading Technologies
Trading Software Provider