Skip to content

Commit

Permalink
Fix streamconn CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdowling committed Jul 16, 2019
1 parent c72da14 commit 7053212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions alpaca_trade_api/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_credentials(key_id=None, secret_key=None):
key_id = key_id or os.environ.get('APCA_API_KEY_ID')
if key_id is None:
raise ValueError('Key ID must be given to access Alpaca trade API',
'(env: APCA_API_KEY_ID)')
' (env: APCA_API_KEY_ID)')

secret_key = secret_key or os.environ.get('APCA_API_SECRET_KEY')
if secret_key is None:
Expand All @@ -33,7 +33,7 @@ def get_polygon_credentials(alpaca_key=None):
key_id = os.environ.get('POLYGON_KEY_ID') or alpaca_key
if key_id is None:
raise ValueError('Key ID must be given to access Polygon API'
'(env: APCA_API_KEY_ID or POLYGON_KEY_ID)')
' (env: APCA_API_KEY_ID or POLYGON_KEY_ID)')
return key_id


Expand Down
2 changes: 1 addition & 1 deletion tests/test_stream2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from alpaca_trade_api.stream2 import StreamConn
from alpaca_trade_api.polygon.stream2 import StreamConn as PolyStream
from alpaca_trade_api.polygon import StreamConn as PolyStream
from alpaca_trade_api.entity import Account
import asyncio
import json
Expand Down

0 comments on commit 7053212

Please sign in to comment.