mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Fixed polygon act issue (#2206)
This commit is contained in:
@@ -133,7 +133,11 @@ def insider_activity(
|
||||
|
||||
n_stock_price = 0
|
||||
if interval == "1440min":
|
||||
n_stock_price = stock["Adj Close"][ind_dt]
|
||||
try:
|
||||
n_stock_price = stock["Adj Close"][ind_dt]
|
||||
except KeyError:
|
||||
stock.index = stock.index.floor("d")
|
||||
n_stock_price = stock["Adj Close"][ind_dt]
|
||||
else:
|
||||
n_stock_price = stock["Close"][ind_dt]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user