achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
4.94k stars 264 forks source link

Ticker doesn't show stock data #246

Closed tkalmi closed 1 year ago

tkalmi commented 1 year ago

Describe the bug Similarly to the issue described in https://github.com/achannarasappa/ticker/issues/237, only the empty header and footer of ticker are shown, with no stock information whatsoever.

To Reproduce Steps to reproduce the behavior:

  1. Start ticker --config $HOME/.config/ticker/ticker.yaml
  2. Header/footer appear, but no stock data

Expected behavior I'm expecting data of the stocks I'm following to be shown.

Screenshots Only the empty shell is shown image

Environment (please complete the following information):

it-slav commented 1 year ago

I have the same issue since yesterday evening CET on several linux plattforms.

chrisswanda commented 1 year ago

Confirming I have the same issue. Yahoo change an API?

{"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Crumb"}}}
jfbourdeau commented 1 year ago

Same thing here, Montreal Canada. ( Linux Debian Deepin ) Ticker 4.5.6 Since yesterday...

Spreadneck commented 1 year ago

Same issue here, began happening in the afternoon CT. I assume it is an API issue because mop-tracker uses the same API and stopped working at the same time.

joce commented 1 year ago

The v7 API appears to be broken as @chrisswanda indicated. However, I still can get results using the v6 API:

$ 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  6267  100  6267    0     0  27567      0 --:--:-- --:--:-- --:--:-- 27607
{
  "quoteResponse": {
    "result": [
      {
        "language": "en-US",
        "region": "US",
        "quoteType": "EQUITY",
        "typeDisp": "Equity",
        "quoteSourceName": "Nasdaq Real Time Price",
        "triggerable": true,
        "customPriceAlertConfidence": "HIGH",
        "priceEpsCurrentYear": 28.107447,
        "sharesOutstanding": 15821899776,
        "bookValue": 3.581,
        "fiftyDayAverage": 156.0672,
        "fiftyDayAverageChange": 11.172104,
        "fiftyDayAverageChangePercent": 0.071585216,
        "twoHundredDayAverage": 150.1536,
        "twoHundredDayAverageChange": 17.085709,
        "twoHundredDayAverageChangePercent": 0.11378821,
        "marketCap": 2646043525120,
        "forwardPE": 25.339289,
        "priceToBook": 46.701843,
        "sourceInterval": 15,
        "exchangeDataDelayedBy": 0,
        "firstTradeDateMilliseconds": 345479400000,
        "priceHint": 2,
        "tradeable": false,
        "cryptoTradeable": false,
        "regularMarketPreviousClose": 167.63,
        "bid": 0,
        "ask": 0,
// ...
mnsrulz commented 1 year ago

same issue here.. hope it will get fix soon.

ngocphamm commented 1 year ago

I think it got fixed from the API side. Working now for me.

chrisswanda commented 1 year ago

Working now for me also.

tkalmi commented 1 year ago

Thanks, seems to be working for me too now 👍 I suppose we label this as a temporary error on the API side, and therefore there's no need to fix anything on ticker's side. Closing the issue.

jfbourdeau commented 1 year ago

good for me too ( MTL Canada)

achannarasappa commented 1 year ago

Just checked about 30 minutes ago and again now. There was a change released to the Yahoo API where it was requiring a a specific cookie that was not set. It likely broke Yahoo Finance's integration as well as ticker's so it looks like they've rolled back.

I've re-run the contract tests and they're passing now so ticker should be working again. Thanks all for the reports and investigation!