Mitchell Lafferty
Mitchell Lafferty

Reputation: 21

wscat connection unexpected server response: 403

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

Answers (1)

Reto H&#246;hener
Reto H&#246;hener

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

Related Questions