Skip to content

Commit

Permalink
🌲 Bug: Fix Env Var Issue 🌲 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchak1 authored Oct 28, 2020
1 parent 4ae86d8 commit 74e3842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def get_intraday(self, symbol, min=1, timeframe='max', extra_hrs=True):


class Polygon(MarketData):
def __init__(self, token=os.environ['APCA_API_KEY_ID']):
def __init__(self, token=os.environ.get('APCA_API_KEY_ID')):
load_dotenv()
super().__init__()
self.client = RESTClient(token)
Expand Down

0 comments on commit 74e3842

Please sign in to comment.