NexusFi: Find Your Edge


Home Menu

 





Displaying stock option historical prices from IBRK in NT


Discussion in NinjaTrader

Updated
    1. trending_up 1,188 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 inter 
Newtown Pennsylvania/USA
 
Experience: Intermediate
Platform: TWS NinjaTrader MATLAB
Posts: 14 since May 2019
Thanks Given: 5
Thanks Received: 4

Has anyone tried retrieving and displaying stock option historical prices from Interactive Brokers in NinjaTrader?

Analysis of TWS API logs shows that NT adds the type of instrument “stock” to the request and IB does not find it.

 
Code
TWS API 
20-4002-0-AAPL-OPT-20231027-180-C-100-SMART--USD---0-20231022-17:41:49-1 hour-3 M-1-TRADES-1-0--

NINJA
13:47:19:683 <- 20-6-105-0-AAPL-OPT-20231027-180-C-100-STK--0-0--SMART-SMART-USD---0-20231022 17:47:21 UTC-1 min-6 D-0-TRADES-1--

However, the request to obtain the options chain is processed normally -

 
Code
14:19:35:198 <- 9-8-1001-0-AAPL-OPT--0-Any--SMART-SMART-USD---0---

Has anyone encountered this issue before?

I'd be very grateful if you could share your experience.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
My Rant with AMP Futures
Trading Reviews and Vendors
 
  #2 (permalink)
 gaz0001 
United Kingdom, UK
 
Experience: Intermediate
Platform: TWS, NT8 & TV
Broker: IB & NT
Trading: Futures, Stocks, Options & Crypto
Posts: 118 since Jan 2022
Thanks Given: 48
Thanks Received: 93


inter View Post
Has anyone tried retrieving and displaying stock option historical prices from Interactive Brokers in NinjaTrader?

Analysis of TWS API logs shows that NT adds the type of instrument “stock” to the request and IB does not find it.

 
Code
TWS API 
20-4002-0-AAPL-OPT-20231027-180-C-100-SMART--USD---0-20231022-17:41:49-1 hour-3 M-1-TRADES-1-0--

NINJA
13:47:19:683 <- 20-6-105-0-AAPL-OPT-20231027-180-C-100-STK--0-0--SMART-SMART-USD---0-20231022 17:47:21 UTC-1 min-6 D-0-TRADES-1--

However, the request to obtain the options chain is processed normally -

 
Code
14:19:35:198 <- 9-8-1001-0-AAPL-OPT--0-Any--SMART-SMART-USD---0---

Has anyone encountered this issue before?

I'd be very grateful if you could share your experience.

I can chart a stock option and it's historical pricing and data.
I find the stock option in the options chain, and load the ticker from there. Works as expected.


Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 inter 
Newtown Pennsylvania/USA
 
Experience: Intermediate
Platform: TWS NinjaTrader MATLAB
Posts: 14 since May 2019
Thanks Given: 5
Thanks Received: 4


Would you be able to explain how to do this?


Started this thread Reply With Quote
  #4 (permalink)
 gaz0001 
United Kingdom, UK
 
Experience: Intermediate
Platform: TWS, NT8 & TV
Broker: IB & NT
Trading: Futures, Stocks, Options & Crypto
Posts: 118 since Jan 2022
Thanks Given: 48
Thanks Received: 93


inter View Post
Would you be able to explain how to do this?

You can manually type the option in, or just select it from the Options Chain.



Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 inter 
Newtown Pennsylvania/USA
 
Experience: Intermediate
Platform: TWS NinjaTrader MATLAB
Posts: 14 since May 2019
Thanks Given: 5
Thanks Received: 4


gaz0001 View Post
You can manually type the option in, or just select it from the Options Chain.



It works! Thank you!!!


Started this thread Reply With Quote




Last Updated on October 31, 2023


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts