We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dee4a4 + 366bdb0 commit f4c59ebCopy full SHA for f4c59eb
alpaca_trade_api/polygon/rest.py
@@ -151,6 +151,11 @@ def last_quote(self, symbol):
151
raw = self.get(path)
152
# TODO status check
153
return Quote(raw['last'])
154
+
155
+ def previous_day_bar(self, symbol):
156
+ path = '/aggs/ticker/{}/prev'.format(symbol)
157
+ raw = self.get(path, version='v2')
158
+ return Aggsv2(raw)
159
160
def condition_map(self, ticktype='trades'):
161
path = '/meta/conditions/{}'.format(ticktype)
0 commit comments