it not show success message but
it shows WebSocket connection to 'wss://stream.data.alpaca.markets/v1beta2/crypto' failed: Error during WebSocket handshake: Unexpected response code: 403
what should i do ??
You need to authenticate after opening the WS connection.
For the WebSocket example in JavaScript.
You can add these lines to send a message after opening the connection. The message contains the API keys in the format the API expects for an auth message.
With the same credentials that work for live streaming but when changing data_stream_url to ‘sandbox’ I just get repeated ‘auth failed’. Otherwise it connect fine (with live url for data_streaming_url) without me sending any kind of auth action. What am I doing wrong?