Skip to content

Commit 399ceba

Browse files
committed
Removed redundant cast to str
1 parent d5fcb22 commit 399ceba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NSE_Option_Chain_Analyzer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# noinspection PyAttributeOutsideInit
2828
class Nse:
2929
version: str = '5.3'
30-
beta: Tuple[bool, int] = (True, 3)
30+
beta: Tuple[bool, int] = (True, 4)
3131

3232
def __init__(self, window: Tk) -> None:
3333
self.intervals: List[int] = [1, 2, 3, 5, 10, 15]
@@ -1077,9 +1077,9 @@ def get_dataframe(self) -> Optional[Tuple[pandas.DataFrame, str, float]]:
10771077
df = df.transpose()
10781078

10791079
ce_values: List[dict] = [data['CE'] for data in json_data['records']['data'] if
1080-
"CE" in data and str(data['expiryDate']).lower() == str(self.expiry_date).lower()]
1080+
"CE" in data and data['expiryDate'].lower() == self.expiry_date.lower()]
10811081
pe_values: List[dict] = [data['PE'] for data in json_data['records']['data'] if
1082-
"PE" in data and str(data['expiryDate']).lower() == str(self.expiry_date).lower()]
1082+
"PE" in data and data['expiryDate'].lower() == self.expiry_date.lower()]
10831083
points: float = pe_values[0]['underlyingValue']
10841084
if points == 0:
10851085
for item in pe_values:

0 commit comments

Comments
 (0)