How to Get a List of Stocks on an Exchange || Stock Analysis with Python Part 1
HTML-код
- Опубликовано: 5 июн 2022
- @MattMacarty
#python #stockmarket #dataanalytics
✅ Please SUBSCRIBE:
ruclips.net/user/subscription_...
Videos:
[Part 1]( • How to Get a List of ... )
[Part 2]( • How to Download S&P 50... )
[Part 3]( • How to Download and Sa... )
[Part 4]( • Stock Analysis with Py... )
[Part 5]( • Calculate Returns, Cre... )
[Part 6]( • Download, Transform an... )
[Part 7]( • Python for Stock Analy... )
[Part 8]( • Stocks About to Announ... )
[Part 9]( • How to Create a Stock ... )
[Part 10]( • Automate Stock Analysi... )
[Part 11]( • Python for Stock Analy... )
[Part 10]( • Automate Stock Analysi... )
[Part 11]( • Python for Stock Analy... )
[Part 12]( • How to Calculate & Nor... )
**This video is for educational purposes only. The information provided should not be construed as investment advice. **
✅ Get the code:
github.com/mjmacarty/python-s...
✅ If you are interested in subscribing to a data bundle from EODHistoricalData, use this link for special pricing (I get a referral):
eodhistoricaldata.com/alphabench
Use an API to get listing of every security traded on an exchange
Amazing work! I'm preparing for the FRM2 exam. Your playlist has been super helpful for me to understand some abstract concepts!
Thank you. Glad it helped.
Thanks for this series of videos!
Glad it's helping
Hello, Matt thank you for this great video. Is there a way to add conditions so only specific stocks (such as optionable) are retrieved? Thank you.
Not easily that I know of. If it’s optionable specifically you could get a crude cut by looking for things priced above say $5. Not prefect but should be pretty close.
@@MattMacarty So, instead, we can add other sets of conditions, such as stocks with 4m avg volume in (NYSE & NASDAQ)
@@dtconsultations For sure. This playlist walks through this and more. a sample screener is in Part 9.
ruclips.net/p/PLiPFKCVZWHKqk1TSSQTBcPSxZEjBT9E88
Hi Matt. Excellent video. Unfortunately I am not being able to replicate the file generation. I think its because I havent kept the API key in the right place that Python expects it to. (I kept it in a folder I created in a random location of my choice). Where does one keep the API Key so that Python is able to access it? Thanks in advance!
One way would be to make a simple text file that contains the key, place the file in the same directory as the python code and then use open to read the contents into a string
So just to clarify, if I was to use your code with my api code it would work fine?
it should as long as you make theappropriate adjustments for the API you are using
Sir very useful video. Would it be more useful if we get data from the web using beautiful soup instead of API?
Sure you can write a quick scraper to extract the symbols from a site. The design of many sites change without notice and your scraper will often need to be refactored to accommodate this. For the purposes of the this series I just want to have access the components. I didn't use an API for the S&P 500. The data is just stored in a CSV file. It is pretty useful to have access to all of the world's major exchanges so that's why I am using this API.
@@MattMacarty thank you sir, your explanation has been very useful, thanks to you, I have learned the problem that I constantly encounter.