tarkah / tickrs

Realtime ticker data in your terminal 📈
MIT License
1.16k stars 58 forks source link

unable to show graphics #145

Closed jbrodriguez closed 11 months ago

jbrodriguez commented 11 months ago

looks like yahoo finance is not working, im getting an animation of progressive dots

Screenshot 2023-07-17 at 14 32 42

any thoughts ?

brihuang99 commented 11 months ago

Running into the same issue here. I can still see the Volume and Options charts on my end though

EDIT: i'm also not running into any error states. it just shows the animation of the dots indefinitely

sid-the-sloth commented 11 months ago

Me too, getting progress dots... no data coming in. Maybe yahoo is blocking these.

Suggest using a free API such as: twelve-data1.p.rapidapi.com which allows every user to provide their own API key (on linux systems RAPIDAPIKEY is obtained from user ~./bashrc).

JacquardCauseway commented 11 months ago

Thought it was just me, also getting this issue.

Esfo commented 11 months ago

same

SigmaticThar commented 11 months ago

Same problem for me. kmymoney stopped updating from yahoo and the new URL that works is https://query1.finance.yahoo.com/v8/finance/chart/%1 If I could manage to compile this without having to go through dependency hell I would get in there and try to fix this.

SigmaticThar commented 11 months ago

BTW the only thing that would need to change in the code is likely V7 to V8

JacquardCauseway commented 11 months ago

Tried to change it and compile locally as well, likewise ran into dependency hell. :(

tarkah commented 11 months ago

Hey all, I just did a quick check and it appears to be the https://query1.finance.yahoo.com/v10/finance/quoteSummary/SPY endpoint which is failing. I use this to get company profile info & current price info. I already use v8 for chart endpoint, I've confirmed that works.

I'm getting {"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Cookie"}}} on the v10/finance/quoteSummary endpoint. Does anyone know an alternative endpoint to get this information?

tarkah commented 11 months ago

This has been fixed in https://github.com/tarkah/tickrs/pull/146

The quotes endpoints now require a cookie & crumb value to work. I'll cut a release soon.

SigmaticThar commented 11 months ago

This has been fixed in #146

The quotes endpoints now require a cookie & crumb value to work. I'll cut a release soon.

Thanks for getting this fixed! I can also confirm it's now working in Arch after update pacman -Syu

jbrodriguez commented 11 months ago

it's still not working for me, 0.14.9 :(

i remember a couple of weeks ago there was an issue with the yahoo enpoints and the country where the request was made from, for example, those in the EU had a different signature (or something like that) that those in the US, i'll try to find the issue

JacquardCauseway commented 11 months ago

@jbrodriguez Do you have a long update interval by any chance? I noticed that when I start tickrs the issue still appears until the first update tick.

For example, I have the interval set to 120s. So the issue still appears until 120s has elapsed after running the app.

jbrodriguez commented 11 months ago

thank you @JacquardCauseway, i had the interval set to 60, changed to 5, but same issue, this is my command

tickrs --show-x-labels --summary --update-interval 5  --symbols VOO,BTC-USD,CL=F,^GSPC
SigmaticThar commented 11 months ago

it's still not working for me, 0.14.9 :(

i remember a couple of weeks ago there was an issue with the yahoo enpoints and the country where the request was made from, for example, those in the EU had a different signature (or something like that) that those in the US, i'll try to find the issue

If you have a VPN or if you can sign up to a free VPN to test your theory that would help.

SigmaticThar commented 11 months ago

Actually if you can tell me what country you would like to test I can try it on my VPN if you're okay with that

It works from London UK

jbrodriguez commented 11 months ago

hi @SigmaticThar , thanks for the offer ! does it work for you from mexico ?

SigmaticThar commented 11 months ago

hi @SigmaticThar , thanks for the offer ! does it work for you from mexico ?

Yes I just tested Mexico and it works.

SigmaticThar commented 11 months ago

At this point I think you should try from a free VPN on your end and use a US server and that will tell you for sure if it's something on your computer or a country connection. I also use the program mop and while I was connected to London it wasn't working so your country theory is possible.

tarkah commented 11 months ago

Are you using a pihole or adblocker? I noticed the fc.yahoo.com domain was blocked on mine and I had to whitelist it. We have to hit this endpoint to get a cookie.

jbrodriguez commented 11 months ago

thanks guys, i'll try both the vpn and the adblocker check, yes i'm running adblock on my router, i'll test and report back

jbrodriguez commented 11 months ago

success !! i whitelisted fc.yahoo.com and got it working ! thank you !