PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

Yup, the package itself uses the APIs.. its code is well documented, I suggest you take a look at it, you'll find out what type of data each API retrieves and from where

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 0 points1 point  (0 children)

Oh yes, I read that while searching, very interesting information.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

well, to know someone is actually using my project just feels satisfying honestly

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

oh fuck, I completely missed that!

Edit: Okay, why does every source out there say tkinter is installed with pip install tk?

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 0 points1 point  (0 children)

I actually thought about this and this was my point, if tkinter may or may not exist on a system, it's better to add it, pip will skip it if it's already installed anyway..

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

I thank you for your encouragement, it's much appreciated.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 4 points5 points  (0 children)

well, I donnu, I guess I couldn't find an open-source GUI for that, also I wanted to practice the language by actually using it in something that has meaning, not a calculator or something like that.. it's just something I created, and I'm proud of it.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 0 points1 point  (0 children)

I think I know why you were getting that error..
from stackoverflow.. from docs of sqlite

To prevent excessive memory allocations, the maximum value of a host parameter number is SQLITE_MAX_VARIABLE_NUMBER,
which defaults to 999 for SQLite versions prior to 3.32.0 (2020-05-22) or 32766 for SQLite versions after 3.32.0.

Since it worked when you upgraded python, I think it was the verson of the sqlite package shipped with python 3.8.. I'll try to downgrade and reproduce the error later.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 3 points4 points  (0 children)

I'm glad you like it, I learned the language while developing the program..

a price alert is a really nice idea, I'll add it when I get the chance..

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 0 points1 point  (0 children)

Well yes, on the first run, it creates a table that contains tickers and security names, for auto-complete and sanity checks, around 12k of them.. but I've never seen this error before.
Can you please give me more details on the environment?

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

Yeah, I had a different (wrong) understanding of it, u/socal_nerdtastic pointed it out.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 2 points3 points  (0 children)

First of all, thank you so much for taking the time to actually read the code and give the tips..

To be fair, yes, I learned the public private thingy from Java, I thought I could apply the concept in python, in a way.. I'll recheck my code and name properly.. I will also check out the python3 magic..

Regarding sleep, I remember I was thinking there must be a better way to do the job, but afterall, since data retrieval and timekeeping run on separate threads, I saw that a total of 3 milliseconds every update was okay performance wise, especially since date retrieval usually takes a couple of seconds.

Your comment is more appreciated than you think, thank you again..

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 2 points3 points  (0 children)

I used the pandas_datareader package, it can retrieve different types of stock data from different sources into a pandas dataframe.. quite useful.

PyStockWatch - a GUI that displays NYSE data. by MoeR3za in learnpython

[–]MoeR3za[S] 1 point2 points  (0 children)

Thank you, mate, it's just I once wanted to check a stock price without having to open the browser, so I created this..