Connection works. Authentication works.
Streaming does not work.
After sending the listen
action, it responds with listening
and with an empty list of streams. Here is my wscat to demo the issue, using the exact example from the documentation:
$$ wscat --connect wss://api.alpaca.markets/stream
Connected (press CTRL+C to quit)
> { "action": "authenticate", "data": { "key_id": "***", "secret_key": "***" } }
< {"stream":"authorization","data":{"action":"authenticate","status":"authorized"}}
> { "action": "listen", "data": { "streams": ["T.SPY", "Q.SPY", "AM.SPY"] } }
< {"stream":"listening","data":{"streams":[]}}
Notice above it returns {"streams":[]}
. Why?