# Market Data Real-time Websocket OAuth support

**URL:** <https://forum.alpaca.markets/t/market-data-real-time-websocket-oauth-support/10380>\
**Category:** Alpaca Integration Applications\
**Created:** [August 22, 2022, 8:52am UTC](https://forum.alpaca.markets/t/market-data-real-time-websocket-oauth-support/10380 "2022-08-22T08:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GingerWhinger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/gingerwhinger/32/2392_2.png) [@GingerWhinger](https://forum.alpaca.markets/u/GingerWhinger)\
**Post date:** [August 22, 2022, 8:52am UTC](https://forum.alpaca.markets/t/market-data-real-time-websocket-oauth-support/10380/1 "2022-08-22T08:52:03Z")

</div>

I’m just updating my Alpaca API to support OAuth. However, I’ve noticed that there is no documentation for authenticating using OAuth access tokens for market data real-time websockets.

I can receive trade updates from the Trade API streaming socket data with OAuth, and I can access historical data ReST API using the `Authorization: Bearer` header, but not for Market Data real-time websockets.

I’ve taken a look at the [alpaca-py](https://github.com/alpacahq/alpaca-py/blob/f60234244c192553a19ceee0d5814ff65486d8d8/alpaca/common/websocket.py#L17) source code to try and figure out how to do it, but it doesn’t appear to implemented.

Am I missing something?

I did try the same format for sending a auth socket message as described for trade streaming authentication, but it didn’t work.

If it is the case that there is no Market Data Real-Time Websockets support for authenticating with OAuth, that seems like a glaring omission.

If I have missed something, please correct me.

Thanks

G

---

<div class="post-metadata">

**Author:** ![GingerWhinger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/gingerwhinger/32/2392_2.png) [@GingerWhinger](https://forum.alpaca.markets/u/GingerWhinger)\
**Post date:** [August 22, 2022, 3:14pm UTC](https://forum.alpaca.markets/t/market-data-real-time-websocket-oauth-support/10380/2 "2022-08-22T15:14:26Z")

</div>

Never mind. According to [this](https://discord.com/channels/878427978223194123/950902644178817104/990946132609892352) discord response, **market data real-time websockets do not support OAuth authentication due to licensing.**

What a pain. 😡
