Skip to content

Commit 1d579eb

Browse files
author
Shlomi Kushchi
authored
add minute date example
1 parent 6587d1a commit 1d579eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ NY = 'America/New_York'
4343
start=pd.Timestamp('2020-08-01', tz=NY).isoformat()
4444
end=pd.Timestamp('2020-08-30', tz=NY).isoformat()
4545
print(api.get_barset(['AAPL', 'GOOG'], 'day', start=start, end=end).df)
46+
47+
# Minute data example
48+
start=pd.Timestamp('2020-08-28 9:30', tz=NY).isoformat()
49+
end=pd.Timestamp('2020-08-28 16:00', tz=NY).isoformat()
50+
print(api.get_barset(['AAPL', 'GOOG'], 'minute', start=start, end=end).df)
51+
4652
```
4753
please note the exact format of the dates
4854

0 commit comments

Comments
 (0)