Python for Finance #2 - Getting and Storing Multiple Real Time Stock Data

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024
  • Welcome to a new Python for Finance tutorial series.
    In this series, we're going to build a real time and automated trading platform using Python.
    Lesson 1 - Introduction and Getting Real Time Stock Data
    Lesson 2 - Getting and Storing Multiple Real Time Stock Data
    Lesson 3 - Customizing Real Time and Automated Trading Platform Layouts
    Lesson 4a - Building Candlestick Chart and Moving Average Function
    Lesson 4b - Plotting Candlestick Chart and Moving Average
    Lesson 5 - Plotting Line Charts in Mini Charts
    Lesson 6 - Plotting Trading Volume Bar Chart
    Lesson 7 - Plotting Relative Strength Index (RSI) Line Chart
    ---------------------------------------------------------------------------------------------------------------------------
    ⭐️⭐️⭐️Support FREE content: www.buymeacoff...

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

  • @SallyZ-957
    @SallyZ-957 Год назад +1

    And you, my friend, are a true hero!

  • @LiiamJacobson
    @LiiamJacobson 3 года назад +2

    This is absolutely awesome! Thank you for sharing this with us, looking forward to Lesson 3.

  • @forexscamfinder4639
    @forexscamfinder4639 3 года назад +1

    Thanks for the tutorials. Are you still making this series ?

  • @petermeng3609
    @petermeng3609 3 месяца назад +1

    thanks for your sharing! it is nice clear. which city are you basing?

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

      Thanks for the comments. I am currently based in Melbourne.

  • @Seriosso
    @Seriosso 3 года назад +1

    Great Content! Thank you for sharing your knowledge.

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

    Very interesting! I want to learn it thoroughly.

  • @dariogpb
    @dariogpb 3 года назад +1

    Great content liked & subscribed!

  • @rafaeltacconi2065
    @rafaeltacconi2065 3 года назад +2

    Is it possible to use the library yfinance to get real time price i/o scraping?

  • @deanemarks8611
    @deanemarks8611 3 года назад +1

    When you are copying the stuff from the HTML It would be great if you switch screenes to show exactly what you copied. I can't find it exactly for the second part in the pattern.

  • @gagepatterson4770
    @gagepatterson4770 Год назад +1

    For the test prints you do the “latest pattern” field is showing all blanks but in the excel file it shows bearish so seems to have loaded. Does yahoo seem to randomly block the requests for some tickers? How to go about getting around blocked requests?

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

      Thanks for watching.
      Yes, Yahoo blocks requests (not sure it’s randomly blocked or not). But it seems yahoo is getting the “pattern” data from other data providers/API. So when I tested before, sometimes I could retrieve the data, sometimes I couldn’t.

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

      Thanks for replying. I switched my user agent in my browser then tried adding-
      rnd=np.random.default_rng(12345)
      time.sleep(np.pi*rnd.integers(low=a, high=b, size=len(forloop))
      into the for loop I was running, where a,b are arbitrary integers, and it seemed the blocking stopped.

  • @garylanigan1
    @garylanigan1 3 года назад +1

    Great video tutorial. Problem though, it is not printing to a csv: "df.to_csv(str(time_stamp[0:11]) + 'stockdata.csv', mode = 'a', header = False)".

    • @mattrading8701
      @mattrading8701 3 года назад

      Hi, it should appear a new "stockdata" (CSV) file in the .py's folder you have run

    • @garylanigan1
      @garylanigan1 3 года назад

      @@mattrading8701 LOL, I had my 'main' folder opened in VSC, but working in in a sub-sub folder... File was being saved to the 'main' directory, not the folder I was working in. Problem solved.

  • @ravindrametri1681
    @ravindrametri1681 3 года назад

    good work sir, i want India Index live price (Nifty50, banknifty) plz help, above code worked but price not shows correct

  • @siddheshsawant9130
    @siddheshsawant9130 3 года назад

    UnboundLocalError: local variable 'one_year_target' referenced before assignment can you explain me this?

  • @maximiliankrug1011
    @maximiliankrug1011 3 года назад

    Good work. How do you get your program store the information in separate columns. My code keeps storing in separate rows but always in the first column. thanks

    • @eMasterClassAcademy
      @eMasterClassAcademy  3 года назад

      I was thinking you might need to add a transpose function
      df = df.T

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

    why did you add the timestamp the csv filename ?

  • @sungrand5
    @sungrand5 3 года назад

    What should i do if i want get forward dividend & yield? It has same class with ex-dividend date so i put it same...then it just print 'Ex-dividend date' plz help!!

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

    hi where we can find the complite code?

  • @Ramu_Gobbilla
    @Ramu_Gobbilla 8 месяцев назад

    i am not getting live data , only getting [] , please help

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

    For both VOLUME and ONE_YEAR_TARGET i receive: UnboundLocalError: local variable 'Volume' referenced before assignment. If i # both out, then i receive wrong information (4,243.53) for the variable result LATEST_PATTERN. I changed the code from video_1 already to return price, change, pct, since yahoo mixed up their source, which worked. But unfortunatley i cant do it for the new variables.

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

      Same probleme

    • @eMasterClassAcademy
      @eMasterClassAcademy  2 года назад +2

      Thanks for watching this video.
      Yahoo at the backend changes some html code.
      I’ve just successfully retrieved back all the information, except “Last Pattern” which has been completely removed by Yahoo.
      I will create a new video for this update. Please stay tuned!

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

    does your csv file update in real-time? How do you update it every time your script runs?

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

      Yes, everything is live.
      There are two python files. One is to web scrap the data, and the other one is to plot the data.

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

    Can anyone share th jupyter notebook for this thanks

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

    strange i could not find the src code? Anyone can assists?

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

      Thanks for watching. All source codes are available to youtube member (Lv2 or above). Thanks.

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

    Does anyone know of a github for this code series?

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

    in lesson 1 ther is no error but no price recive only [ ] [ ]

  • @iyannsruttofficialproject2947
    @iyannsruttofficialproject2947 3 года назад +1

    please source code downlod 🙏

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

    How to code that real time graph?

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

      Thanks for watching. Please follow our lesson #3-#7 for the automated real time plotting.
      We are creating some new videos to show it as well.
      With Selenium, live data is captured and stored. With matplotlib, live data is plotted.
      Ultimately, we will include the buy/sell signals in the plot as well.
      Hope it helps.

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

      @@eMasterClassAcademy Hello, just wondering if these new videos that you mentioned, about plotting live data with matplotlib to show a moving real-time graph, are out yet? If yes, where can I find them please? Thank you!

  • @SITARAM-zj4lw
    @SITARAM-zj4lw 3 года назад

    🍯🍯🍯

  • @stanislavshubin3447
    @stanislavshubin3447 3 года назад +1

    +

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

    line 47, in real_time_price
    one_year_target = texts[count+1]
    IndexError: list index out of range