Comments (26)
Thanks for all the reports! I've created a new release to use the v6 Yahoo API which should fix it but I'll leave this open for a bit to confirm
from ticker.
I was able to replicate the issue reported by EU users. On finance.yahoo.com, there is a prompt related to EU data privacy regulations that the user must accept before using the Yahoo Finance. Without accepting this prompt, the required cookie (A3
) is not set. ticker v4.5.13 does not support this today. Look out for an update here soon that adds support.
from ticker.
v7 strikes again it seems
curl https://query1.finance.yahoo.com/v7/finance/quote?symbols=tsla
{"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Cookie"}}}13:14
from ticker.
Rebuilding ticker after search/replacing v7
with v6
seems to fix the issue.
Is there interest in making the yahoo API version configurable?
from ticker.
Thank you @achannarasappa but I can’t get past executing the app. When I press return I just get the cursor moved to the next line, where it is then stuck seemingly doing nothing. In some terminal emulators it blinks a few times before going solid.
from ticker.
v4.5.14 has just been released which fixes the quote retrieval issue for EU users. Closing this issue for now but will reopen if there's still any unresolved problems.
Thanks all for providing details and reports that helped understand the issue better!
from ticker.
Same issue.
It seems to be related to macOS latest update.
- OS:
ProductName: macOS
ProductVersion: 13.3.1
- Ticker version: 4.5.6
from ticker.
I’m on MacOS latest, installed ticker
with Homebrew, and I’m located in the Netherlands.
from ticker.
Ubuntu 22.04.2, downloaded the binary from the Releases page, another EU country. Same symptoms as described above.
from ticker.
Try with the latest version 4.5.10
Longer term some kind of abstraction layer should help mitigate these sorts of issues in the future.
from ticker.
Thanks for reporting this - I can replicate the issue but there is no simple workaround as before so it may take some time to fix this issue.
@vvidic thanks for sharing the above link. I was not able fix the issue by following the steps listed in the link but I'll keep searching to see if someone else has found a workaround.
from ticker.
I've made an update that should restore functionality with v4.5.13. I'll close this issue for now but please re-open if this happens again.
For those interested, there are three differences with the v7 Yahoo API in the latest breaking change:
- API calls must have the
A3
cookie set
a. Sessions expire after about 6 hours
b. Cookies can be retrieved by visiting the Yahoo Finance homepage (example) - API calls must have the URL query parameter
crumb
set
a. "crumbs" can be retrieved by requestingGET https://query2.finance.yahoo.com/v1/test/getcrumb
(example) - API contract for the response from
GET v7/finance/quote
has changed for several fields to include both raw and formatted values (example)
from ticker.
Looks like there's still an issue but it does not impact everyone. It could be region or machine specific so for those that have issue, would you mind sharing country and machine details to help pinpoint the issue?
from ticker.
Its broken for me on linux too. No recent OS updates have been applied for me:
$ ticker -v
ticker version v4.5.5
I suspect its a similar outage to a few weeks ago: #246
from ticker.
Working as advertised here - thanks for the quick fix!
from ticker.
Did Yahoo just shut off the v6 API?
v6
curl https://query1.finance.yahoo.com/v6/finance/quote\?symbols\=AAPL,GOOG,F | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 91 100 91 0 0 1489 0 --:--:-- --:--:-- --:--:-- 1625
{
"finance": {
"result": null,
"error": {
"code": "Not Found",
"description": "HTTP 404 Not Found"
}
}
}
v7
curl https://query1.finance.yahoo.com/v7/finance/quote\?symbols\=AAPL,GOOG,F | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 90 100 90 0 0 1722 0 --:--:-- --:--:-- --:--:-- 1914
{
"finance": {
"result": null,
"error": {
"code": "Unauthorized",
"description": "Invalid Cookie"
}
}
}
from ticker.
Probably the same problem described here:
https://stackoverflow.com/questions/76065035/yahoo-finance-v7-api-now-requiring-cookies-python
from ticker.
Thank you @achannarasappa but I can’t get past executing the app. When I press return I just get the cursor moved to the next line, where it is then stuck seemingly doing nothing. In some terminal emulators it blinks a few times before going solid.
I get the same here on Arch
ticker -v
ticker version v4.5.13
Added:
It is connected and the data is flowing in:
Sent Recived
ticker eno1 7.831 38.404 KB/sec
works for some it seems.
Maybe OS related?
from ticker.
Tks for the last update. Everything is working again. JF MTL Canada
from ticker.
System:
Kernel: 6.3.4-arch1-1
Desktop: KDE Plasma v: 5.27.5
Distro: EndeavourOS
CPU:
model: AMD Ryzen 9 5900HX with Radeon Graphics
Denmark
from ticker.
I implemented the same approach in my own app and it works now. However it does not work with "finance.yahoo.com" in the initial request to get the cookie, I have to use "fc.yahoo.com".
from ticker.
I just updated via the snap updater on Ubuntu server 22.04 to ticker version 4.5.13 and the app works as expected again. However I did not set any cookies. How is it working without me setting a cookie or specifying the CRUMB value?
Also, can I set these somehow as a variable upon calling the "ticker" command? How would I input my own cookie variables otherwise?
Thank you for the update @achannarasappa and thank you for the explanations.
from ticker.
You don't have to set anything, the code does it.
from ticker.
i get nothing using snap ticker version 4.5.13
ticker -w GME
it just hangs still no output
from ticker.
You don't have to set anything, the code does it.
Thanks @ktpx! Great to know the code does this for us. @achannarasappa amazing development on that CRUMB/COOKIE effort. Would love to know if any of these Yahoo Finance variables gets added to the config file should Yahoo start getting finicky about access.
from ticker.
I was able to replicate the issue reported by EU users. On finance.yahoo.com, there is a prompt related to EU data privacy regulations that the user must accept before using the Yahoo Finance. Without accepting this prompt, the required cookie (
A3
) is not set. ticker v4.5.13 does not support this today. Look out for an update here soon that adds support.
Thats probably why fc.yahoo.com works here (im in eu), and not finance.yahoo.com.
from ticker.
Related Issues (20)
- total change wrong with disable-unit-cost-conversion HOT 2
- Holdings ignored when using CoinGecko HOT 3
- Ticker doesn't show stock data HOT 11
- Crypto tickers have stopped updating HOT 1
- Error when connected through VPN HOT 2
- Yahoo break their endpoint again? HOT 8
- Make the yahoo API version configurable HOT 4
- `go install` fails HOT 2
- Search/filter request HOT 2
- Add notification support HOT 2
- Session cookie missing for response with Coingecko assets HOT 4
- Total growth over several groups? HOT 2
- Error: invalid config: No watchlist provided
- Egads, Watson; there's something afoot! HOT 1
- ERROR RESTY unexpected response from Yahoo API: non-2xx response code: 307 Temporary Redirect HOT 4
- Sort Option For Biggest Movers
- ERROR RESTY unexpected response from Yahoo API: A3 session cookie missing from response HOT 8
- segfault HOT 6
- Shell completion files cannot be generated without network access HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ticker.