Giter Club home page Giter Club logo

Comments (11)

sargon2 avatar sargon2 commented on July 23, 2024 2

This issue seems to be back, and has been going on for a few days.

from finance-go.

psanford avatar psanford commented on July 23, 2024 1

Changing the yahoo api url from v7 to v6 should give you something that works right now. There's a PR for that here: #27

from finance-go.

KasperKornak avatar KasperKornak commented on July 23, 2024 1

Guys, PR opened by @alai04 from last month fixed it for a while. However, about three days ago I've noticed that error response from upstream api occurred again and after looking through this issue i tried to access url mentioned and got the following response:

{"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Crumb. For Developers - https://bit.ly/yahoo-finance-api-feedback"}}}

So after heading to the link, they basically say that they can't redistribute financial data from 3rd parties in API form.

from finance-go.

sargon2 avatar sargon2 commented on July 23, 2024 1

I switched to @psanford's fork and it seems to be working, at least for now: https://github.com/psanford/finance-go

from finance-go.

sargon2 avatar sargon2 commented on July 23, 2024

Today it seems to be working again.

from finance-go.

valankar avatar valankar commented on July 23, 2024

I think Yahoo temporarily did something with their API. The yahooquery Python library also noticed issues:

dpguthrie/yahooquery#178

It was not working for about a day for me, but now it is working.

from finance-go.

valankar avatar valankar commented on July 23, 2024

Perhaps reopen this bug.

from finance-go.

sargon2 avatar sargon2 commented on July 23, 2024

I don't have permission to reopen the bug.

from finance-go.

kfwalther avatar kfwalther commented on July 23, 2024

Thanks @psanford, ran go get github.com/piquette/finance-go@latest to grab the latest version (v1.1.0) to include the PR, and it fixed the issue!

from finance-go.

kfwalther avatar kfwalther commented on July 23, 2024

I also began seeing the Unauthorized errors again, even after switching to v1.1.0. Looks like the fork might be the way to go for now.

from finance-go.

sahilsk11 avatar sahilsk11 commented on July 23, 2024

Bumping this, as I received the same error on v1.1.0 when I run:

q, err := equity.Get("AAPL")
if err != nil {
  // Uh-oh.  
  panic(err)
}

// Success!
fmt.Println(q)

from finance-go.

Related Issues (17)

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.