Coder Social home page Coder Social logo

Comments (26)

achannarasappa avatar achannarasappa commented on June 3, 2024 7

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.

achannarasappa avatar achannarasappa commented on June 3, 2024 7

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.

hchr avatar hchr commented on June 3, 2024 4

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.

MattyRad avatar MattyRad commented on June 3, 2024 3

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.

clauseggers avatar clauseggers commented on June 3, 2024 3

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.

achannarasappa avatar achannarasappa commented on June 3, 2024 3

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.

ChangheeOh avatar ChangheeOh commented on June 3, 2024 2

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.

clauseggers avatar clauseggers commented on June 3, 2024 2

I’m on MacOS latest, installed ticker with Homebrew, and I’m located in the Netherlands.

from ticker.

097115 avatar 097115 commented on June 3, 2024 2

Ubuntu 22.04.2, downloaded the binary from the Releases page, another EU country. Same symptoms as described above.

from ticker.

achannarasappa avatar achannarasappa commented on June 3, 2024 1

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.

achannarasappa avatar achannarasappa commented on June 3, 2024 1

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.

achannarasappa avatar achannarasappa commented on June 3, 2024 1

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:

  1. 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)
  2. API calls must have the URL query parameter crumb set
    a. "crumbs" can be retrieved by requesting GET https://query2.finance.yahoo.com/v1/test/getcrumb (example)
  3. 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.

achannarasappa avatar achannarasappa commented on June 3, 2024 1

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.

sarcasticadmin avatar sarcasticadmin commented on June 3, 2024

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.

ajgringo619 avatar ajgringo619 commented on June 3, 2024

Working as advertised here - thanks for the quick fix!

from ticker.

clauseggers avatar clauseggers commented on June 3, 2024

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.

vvidic avatar vvidic commented on June 3, 2024

Probably the same problem described here:

https://stackoverflow.com/questions/76065035/yahoo-finance-v7-api-now-requiring-cookies-python

from ticker.

hchr avatar hchr commented on June 3, 2024

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.

jfbourdeau avatar jfbourdeau commented on June 3, 2024

Tks for the last update. Everything is working again. JF MTL Canada

from ticker.

hchr avatar hchr commented on June 3, 2024

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.

ktpx avatar ktpx commented on June 3, 2024

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.

eriknh avatar eriknh commented on June 3, 2024

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.

ktpx avatar ktpx commented on June 3, 2024

You don't have to set anything, the code does it.

from ticker.

Cubuss avatar Cubuss commented on June 3, 2024

i get nothing using snap ticker version 4.5.13

ticker -w GME it just hangs still no output

from ticker.

eriknh avatar eriknh commented on June 3, 2024

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.

ktpx avatar ktpx commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.