Skip to content

Commit 3571485

Browse files
author
Shlomi Kushchi
authored
fix: move StreamConn oauth arg to end of list
Even though it is better suited next to the api keys, when users don't use named args ( => kwargs) this new order may break their usage. e.g: ```py StreamConn(self._key_id, self._secret_key, self._base_url) ``` this will put the base_url inside `oauth`. moving it to the end of the list will prevent this from happening.
1 parent 2383a01 commit 3571485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpaca_trade_api/stream2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ def __init__(
190190
self,
191191
key_id: str = None,
192192
secret_key: str = None,
193-
oauth: str = None,
194193
base_url: URL = None,
195194
data_url: URL = None,
196195
data_stream: str = None,
197-
debug: bool = False
196+
debug: bool = False,
197+
oauth: str = None
198198
):
199199
self._key_id, self._secret_key, self._oauth = \
200200
get_credentials(key_id, secret_key, oauth)

0 commit comments

Comments
 (0)