Skip to content

Commit 260c00f

Browse files
committed
Fix flake8 errors
1 parent 135685b commit 260c00f

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

alpaca_trade_api/polygon/entity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ def __getattr__(self, key):
147147
val = self._raw[key]
148148
if key == 'timestamp':
149149
return pd.Timestamp(val, tz=NY, unit='ms')
150-
elif key in ['sip_timestamp', 'participant_timestamp', 'trf_timestamp']:
150+
elif key in [
151+
'sip_timestamp', 'participant_timestamp', 'trf_timestamp'
152+
]:
151153
return pd.Timestamp(val, tz=NY, unit='ns')
152154
return val
153155
return getattr(super(), key)

alpaca_trade_api/polygon/rest.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ def historic_trades(self, symbol, date, offset=None, limit=None):
5757

5858
return Trades(raw)
5959

60-
def historic_trades_v2(self, symbol, date, timestamp=None,
61-
timestamp_limit=None, reverse=None,
62-
limit=None):
60+
def historic_trades_v2(
61+
self, symbol, date, timestamp=None, timestamp_limit=None,
62+
reverse=None, limit=None
63+
):
6364
path = '/ticks/stocks/trades/{}/{}'.format(symbol, date)
6465
params = {}
6566
if timestamp is not None:
@@ -89,9 +90,10 @@ def historic_quotes(self, symbol, date, offset=None, limit=None):
8990

9091
return Quotes(raw)
9192

92-
def historic_quotes_v2(self, symbol, date, timestamp=None,
93-
timestamp_limit=None, reverse=None,
94-
limit=None):
93+
def historic_quotes_v2(
94+
self, symbol, date, timestamp=None, timestamp_limit=None,
95+
reverse=None, limit=None
96+
):
9597
path = '/ticks/stocks/nbbo/{}/{}'.format(symbol, date)
9698
params = {}
9799
if timestamp is not None:

0 commit comments

Comments
 (0)