Paper account and ws news feed on sandbox

Hello,

I am on paper account and I can see only one set of api key and secret.

I am trying to access wss://stream.data.sandbox.alpaca.markets/v1beta1/news but getting auth errors.

However I am successful to authenticate with this ws: wss://stream.data.alpaca.markets/v1beta1/news.

Any suggestions?

Thank you,

Ray

@rayray If you have an individual live or paper account, you can use any of your API keys to authenticate the wss://stream.data.alpaca.markets/v1beta1/news endpoint.

The wss://stream.data.sandbox.alpaca.markets/v1beta1/news endpoint is for broker API users and requires authentication with broker API keys. In general, do not use any of the API’s with a base URL sandbox.alpaca.markets if you have an individual trading account.

As a sidenote, any of your API keys, from any of your accounts, can be used to authenticate the market data APIs. This is because your market data subscription is tied to your owner_id and not directly to any account. The APIs simply use your API key to look up the associated account. They then look at the owner_id of that account to find the market data subscription. In this way, any of your API keys will return the exact same data.