# API Docs don't appear to be working

**URL:** <https://forum.alpaca.markets/t/api-docs-dont-appear-to-be-working/11629>\
**Category:** Getting Started with Alpaca\
**Created:** [January 20, 2023, 9:41pm UTC](https://forum.alpaca.markets/t/api-docs-dont-appear-to-be-working/11629 "2023-01-20T21:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![redcoatwright](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/redcoatwright/32/5022_2.png) [@redcoatwright](https://forum.alpaca.markets/u/redcoatwright)\
**Post date:** [January 20, 2023, 9:41pm UTC](https://forum.alpaca.markets/t/api-docs-dont-appear-to-be-working/11629/1 "2023-01-20T21:41:45Z")

</div>

So I’m literally just trying to the very first thing (for reference I’ve built my algo platform using the TDA api but I don’t want to use schwab and also it’s not that good), however with that API I can just get a bid price by inputing a ticker. For this, it seems I should be using the streaming function (which I recognize is a better solution), when I try to test it out by just doing this:

from alpaca.data.live import StockDataStream

wss\_client = StockDataStream(key,key)

async def quote\_data\_handler(data: Any):  
print(data)

wss\_client.subscribe\_quotes(quote\_data\_handler, “SPY”)

wss\_client.run()

which comes directly from these docs: [Market Data - Alpaca-py](https://alpaca.markets/docs/python-sdk/market_data.html#market-data)

but it just tells me that “Any” is not defined which is true. Either I’m using an outdated version of python (possible) or I’m missing something else…

Anyone help me get started?

---

<div class="post-metadata">

**Author:** ![David\_Jaramillo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/david_jaramillo/32/5057_2.png) [@David\_Jaramillo](https://forum.alpaca.markets/u/David_Jaramillo)\
**Post date:** [January 29, 2023, 9:33pm UTC](https://forum.alpaca.markets/t/api-docs-dont-appear-to-be-working/11629/2 "2023-01-29T21:33:56Z")

</div>

I get the same thing as well and can’t figure out what I need to do.  
Only thing I can think of, is that it’s the any() in python.

Maybe this is just a documentation error and it should be any. I tried it and put lower case any and it seems to run. Waiting to get data though.

---

<div class="post-metadata">

**Author:** ![redcoatwright](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/redcoatwright/32/5022_2.png) [@redcoatwright](https://forum.alpaca.markets/u/redcoatwright)\
**Post date:** [January 30, 2023, 11:14am UTC](https://forum.alpaca.markets/t/api-docs-dont-appear-to-be-working/11629/3 "2023-01-30T11:14:07Z")

</div>

Hey, did it work for you? I gave up on getting the streaming function to work and opted to just loop on my tickers and check the price that way
