Hi Ray,
I'm a newbie here on QuantConnect(though not a newbie to options & trading). So, I'm playing with
Research notebooks and the options example in it. I'm using the sample code here:
googopts = qb.AddOption("GOOG")
googopts.SetFilter(-10, 1, timedelta(0), timedelta(780))
option_history = qb.GetOptionHistory(googopts.Symbol, datetime(2015, 7, 24))
print option_history.GetStrikes()
print option_history.GetExpiryDates()
h6 = option_history.GetAllData()
Output:
[640.0, 642.5, 645.0, 647.5, 635.0, 637.5, 630.0, 632.5, 627.5, 625.0, 622.5, 620.0]
[datetime.datetime(2015, 8, 21, 0, 0), datetime.datetime(2015, 9, 18, 0, 0), datetime.datetime(2015, 10, 16, 0, 0), datetime.datetime(2015, 12, 18, 0, 0), datetime.datetime(2016, 1, 15, 0, 0)]
How do I access the exact option I want and not the entire chain?More specifically, I'm looking to get the time series data(both daily and minutely or hourly) GOOG 18SEP15 545.0 P
That is the GOOG Put for 18Sep15 with strike 545.
So, I see that it has the Sept18 2015 chain. How do I specify exactly and how do I plot as candlesticks? Right now, # Gets historical data from the subscribed assets, between two dates with daily resolution
h1 = qb.History(goog.Symbol, datetime(2015,7,1), datetime(2015,9,2), Resolution.Daily)
# Plot closing prices from "GOOG"
h1.loc["GOOG"]["close"].plot()
It only produces line charts! I want candlestick charts for daily and minutely(zoomed in for 2 particular dates).Bare with me as I'm newbie to QC. But I'm so EXCITED about the availability of optionsdata! One of the key attraction to the QC platform!
Thanks in advance!