Live stock data
Foster_Bryant (65)

The data is basically live but it might be slightly delayed. Give feedback and/or suggestions please :)

NOTE: When entering the ticker don't put NASDAQ or anything like only the ticker. For example: AMD

You are viewing a single comment. View All
[deleted]

Really unclean code. I'm pretty sure yahoo finance should have an api...

Foster_Bryant (65)

@sanjaykdragon Yes but this is a way to do it completely for free lol

Foster_Bryant (65)

@sanjaykdragon Thanks for the feedback. How can I make this more clean?

[deleted]

@Foster_Bryant name the variables properly, actually use variables (wtf is [:19])

Foster_Bryant (65)

@sanjaykdragon :19 is just cutting off everything that is before the 19th index

Andi_Chin (22)

@sanjaykdragon lol stop trying to educate people when you don't even know anything.

[deleted]

@Andi_Chin from your post history and public repls, I can see you are probably in middle school. No need to flame someone with superior knowledge, just accept defeat and learn to better yourself.

MatthewDoan1 (234)

@sanjaykdragon

(wtf is [:19])

That's a pretty simple concept in Python, but you didn't know of it. I suppose this would make @Andi_Chin want to tell you to stop.

Foster_Bryant (65)

@MatthewDoan1 Hi there. Please tell me how to use polygott lol I want to use data from this python file to use on a simple html site

[deleted]

@MatthewDoan1 I know what it does, I mean why does he do it? Why does he skip the first 18 indexes? I can't tell from his code.

Foster_Bryant (65)

@sanjaykdragon I changed it to a better way but at first it was cus I was didn't want it to show miliseconds because it was really unneeded and up to the first 18 to 19 indexes was only the time up to seconds. Sorry for the confusion.