No video

Real Time Stock Market Data Analysis with Python - Five Minute Python Scripts

  Рет қаралды 184,434

Derrick Sherrill

Derrick Sherrill

Күн бұрын

Пікірлер: 263
@olukunleakinola7133
@olukunleakinola7133 4 жыл бұрын
Dude. How come I'm just finding this page? You're a freaking good teacher!! You deserve 7.bn subscribers
@amitbuch
@amitbuch 4 жыл бұрын
Perfect fast paced jam packed session. Love it.
@NAVI05
@NAVI05 3 жыл бұрын
A great developer is someone who types the code as he speaks about its use. Great tutorial!
@sz8558
@sz8558 3 жыл бұрын
Mate you put a news caster to shame with how quickly and fluidly you presented your video...tip of the cap!
@gusthomas6872
@gusthomas6872 4 жыл бұрын
Another tutorial was using quandl for their data and I realized it was deprecated as an API (apparently only historical now) Found alphavantage but was doing direct https requests for their data, didn’t realize they had an API. Thanks a bunch!!!
@deanemarks8611
@deanemarks8611 2 жыл бұрын
Bro. I've been trying to figure this out for a year and you did it in under 5 mins. You're ok in my book.
@moodie9114
@moodie9114 3 жыл бұрын
This 5 min videos is pure gold. Even if u can’t code I hope this inspires u tp
@cidfidchris
@cidfidchris 5 жыл бұрын
Thanks Derrick.. You deserve more subscribers!!! I love the way if you are showing useful and concrete example... really well explained... Thank you
@domephotography9244
@domephotography9244 3 жыл бұрын
2 years later still relevant. Thanks!
@ricksmith5234
@ricksmith5234 5 жыл бұрын
Nice, you may want to create an SMS alert function for it too
@danieldeilgat7558
@danieldeilgat7558 4 жыл бұрын
Derrick, you give KZbin a good name...
@ajaykumar-ih4nj
@ajaykumar-ih4nj 5 жыл бұрын
bro make a video on live stock market prediction
@TheGiantHog
@TheGiantHog 4 жыл бұрын
This was awesome! Helping my build my resume during quarantine!
@Rajkhandelwal143
@Rajkhandelwal143 4 жыл бұрын
The way to keep it simple makes you unique and best.
@vinitmanerikar5444
@vinitmanerikar5444 5 жыл бұрын
Bro I am watching your every video.. u are going really awesome...and I am trying to encourage u in every possible way.
@CodeWithDerrick
@CodeWithDerrick 5 жыл бұрын
Thanks so much for your kind words!! I appreciate it 😃
@LondonSingh
@LondonSingh 4 жыл бұрын
Mate you are the best trainer I ever seen
@robschn
@robschn 4 жыл бұрын
Awesome video! You can use these commands so you don't have to type "python3" all the time: alias python='python3' alias pip='pip3'
@shaynegoldstein1329
@shaynegoldstein1329 3 жыл бұрын
can you help me figure out why when I type python3 stocks.py in the terminal it just says "python was not found; run without arguments to install from the Microsoft store, ..."
@redred582
@redred582 4 жыл бұрын
i like the way u explain.. pretty straightforward and to the point. 🙌🙌
@gravitycuda
@gravitycuda 4 жыл бұрын
Just what I need, very concise. Thank you Derrick :)
@123banihani
@123banihani 3 жыл бұрын
We need more videos like this, please its really helpful
@TylerRattray
@TylerRattray 4 жыл бұрын
Thank you it was very helpful as I’m trying to create an ai that works with real time data. You have definitely got me as a sub 😀.
@chinmayakumarbehera4754
@chinmayakumarbehera4754 3 жыл бұрын
Hey man, I am also interested in the same thing. Let's talk.
@nabanwrites
@nabanwrites 3 жыл бұрын
Were u able to do it?
@Prash358
@Prash358 3 жыл бұрын
A perfect example. pure knowledge video.
@cameronlucas6004
@cameronlucas6004 4 жыл бұрын
Hey, I am on PyCharm, a total noob. I am trying to install like you did in the beginning, and i am getting an error that says "Could not find version that satisfies the requirement alpha". Is there a way to fix this or am I doing it wrong?
@shankyxyz
@shankyxyz 4 жыл бұрын
hi, any ideas on making a real time stock scanner using python? I am still new to this stuff but learning rapidly.
@johncollier6168
@johncollier6168 3 жыл бұрын
Derrick, awesome tutorial- what change to the code would you need in order to add a list of stocks vs a single stock? Could you create a list of ticker symbols and then swap out MSFT for the list or would you need to change the syntax from '='?
@ilias5185
@ilias5185 3 жыл бұрын
Try passing an array instead of a single arg
@mazinsalim2010
@mazinsalim2010 3 жыл бұрын
you are a wonderful teacher... i just subscribed
@TR123
@TR123 3 жыл бұрын
This video is amazing! So concise and tells you everything you need to get started.
@alexandermaier9516
@alexandermaier9516 3 жыл бұрын
Your videos are great! Good job. Please, keep doing it! Thanks!
@gangsterholla179
@gangsterholla179 5 жыл бұрын
Why while I==1 and not while true?
@georgemavimbela
@georgemavimbela 4 жыл бұрын
im so glad i found your channel.
@paulm9800
@paulm9800 2 жыл бұрын
I have a suggestion on something I think would be easy for you. Basic Finviz scanner analysis..can tell you the parameters if you want to hear more?
@rayechan7918
@rayechan7918 2 жыл бұрын
Hi Derrick Sherrill, thanks for the nice video! By the way, do you know where to get the buying/selling/neutral volume data for a stock's prices?
@1xxxtylerxxx1
@1xxxtylerxxx1 4 жыл бұрын
Straight to the point, very nice.
@PaulSmith-rp2mw
@PaulSmith-rp2mw 4 жыл бұрын
Great video man. Keep it up. Can you show a script how to find price vs volume data (not high low open close) so one can better understand how far the stock will go today.
@vanderm1000
@vanderm1000 5 жыл бұрын
Thanks for the Video Derrick. Really well-explained.
@RestartUPSC2026
@RestartUPSC2026 2 жыл бұрын
Bro! You just saved lots of my time. You are great!! Thank you very much 👍😇
@turgutbababalm9981
@turgutbababalm9981 4 жыл бұрын
thanks for the video man! great job but i have 1 question to ask: i did this and learned to use alpha cantage but it shows data from 2 days ago, how could i change this?
@timon7787
@timon7787 4 жыл бұрын
I have the same problem :(
@KrisS-nh8lr
@KrisS-nh8lr 4 жыл бұрын
Same problem I need the data from a specific date
@jonniejlo
@jonniejlo 3 жыл бұрын
Nice one! You have a great way of explaining information. Subscribing!
@robertcliffort2354
@robertcliffort2354 2 жыл бұрын
It is great Derrick love it so much.
@mattwarrensocal
@mattwarrensocal 3 жыл бұрын
Great stuff. Really dislike most alert services.
@NeetaYatender
@NeetaYatender 5 жыл бұрын
Lot lot more thanks I don't have words to appreciate ur hard work Nd really ur such a helpful person, Once again thanks a lot Keep it up brother 😃😃🤣😃😃😃😃😃😃
@CodeWithDerrick
@CodeWithDerrick 5 жыл бұрын
Thanks so much for the kind words!! 😃
@gabrielbriones726
@gabrielbriones726 5 жыл бұрын
Your videos are saving me so much time at work! Is there any way you could give some guidance on writing a script that deletes duplicates within an Excel file based on column criteria (like user ID) and then splits the file into 3 even parts (33% of the rows in one file, 33% of the rows in another file, 33% of the rows in another file)?
@CodeWithDerrick
@CodeWithDerrick 5 жыл бұрын
Glad to help! I'm happy to make a video on it - Seems like something a lot of people would like! My initial thought is to use df.drop_duplicates and then select the data using iloc[]. so like df1 = iloc[1:len(df['Series'])/3:1] df2 = iloc[len(df['Series']/3: 2*len(df['Series']/3)] etc. etc.But I'll dive into it! :)
@feyitrading589
@feyitrading589 5 жыл бұрын
hey thanks for the video, any clues on how to add more sheets into the excel file? For example first hit is on MSFT and it should create a sheet named MSFT, next scan should be for AAPL and get a new sheet named AAPL without deleting the older one of MSFT. Or get data of multiple stocks at once Hope my question is semi understandable lol Thanks
@memy4460
@memy4460 2 жыл бұрын
For me it only prints a couple of rows. Do you guys have any idea why? At the bottom of the print it says [723 rows x 5 columns] but I only see 10 rows and ... inbetween.
@jehxoldhc
@jehxoldhc 3 жыл бұрын
Hey man thaks a lot for your work! What do you mean "I usually would'nt create infinite while loop ". Think a got it from risks like high usage resources, but what else do you have in mind? Thanks and happy new year Derrick!!
@CodeWithDerrick
@CodeWithDerrick 3 жыл бұрын
Thanks for the kind words! In most situations I stray away from using them because you have to keep monitoring the code, but the cool part of scripts like these is the automation aspect. Not much automation if you have to manually start/stop so just less fun lol
@metinfehmi9379
@metinfehmi9379 3 жыл бұрын
subscribed! awesome job mate.
@enerluffy
@enerluffy 4 жыл бұрын
Hi, how would you do something similar but also use machine learning to try get a prediction?
@CodeWithDerrick
@CodeWithDerrick 4 жыл бұрын
Super tough question that if you knew the answer you could take over the world, haha. You "can" do predictions on time series data using tensorflow & python. The struggle is just knowing what to train a machine learning algorithm on to predict stock prices with. The more random a system is the harder it is for a ML algorithm to find a pattern, and thus make accurate predictions. So many variables: domestic politics, foreign politics, company earnings, public opinion, tax rates, unemployment rate, etc. play a role that stocks get so close to random, & hard to have completely accurate data, and so on. However, data analysis on previous and current trends are a viable strategy to making $$$ using python and the stock market, one strategy is trading on simple moving averages, kzbin.info/www/bejne/gHuyapmBn5iSq5Y
@enerluffy
@enerluffy 4 жыл бұрын
Derrick Sherrill Thank you so much for the reply! I’m still a beginner when it comes to machine learning but your videos seem to be resourceful and the way you deliver your explanations are concise and straight to the point! I’m gonna watch the video you linked and try and see what I can do as I was thinking to make something along the lines of a stock prediction program using previous trends for my final year project. Thank you so much again!
@rverm1000
@rverm1000 4 жыл бұрын
can you do a video using yfinance. getting moving averages,vwap,volume ,price and other technical indicators .?
@yuikozhang5650
@yuikozhang5650 Жыл бұрын
Amazing Video! Thank you!
@ashleyadrias
@ashleyadrias 5 жыл бұрын
Very helpful video!
@bobthebuilder9416
@bobthebuilder9416 2 жыл бұрын
Can someone explain to me how i can verify whether or not the api package would be able to hide maleware as "this api wants to read your other api, in order to help communicate with it" it says to the computer, when in reality, it's communicating with it, but then it's sending your python back to the free api's host server?
@MrLeadVideo
@MrLeadVideo 5 жыл бұрын
getting error : TypeError: can only concatenate str (not "numpy.float64") to str on if abs(last_change) > 0.00001: print("MSFT Alert:" + last_change) Please advise
@CodeWithDerrick
@CodeWithDerrick 5 жыл бұрын
My bad on that one! You can change the last_change variable to the same dtype, so str(last_change) or just print on two separate print()’s
@dishonmwabashfano3627
@dishonmwabashfano3627 3 жыл бұрын
Great job man. Thanks a lot...
@InnanetSlatt
@InnanetSlatt 3 жыл бұрын
I'm only getting data up to the day before. How do I get live data like you seem to be in the video?
@ForeveTime
@ForeveTime 3 жыл бұрын
I have the same problem too. Help
@georgemavimbela
@georgemavimbela 4 жыл бұрын
very nice.. im sure soon u will making more vids on python trading crypto like bitcoin and ethereum
@lzra8111
@lzra8111 3 жыл бұрын
i did exactly what you described in the video but it doesnt work. do i need to install anything before i run the script? i have the api key and everything but it yields "cant open file. no such file or directory". saved it as "stocks.py" in a folder but doesnt work .
@cookwithshraddhatambe591
@cookwithshraddhatambe591 3 жыл бұрын
i uses this code period = 60 ti = TechIndicators(key = api_key, output_format= 'pandas') data_ti,meta_data_ti = ti.get_rsi(symbol='MSFT', interval = '10min', time_period = period, series_type='close') and i am getting and error : Error getting data from the api, no return was given. Can you explain the reason and provide solution?
@antianti4331
@antianti4331 3 жыл бұрын
It doesn't work at all. It just returns the data for previous days, but zero information about today's quotes. I have copied your algorithm from github and got this result. Can you give an advice about what to do in this situation?
@coldloost
@coldloost 5 жыл бұрын
I like your pedagogy (y) Good Job !!
@michaelstreck0925
@michaelstreck0925 4 жыл бұрын
Thank you for creating this video! How can I access a discrete data value (such as the price for a particular date/time)? Do I need to parse the output or can it be accessed directly? I'm pretty new to Python and Panda. Thank you!
@allwedoistwin
@allwedoistwin 2 жыл бұрын
Thank you!
@userme2803
@userme2803 4 жыл бұрын
Hi I open Python IDLE and typed this >> pip3 install alpha_vantage but i got error message what I am doing wrong? I am very new in python
@HustleHindi
@HustleHindi 3 жыл бұрын
Hi Derrick, Is it possible for you to make a similar project from yfinance for a series of stocks.
@rudolfhans9106
@rudolfhans9106 4 жыл бұрын
Thanks great Video. I am just wondering why for the stock of TSE:TD i get the live data, but for example for TSLA or MSFT i only get the data till yestday ?
@toshiokada2777
@toshiokada2777 4 жыл бұрын
hey there! which editor are you using? new to this, so i'd like to correlate with yours
@mattkan2876
@mattkan2876 4 жыл бұрын
Hello, may I ask how we can output the stock price data within a day or a week or a month ? Thank you !
@revenge9431
@revenge9431 4 жыл бұрын
is there a way to not only print(data) but also use include the ticker name? I am doing this for multiple symbols and I am not able to print out and into csv. the symbol name. am i missing something? please provide script is possible thank you
@secretpanda0072
@secretpanda0072 4 жыл бұрын
after watching your video on technical indicators plotting as well, would it be possible to chart this real time data along with the indicators to run all day?
@Xardas_
@Xardas_ 4 жыл бұрын
Droping bombs of knowledge thx man
@samarpratapsingh9788
@samarpratapsingh9788 4 жыл бұрын
the data provided by alpha vantage is of a day before, its not real-time
@mohitmanghnani5475
@mohitmanghnani5475 4 жыл бұрын
I couldn't see the output file while using this can you please help me out it is showing me jupyter notebook is not utf-8 encoded saving disabled
@shindersamra4020
@shindersamra4020 4 жыл бұрын
Sir you are brilliant. Well said.
@mustaphamust1100
@mustaphamust1100 4 жыл бұрын
it’s a good channel thank you just one question please : when i import data from excel to do a graphic with datetime 64 (hourly)type it’s not work i should modify this column by a series of 1-2 3 and so on please if you have a solution thanks
@handlethis213
@handlethis213 3 жыл бұрын
Can you do an example of how to access option chain data? I would like also to be able to display IV rank. Thanks!
@SolidBuildersInc
@SolidBuildersInc 2 жыл бұрын
Hey Derrick, Great video..... Do you have any videos that actually do different type of market orders with this library ? I use Tradingview and would like to not have to use the Webhooks version to execute a Trade on Oanda... Any feedback is appreciated... Kudos
@quintonballenden1436
@quintonballenden1436 4 жыл бұрын
Hi Derrick, I have copied exactly what you have done and I am receiving an error "No name timeseries in module alpha_vantage". I am using VS Code and Python both the latest versions. The system path is correct and working properly. I have tried importing sys and writing the sys.path.append(exact location of timeseries.py) but one of the VS extensions keeps formatting on save so that it appears at the bottom of the import libraries section. The only other way is copy timeseries.py into the project folder. Do you know of anyway to correct this?
@rajugowdadk2045
@rajugowdadk2045 Жыл бұрын
You are really great.. Can we views multiple stocks at the same time
@gulomjonvosiyev4178
@gulomjonvosiyev4178 2 жыл бұрын
Great explanation! Very clear and accurate! Can you help with downloading european stock market data as well? For example SAP is available both in US and EU market. But alpha vantage recognizes only US. Any suggestions??
@santoshsahoo227
@santoshsahoo227 3 жыл бұрын
instead of MSFT symbol data if I want TCS symbol data in exchange BSE of india how will be the syntax
@nitikasharma8269
@nitikasharma8269 2 жыл бұрын
Hey Derrick , thank you so much for this informative video. I just have one doubt when I tried to run code of while loop which converts the information into excel, then my jupyter notebook didn't complete running the code. I waited for 45 mins to run the code but it showed that it's still running. I have good gaming laptop and I can run complex ml algorithm also. I wrote everything exactly. I don't know what's happening. Can you please help me out? Thank you so much.
@Zzznmop
@Zzznmop 5 жыл бұрын
Awesome video! Have you ever used alpaca api?
@CodeWithDerrick
@CodeWithDerrick 5 жыл бұрын
Thanks! No I’ve never tried it but it looks interesting to use!
@Ali-ho9xl
@Ali-ho9xl 4 жыл бұрын
Hi Derrick, How is it possible to make an analysis on Python and then automate the resulting execution on Robinhood? I want Python to assess the volatility of a particular stock market or Forex and then send commands to an exchange platform to initiate the purchase or short-sell. Thank you
@joshuahulett6804
@joshuahulett6804 4 жыл бұрын
Does this not pull the current days stock trades? its the 14th of august and it stops at 13th.
@Chris-vq7li
@Chris-vq7li 4 жыл бұрын
Is there a way to pull up intraday real time news articles about specific stocks and create alerts for these stocks?
@anthonysottile8432
@anthonysottile8432 4 жыл бұрын
My code is not copying to excel. I have pandas imported so I don't know what the issue is.
@ziinx5899
@ziinx5899 3 жыл бұрын
Hmm, my numbers dont seem to be updating in real time. It will wait a minute to "update" but its still the same numbers
@yyymanify
@yyymanify 4 жыл бұрын
Hi Derrick, thanks for your sharing! Btw, I cannot get the real time data after market open. Do you know what is happening?
@dennistran7118
@dennistran7118 3 жыл бұрын
Hi Everyone, is their any recommendation to get a beginners guide to understanding on how to use Python. I want to create a custom data stock tracker. Not just the High, Lows, Open and Close Prices. For Example, I want to find the percentage from OPEN price to High of day Price, or finding the percentage from previous day close to current day high. I'm currently inputting all of these manually, and I'd figured if I learned to code, it would cut my data tracking in half. Thank You
@sharkman__adventures773
@sharkman__adventures773 4 жыл бұрын
Hello, are you able to use this script to track previous stock prices by the minute. For example, say I want to see the price of Apple minute by minute on April 5th. Is that possible? Thanks
@nicolasblangino6272
@nicolasblangino6272 3 жыл бұрын
Congrats fella for you video, good stuff !! so how I can get another ticker of stocks? where I find this tickers?? I would like to find out the ticker of SP&500 and Dax Xetra30 , I was prooving with the ticker of yahoo finace but it didnét work !! and what do you think about in create an ARIMA model in 5 minutes charts to predict next 10 0 15 candles??? do you see profitable ?? many thanks buddy !
@AttilioPitt
@AttilioPitt 4 жыл бұрын
awesome video! but what about to change the date of the dataset and get more data? thx
@antoniodejesuscamposrodrig5250
@antoniodejesuscamposrodrig5250 4 жыл бұрын
This worked fine for a while but now I can't get real time prices, just prices from previous day at most, any idea on why this happened?
@Dario_Kart
@Dario_Kart 4 жыл бұрын
i installed alpha_vantage but always get the error unable to import alpha_vantage.timeseries... using vs code, but works for Spyder! can anyone help?
@barbann5091
@barbann5091 3 жыл бұрын
Could you show the correct way to install this in Anaconda. I'm a beginner with Python, just learning.
@tradingenthusiast2178
@tradingenthusiast2178 4 жыл бұрын
ModuleNotFoundError: No module named 'alpha_vantage.timeseries'; 'alpha_vantage' is not a package. I get this error when running can you please suggest
@__psin
@__psin 4 жыл бұрын
I also have the same error, and I don't know how to fix even after searching it up
@rodrigocerna5756
@rodrigocerna5756 3 жыл бұрын
Nice tutorial Derrick. I was running the script today and the last price that I obtained is from october 27th. Why is happening this?
@ManuelRivera-tz1mb
@ManuelRivera-tz1mb 4 жыл бұрын
Hi Dereck I would like to automatize my excel worksheet that tracks stocks information that I analyze to support my trading strategy. This video was really helpful to get the connection to real time data. I have a lot of work to do to define my parameters.
@synoh9178
@synoh9178 2 жыл бұрын
Goat
@varshapatil7864
@varshapatil7864 2 жыл бұрын
how to fetch historical data for last 6 months using alpha vantage??
@theshodiyor89
@theshodiyor89 4 жыл бұрын
Hi Derrick, I want to write stock market strategies like you, I have just started learn python. Should I learn pandas too ?
Replace Excel Vlookup with Python - Five Minute Python Scripts
6:33
Derrick Sherrill
Рет қаралды 228 М.
I Analyzed My Finance With Local LLMs
17:51
Thu Vu data analytics
Рет қаралды 469 М.
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 5 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 45 МЛН
Transition Plans: A Guide to Using Them Effectively in the Oil & Gas Sector
54:11
Exploratory Data Analysis with Pandas Python
40:22
Rob Mulla
Рет қаралды 461 М.
Predicting Stock Prices with FBProphet in Python
21:26
NeuralNine
Рет қаралды 30 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 282 М.
What is Algorithmic Trading & How to Get Started
15:56
TradeOptionsWithMe
Рет қаралды 544 М.
How to get Real Time Indian Stock market data in Python for Free [2024 API]🟢
13:34
Financial Programming with Ritvik, CFA
Рет қаралды 33 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 398 М.
Automated Price Break Out Detection: Algorithmic Trading In Python
16:34
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 552 М.
Solving real world data science tasks with Python Pandas!
1:26:07
Keith Galli
Рет қаралды 1,5 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН