This repository was archived by the owner on Nov 18, 2024. It is now read-only.
File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,5 +27,4 @@ def end_of_day() -> pd.DataFrame:
27
27
28
28
if __name__ == "__main__" :
29
29
data = end_of_day ()
30
- print (data )
31
-
30
+ print (data )
Original file line number Diff line number Diff line change 1
1
"""Module that contains Theta Client class."""
2
- from typing import Optional , Callable
2
+ from typing import Optional
3
3
from contextlib import contextmanager
4
- from functools import wraps
5
- from datetime import datetime , date
4
+
6
5
import socket
7
6
8
7
from pandas import DataFrame
9
8
from tqdm import tqdm
10
9
import pandas as pd
11
10
12
- from . import exceptions
13
11
from .enums import *
14
12
from .parsing import (
15
13
Header ,
@@ -103,7 +101,7 @@ def get_hist_option(
103
101
strike : float ,
104
102
right : OptionRight ,
105
103
date_range : DateRange ,
106
- interval_size : int = 60000 ,
104
+ interval_size : int = 0 ,
107
105
progress_bar : bool = False ,
108
106
) -> pd .DataFrame :
109
107
"""
@@ -115,7 +113,7 @@ def get_hist_option(
115
113
:param strike: The strike price in USD, rounded to 1/10th of a cent.
116
114
:param right: The right of an option.
117
115
:param date_range: The dates to fetch.
118
- :interval_size: The interval size in milliseconds. Applicable only to OHLC & QUOTE requests.
116
+ :param interval_size: The interval size in milliseconds. Applicable only to OHLC & QUOTE requests.
119
117
:param progress_bar: Print a progress bar displaying download progress.
120
118
121
119
:return: The requested data as a pandas DataFrame.
You can’t perform that action at this time.
0 commit comments