From 8ea99f261e6426c8b0da6e24bc5d9eccfc82d996 Mon Sep 17 00:00:00 2001 From: Hitoshi Harada Date: Wed, 27 Jun 2018 10:04:25 -0700 Subject: [PATCH] Update NATS server addresses --- alpaca_trade_api/polygon/stream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alpaca_trade_api/polygon/stream.py b/alpaca_trade_api/polygon/stream.py index a6d994da..211baf81 100644 --- a/alpaca_trade_api/polygon/stream.py +++ b/alpaca_trade_api/polygon/stream.py @@ -22,9 +22,9 @@ def __init__(self, api_key): async def connect(self, loop=None): servers = [ - 'nats://{}@nats1.polygon.io:30401'.format(self._api_key), - 'nats://{}@nats2.polygon.io:30402'.format(self._api_key), - 'nats://{}@nats3.polygon.io:30403'.format(self._api_key), + 'nats://{}@nats1.polygon.io:31101'.format(self._api_key), + 'nats://{}@nats2.polygon.io:31102'.format(self._api_key), + 'nats://{}@nats3.polygon.io:31103'.format(self._api_key), ] # TODO: