npm install -g wscat
wscat -c wss://alpaca.socket.polygon.io/stocks
{"action":"auth","params":"*******"}
{"action":"subscribe","params":"T.AAPL"}
stock trading bot using real-time websocket data and alpaca api
Python
npm install -g wscat
wscat -c wss://alpaca.socket.polygon.io/stocks
{"action":"auth","params":"*******"}
{"action":"subscribe","params":"T.AAPL"}