Reputation: 21
I'm new to alpaca trading. Ran wscat -c wss://data.alpaca.markets/stream to connect and got error 403. Looks like an authorization thing.
I tried using wscat --auth <user: pass> but got the error The '<' operator is reserved for future use. Please lmk what I'm doing wrong.
Upvotes: 1
Views: 111
Reputation: 5848
Check your URLs: https://alpaca.markets/docs/api-references/market-data-api/stock-pricing-data/realtime/
Authorization for Alpaca streams works by sending special authorization messages, not via authorization headers (see docs linked above).
Upvotes: 0