Environment
Language
Let us know what language you’re writing your code in. Please include the version number you’re running, if possible.
Python 3
Alpaca SDK Version
If you’re using an SDK library to interface with the Alpaca API, please include the version number you have installed in your environment.
API v2
Other Environment Details
If there’s anything else you’d like to include about the environment you’re running your code in - operating System, cloud provider, etc. - list it here.
Problem
Summary
Trying to Real-Time Streaming Stock Market Data with Python and Websockets
Describe the problem you’re running into here.
After typing in VS code terimal & conntecting through this command:
wscat -c wss://data.alpaca.markets/stream
I get connected but then after I try typing my API key: {“action”:“auth”,“params”:"*******"}
I get Disconnected (code: 1006, reason: “”)
Paper or Live Trading?
Let us know if you’re using the paper trading simulator or the live trading API.
Paper
Example Code
If you have code that reproduces the problem or will make your issue more clear, please include it here
Screenshot attached here is best