Skip to content

Commit fc24e3f

Browse files
committed
oauth parameter
1 parent e7b152c commit fc24e3f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: alpaca_backtrader_api/alpacastore.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ class AlpacaStore(with_metaclass(MetaSingleton, object)):
193193
('paper', False),
194194
('usePolygon', False),
195195
('account_tmout', 10.0), # account balance refresh timeout
196-
('api_version', None)
196+
('api_version', None),
197+
('oauth', None)
197198
)
198199

199200
_DTEPOCH = datetime(1970, 1, 1)
@@ -234,7 +235,8 @@ def __init__(self):
234235
self.oapi = API(self.p.key_id,
235236
self.p.secret_key,
236237
self.p.base_url,
237-
self.p.api_version)
238+
self.p.api_version,
239+
self.p.oauth)
238240

239241
self._cash = 0.0
240242
self._value = 0.0

0 commit comments

Comments
 (0)