File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ __version__ = '1.4.2'
2+
13from .rest import REST , TimeFrame , TimeFrameUnit # noqa
24from .rest_async import AsyncRest # noqa
35from .stream import Stream # noqa
4- from .stream2 import StreamConn # noqa
5-
6- __version__ = '1.4.2'
6+ from .stream2 import StreamConn # noqa
Original file line number Diff line number Diff line change 55from requests .exceptions import HTTPError
66import time
77from enum import Enum
8+ from alpaca_trade_api import __version__
89from .common import (
910 get_base_url ,
1011 get_data_url ,
@@ -166,6 +167,7 @@ def _request(self,
166167 else :
167168 headers ['APCA-API-KEY-ID' ] = self ._key_id
168169 headers ['APCA-API-SECRET-KEY' ] = self ._secret_key
170+ headers ['User-Agent' ] = 'APCA-TRADE-SDK-PY/' + __version__
169171 opts = {
170172 'headers' : headers ,
171173 # Since we allow users to set endpoint URL via env var,
You can’t perform that action at this time.
0 commit comments