pstadler / ticker.sh

Real-time stock tickers from the command-line.
MIT License
511 stars 87 forks source link

endpoint/logic adjustment - back in working state #46

Closed appatalks closed 8 months ago

appatalks commented 1 year ago

I had changed quite a bit during a :cloud_with_lightning_and_rain: night. Very :sleepy: but wanted to get something out working just for fun :penguin:

I really love the original code so I tried to get it to match as best as I can in terms of feel. Likely :bug: :cricket: :fly: here and there, and better ways to do this :sweat_smile:

Screenshot from 2023-08-13 21-09-34

appatalks commented 1 year ago

Oh I should note, I didn't test during market hours yet. Not certain if I have the right field for the change of price and %. *Edit - Looking to be working during market hours :D

*Edit - I wanted to also note, this version maybe way slower than the original code. I found when I call the chart endpoint, it appears to be also pulling historical metrics? But I am only grabbing regularMarketPrice & chartPreviousClose which may not be exactly what we want. (My coding abilities are just hobbyist level 🐧)

pcause commented 1 year ago

can you add support for NOCOLOR

TimoFrancke-cnic commented 11 months ago

@appatalks can you add some detection for python vs python3? I tried running this on MacOS and I had to change lines 57 and 58 to "python3". Alternatively, use just bash Printf for the formatting?

appatalks commented 11 months ago

@TimoFrancke-cnic I'll see what I can do, please allow me a few days to play with it :)

lm2lm2 commented 9 months ago

hello is it possible to make it work back? :)

pstadler commented 8 months ago

Please see https://github.com/pstadler/ticker.sh/issues/45#issuecomment-1801809146