Share your repls and programming experiences

← Back to all posts
Stock Market Visualizer
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

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
nitinvdubey89
darminT
SavoRodrigues
pythonorguser
YuAndy
LOLLIPOP06
connorstott
CodingGoose
HenryZelonka1
TsvetanAleksiev
Comments
hotnewtop
SixBeeps

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

Roar123

@SixBeeps Thanks a lot!

HahaYes

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

MrEconomical

nice

Scoder12

Awesome! One suggestion, instead of this:

you could do this:

similarly for all of the try/except statements.

Roar123

@Scoder12 Thanks, this is really helpful!

rafrafraf

this is dope bro

AtticusKuhn

Graphing in the terminal is quite cool.

Roar123

@AtticusKuhn Totally agree!

BlueComet

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

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.

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.

SavoRodrigues

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

Gaganjit1234

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

KellerWorthen

Very impressive!

BookReviews

really amazing

HahaYes

Whoa... this is way too good

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?

Roar123

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

SuperSonicHub1

@Roar123 Already did that!

Roar123
adamseider2009

Is this real?

Roar123

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

adamseider2009

@Roar123 mind is no more

MichaelHampton2

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

studentAlfredAl

Wow. Just... wow

Lucasl009

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

Lucasl009

Bro this is awesome

EDKTHEPRO

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

kingretracted

very nice, upvote.

UmeAhmed

wow!

SabyaThakur

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

The6thGrade6th

This is amazing! How did you do the searching?

DynamicSquid

STONKS

no seriously this is dope

coderash

This is awesome dude!

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!

HahaYes

This deserves so many more likes

AndrewZhao1

first on trending!