This repository was archived by the owner on Nov 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def get_last() -> pd.DataFrame:
1515 quote = client .get_last_option (
1616 req = OptionReqType .QUOTE ,
1717 root = "AAPL" ,
18- exp = date (2022 , 8 , 12 ),
18+ exp = date (2022 , 9 , 16 ),
1919 strike = 140.00 ,
2020 right = OptionRight .CALL ,
2121 )
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ The above example returned a `Series`. Let's see how we can use it to process ou
139139
140140Now let's try a low-latency request for the most recent option data available:
141141
142+ Note that * as of now* , live data requests will only work during trading hours!
143+
142144=== "get_last.py"
143145
144146 ```python
Original file line number Diff line number Diff line change 11"""Contains tests for the tutorial section of the documentation."""
2+ import pytest
23import docs
34from docs .get_last import get_last
45from docs .list_roots import get_roots
@@ -18,6 +19,9 @@ def test_docs_list_roots():
1819 manipulate_series .main ()
1920
2021
21- def test_docs_first_req ():
22- """Test the first tutorial."""
22+ @pytest .mark .skip (
23+ reason = "Live data currently only works during trading hours."
24+ ) # TODO: remove
25+ def test_docs_get_last ():
26+ """Test the live data tutorial."""
2327 get_last ()
You can’t perform that action at this time.
0 commit comments