Skip to content

Commit

Permalink
Update 04 Get Historical Data.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Oct 15, 2024
1 parent a177b38 commit 538273d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Get the Options data for the selected Futures contract.
option_history = qb.option_history(
futures_contract, start_date, futures_contract.id.date, Resolution.MINUTE,
futures_contract, start_date, futures_contract.id.date, Resolution.HOUR,
fill_forward=False, extended_market_hours=False
)</pre>
).data_frame</pre>
<pre class='csharp'>var startDate = new DateTime(2024, 1, 1);
// Select a contract. For example, get the front-month Futures contract.
Expand All @@ -23,7 +23,7 @@
// Get the Options data for the selected Futures contract.
var optionHistory = qb.OptionHistory(
futuresContract, startDate, futuresContract.ID.Date, Resolution.Minute,
futuresContract, startDate, futuresContract.ID.Date, Resolution.Hour,
fillForward: false, extendedMarketHours: false
);</pre>
</div>
Expand Down

0 comments on commit 538273d

Please sign in to comment.