This repository was archived by the owner on Nov 18, 2024. It is now read-only.
File tree 3 files changed +9
-3
lines changed
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:
15
15
quote = client .get_last_option (
16
16
req = OptionReqType .QUOTE ,
17
17
root = "AAPL" ,
18
- exp = date (2022 , 8 , 12 ),
18
+ exp = date (2022 , 9 , 16 ),
19
19
strike = 140.00 ,
20
20
right = OptionRight .CALL ,
21
21
)
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
139
139
140
140
Now let's try a low-latency request for the most recent option data available:
141
141
142
+ Note that * as of now* , live data requests will only work during trading hours!
143
+
142
144
=== "get_last.py"
143
145
144
146
```python
Original file line number Diff line number Diff line change 1
1
"""Contains tests for the tutorial section of the documentation."""
2
+ import pytest
2
3
import docs
3
4
from docs .get_last import get_last
4
5
from docs .list_roots import get_roots
@@ -18,6 +19,9 @@ def test_docs_list_roots():
18
19
manipulate_series .main ()
19
20
20
21
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."""
23
27
get_last ()
You can’t perform that action at this time.
0 commit comments