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

Комментарии • 16

  • @luzhang9763
    @luzhang9763 11 месяцев назад +1

    Amazing work! I'm preparing for the FRM2 exam. Your playlist has been super helpful for me to understand some abstract concepts!

    • @MattMacarty
      @MattMacarty  11 месяцев назад

      Thank you. Glad it helped.

  • @PaoloCondo
    @PaoloCondo Год назад

    Thanks for this series of videos!

  • @dtconsultations
    @dtconsultations 9 месяцев назад

    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.

    • @MattMacarty
      @MattMacarty  9 месяцев назад +1

      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.

    • @dtconsultations
      @dtconsultations 9 месяцев назад

      @@MattMacarty So, instead, we can add other sets of conditions, such as stocks with 4m avg volume in (NYSE & NASDAQ)

    • @MattMacarty
      @MattMacarty  9 месяцев назад +1

      ​@@dtconsultations For sure. This playlist walks through this and more. a sample screener is in Part 9.

    • @MattMacarty
      @MattMacarty  9 месяцев назад

      ruclips.net/p/PLiPFKCVZWHKqk1TSSQTBcPSxZEjBT9E88

  • @iamwhatuthinkiam
    @iamwhatuthinkiam 3 месяца назад

    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!

    • @MattMacarty
      @MattMacarty  3 месяца назад

      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

  • @jackcalvert1145
    @jackcalvert1145 Год назад

    So just to clarify, if I was to use your code with my api code it would work fine?

    • @MattMacarty
      @MattMacarty  Год назад

      it should as long as you make theappropriate adjustments for the API you are using

  • @cemsirubertike6310
    @cemsirubertike6310 2 года назад

    Sir very useful video. Would it be more useful if we get data from the web using beautiful soup instead of API?

    • @MattMacarty
      @MattMacarty  2 года назад +1

      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.

    • @cemsirubertike6310
      @cemsirubertike6310 2 года назад

      @@MattMacarty thank you sir, your explanation has been very useful, thanks to you, I have learned the problem that I constantly encounter.