Skip to content

Commit 88fbb67

Browse files
authored
Merge pull request #54 from sunjiawen/patch-1
Update entity.py to not having TypeError problem
2 parents 1920619 + 3343f90 commit 88fbb67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alpaca_trade_api/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def df(self):
8282
df.set_index('time', inplace=True)
8383
if not df.empty:
8484
df.index = pd.to_datetime(
85-
df.index * 1e9, utc=True,
85+
(df.index * 1e9).astype('int64'), utc=True,
8686
).tz_convert(NY)
8787
else:
8888
df.index = pd.to_datetime(

0 commit comments

Comments
 (0)