Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization Issue #5

Open
ngopal opened this issue May 21, 2019 · 3 comments
Open

Authorization Issue #5

ngopal opened this issue May 21, 2019 · 3 comments

Comments

@ngopal
Copy link

ngopal commented May 21, 2019

Could be something silly, but I keep receiving an authorization issue when running tick_taker.py.

Traceback (most recent call last): File "/root/anaconda3/lib/python3.6/site-packages/nats/aio/client.py", line 285, in connect yield from self._process_connect_init() File "/root/anaconda3/lib/python3.6/site-packages/nats/aio/client.py", line 1556, in _process_connect_init raise NatsError("nats: " + err_msg.rstrip('\r\n')) nats.aio.errors.NatsError: nats: 'Authorization Violation'

I've tried entering my key and secret on both the commandline as arguments to the python script, and setting them as environment variables. The key and secret exactly match what I see in the web interface.

Any ideas?

@Petersoj
Copy link

Are you using the API keys for Live Trading or Paper Trading? This trading algorithm uses the Polygon streaming API which requires API keys generated for Live Trading. This is so the hft algorithm can stream data via NATS streaming through Polygon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ngopal @Petersoj and others