addisonlynch / iexfinance

Python SDK for IEX Cloud
https://addisonlynch.github.io/iexfinance
Apache License 2.0
648 stars 136 forks source link

List of sectors #241

Closed burrittresearch closed 3 years ago

burrittresearch commented 3 years ago

Summary (include Python version)

Python 3.8.6, iexfinance==0.5.0

Hello: I looked through the documentation and could not find an equivalent for producing a list of sectors. Here is the api call from IEX Cloud:

Call: https://sandbox.iexapis.com/stable/ref-data/sectors?token=

IEX Cloud documentation: https://iexcloud.io/docs/api/#sectors

iexfinance documentation: https://addisonlynch.github.io/iexfinance/stable/market-info.html#collections

And if these kinds of requests are not recommended here, please let me know! I will post to SO.

Date/time of issue

Current

Expected behavior

Looking for list of sectors

Actual behavior

Don't know if it's available

addisonlynch commented 3 years ago

Use refdata.getsectors https://addisonlynch.github.io/iexfinance/stable/refdata.html#sectors

burrittresearch commented 3 years ago

Thanks, Addison. And if you ever need any help with this project, please let me know! I would love to help. Great package.