Skip to content

Commit 259136e

Browse files
author
Shlomi Kushchi
authored
Merge pull request #258 from alpacahq/change_polygon_ws_url
Changed polygon ws to socket.polygon.io
2 parents a61bb78 + 42002fb commit 259136e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The Alpaca SDK will check the environment for a number of variables which can be
6464
| APCA_RETRY_MAX=3 | 3 | The number of subsequent API calls to retry on timeouts |
6565
| APCA_RETRY_WAIT=3 | 3 | seconds to wait between each retry attempt |
6666
| APCA_RETRY_CODES=429,504 | 429,504 | comma-separated HTTP status code for which retry is attempted |
67-
| POLYGON_WS_URL | wss://alpaca.socket.polygon.io/stocks | Endpoint for streaming polygon data. You likely don't need to change this unless you want to proxy it for example |
67+
| POLYGON_WS_URL | wss://socket.polygon.io/stocks | Endpoint for streaming polygon data. You likely don't need to change this unless you want to proxy it for example |
6868
| POLYGON_KEY_ID | | Your Polygon key, if it's not the same as your Alpaca API key. Most users will not need to set this to access Polygon. |
6969
| ALPHAVANTAGE_API_KEY=<key_id> | | Your Alpha Vantage API key. You can get [one for free here](https://www.alphavantage.co/support/#api-key). |
7070

alpaca_trade_api/polygon/streamconn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, key_id: str = None):
1717
self._key_id = get_polygon_credentials(key_id)
1818
self._endpoint: URL = URL(os.environ.get(
1919
'POLYGON_WS_URL',
20-
'wss://alpaca.socket.polygon.io/stocks'
20+
'wss://socket.polygon.io/stocks'
2121
).rstrip('/'))
2222
self._handlers = {}
2323
self._handler_symbols = {}

0 commit comments

Comments
 (0)