Skip to content
← Back to Community
Stock Market Visualizer
Profile icon
Roar123

Stock Market Visualizer

Hi everyone, I'm proud to present Stock Market Visualizer, the best way to view stock/ETF statistics from the comfort of the Python terminal. Search by ticker with live dropdown results and view detailed graphs with information. This was a very cool project to make as it combined my interests in stocks/investing and programming. It was also pretty mathematically challenging to create the graphs.

Note: The YFinance library has large dependencies like pandas so use the terminal which is next to the code editor (40s package installation), not the full page view (1 min 10s package installation).

How to use

Let's say you want to see statistics for an Apple share. Start by typing apple. Then use the dropdown results to figure out the stock ticker - in this case AAPL. After typing the ticker, a graph will pop up with information below. Here's an explanation to help you better understand the information:

  • Ticker: Unique series of letters assigned to security for trading purposes
  • Name: Name of company or security
  • Sector: Sections of an industry or the overall economy
  • Market Cap: Total value of all shares
  • Regular Market Volume: Total number of security traded over a period of time (usually one day)
  • 200 Day Average: Average share price over 200 days
  • 50 Day Average: Average share price over 50 days
  • P/E Ratio: Price to Earning - Share price to earnings per share
  • Trailing P/E: P/E based off last 12 months
  • Forward P/E: P/E based off of projected 12 months

Screenshot 2020-06-24 at 1.02.40 PM

Future Ideas:

  • Allow users to pick their chart view
  • Include other securities/financial instruments like crypto and mutual funds

Planned Improvements:

  • Candlestick view option for graph [completed here but still in beta]
  • More stock metrics

Completed Improvements:

  • Graph x-axis now shows start and end dates

Stock Market Visualizer: https://repl.it/@Roar123/Stock-Market
Stock Market Data: https://repl.it/@Roar123/Stock-Market-Data
Stock Market Development (see new features before they're added): https://repl.it/@Roar123/Stock-Market-Dev

Thanks for checking this out!
Also if you have any suggestions for stock metrics to include, tell me in the comments!

Voters
Profile icon
BraxtonElliott
Profile icon
nitinvdubey89
Profile icon
darminT
Profile icon
SavoRodrigues
Profile icon
pythonorguser
Profile icon
E-Sheep
Profile icon
LOLLIPOP06
Profile icon
connorstott
Profile icon
CodingGoose
Profile icon
HenryZelonka1
Comments
hotnewtop
Profile icon
SixBeeps

I'm impressed with how well done this is! One of the best Repls I've seen in a while.
image

Profile icon
Roar123

@SixBeeps Thanks a lot!

Profile icon
HahaYes

This is awesome. I studied the stock market this year, and this is literally exactly what we had to do.

Profile icon
Scoder12

Awesome! One suggestion, instead of this:

try: si.insert(1, f"Name: {stock_info['shortName']}") except: si.insert(1, f"Name: {ticker_data[ticker.upper()]}")

you could do this:

name = stock_info.get('shortName', ticker_data[ticker.upper()]) si.insert(1, f"Name: {name}")

similarly for all of the try/except statements.

Profile icon
Roar123

@Scoder12 Thanks, this is really helpful!

Profile icon
MrEconomical

nice

Profile icon
rafrafraf

this is dope bro

Profile icon
AtticusKuhn

Graphing in the terminal is quite cool.

Profile icon
Roar123

@AtticusKuhn Totally agree!

Profile icon
BlueComet

I love all the information you give the user. Also the formatting of all the information is very easy to understand

Profile icon
drexelhub

This could be the future for investment. I have worked with your app before, and it is really very handy and easy to use. Recently pennystocks.today wrote about it on their blog, I saw it there, and when I found this thread, I felt lucky to say thank you. I've been investing in gold for years, and keeping all the stocks in one app was difficult for me before, but I'm glad that now I can see all the stocks here and on pennystocks. Thank you! Keep working, bro

Profile icon
Sigint

Is it working? Can you tell us how you set the algorithms to work? I heard about such visualizers, but I never saw one in action. It looks exciting. My friend works for https://thefrugalexpat.com/vtsax-vs-fzrox-who-is-the-best/, and he told me that they use such visualizers to predict the market direction. Traders use it as a technical analysis method. I don't know if it is true, but it looks impressive.

Profile icon
ridoskon

The example of Apple stock is not a good one. I have a separate app for that and there is an expense line. In reality, it is much more complicated in terms of understanding their strategy. I used to ask forex brokers in india https://fbs.com/ to explain to me the difference in trading on different platforms. I would say after all these years that there is a big difference in conversion principles and algorithms. That's what prevents you from making money, even if you are a specialist and have special education. Independent brokers help in this regard, but you have to get their support to understand the whole point of apple stocks.

Profile icon
Jurlilane

Stock trading has evolved from being just a way to profit in the commodity market to a method of actively participating in economic activity as an investor. This has led to an increase in the number of people who trade stocks as a part of their livelihood and contribute to their overall wealth. Try to determine your factors for trading stocks - time, finances, location, etc., foundation. You can read these https://daytradereview.com/category/chat-room-reviews/ to be sure that you will choose a good one. In this way, I get more informed about stock tradings.

Profile icon
SavoRodrigues

wow! mate this is some awesome stuff. Keep it up.

Profile icon
Gaganjit1234

Astonishing work, haven't seen anything like this until now.

Profile icon
KellerWorthen

Very impressive!

Profile icon
BookReviews

really amazing

Profile icon
HahaYes

Whoa... this is way too good

Profile icon
SuperSonicHub1

Hey man, I want to make use of some of your code, specifically your search function in an API wrapper I'm making! Are you cool with that?

Profile icon
Roar123

@SuperSonicHub1 Sure but just remember to cite Roar123 as the original author.

Profile icon
SuperSonicHub1

@Roar123 Already did that!

Profile icon
Roar123
Profile icon
adamseider2009

Is this real?

Profile icon
Roar123

@adamseider2009 Yep it's real up to date info about stocks and etfs.

Profile icon
adamseider2009

@Roar123 mind is no more

Profile icon
MichaelHampton2

this is so awesome bro im really impressed well done!! :)

Profile icon
studentAlfredAl

Wow. Just... wow

Profile icon
Lucasl009

@Roar123 you should make links to articles about the stock. If you can.

Profile icon
Lucasl009

Bro this is awesome

Profile icon
EDKTHEPRO

Pretty cool! I haven't seen anything like this...so far...

Profile icon
kingretracted

very nice, upvote.

Profile icon
UmeAhmed

wow!

Profile icon
SabyaThakur

BEST REPL I HAVE EVER SEEN BRO,WISHING U A LUCK:)

Profile icon
The6thGrade6th

This is amazing! How did you do the searching?

Profile icon
DynamicSquid

STONKS

no seriously this is dope

Profile icon
coderash

This is awesome dude!

Profile icon
SahilShah8

Great program! I hope you can add more and more beneficial features to this! I personally found this initial code to be very supportive!