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

  Рет қаралды 29,702

eMaster Class Academy

eMaster Class Academy

Күн бұрын

Пікірлер: 45
@SallyZ-957
@SallyZ-957 Жыл бұрын
And you, my friend, are a true hero!
@eMasterClassAcademy
@eMasterClassAcademy Жыл бұрын
thanks for your kind words
@LiiamJacobson
@LiiamJacobson 3 жыл бұрын
This is absolutely awesome! Thank you for sharing this with us, looking forward to Lesson 3.
@Seriosso
@Seriosso 3 жыл бұрын
Great Content! Thank you for sharing your knowledge.
@dariogpb
@dariogpb 3 жыл бұрын
Great content liked & subscribed!
@IsaacKhup
@IsaacKhup 2 жыл бұрын
Very interesting! I want to learn it thoroughly.
@petermeng3609
@petermeng3609 3 ай бұрын
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.
@rafaeltacconi2065
@rafaeltacconi2065 3 жыл бұрын
Is it possible to use the library yfinance to get real time price i/o scraping?
@forexscamfinder4639
@forexscamfinder4639 3 жыл бұрын
Thanks for the tutorials. Are you still making this series ?
@deanemarks8611
@deanemarks8611 3 жыл бұрын
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.
@garylanigan1
@garylanigan1 3 жыл бұрын
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.
@gagepatterson4770
@gagepatterson4770 Жыл бұрын
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.
@ravindrametri1681
@ravindrametri1681 3 жыл бұрын
good work sir, i want India Index live price (Nifty50, banknifty) plz help, above code worked but price not shows correct
@levimor98
@levimor98 Жыл бұрын
hi where we can find the complite code?
@siddheshsawant9130
@siddheshsawant9130 3 жыл бұрын
UnboundLocalError: local variable 'one_year_target' referenced before assignment can you explain me this?
@eueueueu21
@eueueueu21 Жыл бұрын
why did you add the timestamp the csv filename ?
@Ramu_Gobbilla
@Ramu_Gobbilla 8 ай бұрын
i am not getting live data , only getting [] , please help
@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
@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!!
@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
@moritzbehringer1675
@moritzbehringer1675 2 жыл бұрын
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 жыл бұрын
Same probleme
@eMasterClassAcademy
@eMasterClassAcademy 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!
@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?
@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!
@iyannsruttofficialproject2947
@iyannsruttofficialproject2947 3 жыл бұрын
please source code downlod 🙏
@levimor98
@levimor98 Жыл бұрын
in lesson 1 ther is no error but no price recive only [ ] [ ]
@stanislavshubin3447
@stanislavshubin3447 3 жыл бұрын
+
@SITARAM-zj4lw
@SITARAM-zj4lw 3 жыл бұрын
🍯🍯🍯
@blackheigt8
@blackheigt8 2 жыл бұрын
line 47, in real_time_price one_year_target = texts[count+1] IndexError: list index out of range
@blackheigt8
@blackheigt8 2 жыл бұрын
Protected Attributes(
Turning multiple CSV files into a single pandas data frame
8:09
Python and Pandas with Reuven Lerner
Рет қаралды 31 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 4,2 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Introduction to Python for Finance
25:27
Richard Moglen
Рет қаралды 201 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 107 МЛН
Automated Support and Resistance Detection in PYTHON
19:25
CodeTrading
Рет қаралды 65 М.
Build A Stock Prediction Web App In Python
25:19
Patrick Loeber
Рет қаралды 200 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49