I am trying to stream data by using an Alpaca paper trading account on a Windows 10 terminal, but instead of streaming data it returns empty. Does anybody know what I am doing wrong?
note: I have installed wscat by typing npm install -g wscat
and i have also downloaded node.js
First I type:
wscat -c wss://paper-api.alpaca.markets/stream
The terminal respondes with:
Connected (press CTRL+C to quit)
I then follow up with:
{"action": "authenticate","data": {"key_id": "my_key_id", "secret_key": "my_secret_key"}}
The terminal responds with:
{"stream":"authorization","data":{"action":"authenticate","status":"authorized"}}
Finally I type:
{"action": "listen", "data": {"streams": ["T.SPY"]}}
The terminal responds with:
{"stream":"listening","data":{"streams":[]}}
I want it to reply with streaming data.