Skip to content

Commit

Permalink
oauth parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyli committed Jun 10, 2020
1 parent e7b152c commit fc24e3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alpaca_backtrader_api/alpacastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ class AlpacaStore(with_metaclass(MetaSingleton, object)):
('paper', False),
('usePolygon', False),
('account_tmout', 10.0), # account balance refresh timeout
('api_version', None)
('api_version', None),
('oauth', None)
)

_DTEPOCH = datetime(1970, 1, 1)
Expand Down Expand Up @@ -234,7 +235,8 @@ def __init__(self):
self.oapi = API(self.p.key_id,
self.p.secret_key,
self.p.base_url,
self.p.api_version)
self.p.api_version,
self.p.oauth)

self._cash = 0.0
self._value = 0.0
Expand Down

0 comments on commit fc24e3f

Please sign in to comment.