¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: OptContract Lookup


 

¿ªÔÆÌåÓý

There is no strike 119 for that expiry. 115 or 120 are the nearest strikes.

?

It took me about a minute to find this out using my Contract Inspector program, which you can get from Github at:

?

?

See attached screenshot.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of Crow
Sent: 03 March 2021 05:53
To: [email protected]
Subject: [TWS API] OptContract Lookup

?

I am trying to lookup contract details (socket.reqContractDetails()) of the following option contract (com.ib.client.Contract.OptContract):

?

conid 0

symbol XLY

secType OPT

lastTradeDateOrContractMonth 20210416

strike 119.0

right C

exchange SMART

currency USD

?

I get error code 200:?No security definition has been found for the request

?

Anyone know what is wrong with my request?

?

?

Join [email protected] to automatically receive all group messages.