Comments (11)
This issue seems to be back, and has been going on for a few days.
from finance-go.
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.
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.
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.
Today it seems to be working again.
from finance-go.
I think Yahoo temporarily did something with their API. The yahooquery Python library also noticed issues:
It was not working for about a day for me, but now it is working.
from finance-go.
Perhaps reopen this bug.
from finance-go.
I don't have permission to reopen the bug.
from finance-go.
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.
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.
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)
- Support Yahoo Finance API Key HOT 1
- Use Finnhub stock api as the new data source HOT 6
- Clean up formatting
- Only 1 candle for day interval HOT 1
- Getting a list of all stock tickers from a particular market HOT 1
- PrevBar PrevBars methods?
- API rate limiting for forex? HOT 2
- Is there a way to subscribe to websocket?
- quote.Get nil pointer dereferencing when asking quote of a inexistent symbol HOT 2
- Missing some key statistics for Equities HOT 1
- P/E Ratio HOT 1
- YFinance changed their api's (or their security) HOT 32
- query all interface is error HOT 5
- Rounding in History HOT 3
- Docs don't show how to use the forex.Quote HOT 2
- feature: quote for date HOT 2
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 finance-go.