piquette / finance-go

:bar_chart: Financial markets data library implemented in go.
https://piquette.io/projects/finance-go
MIT License
725 stars 102 forks source link

query all interface is error #29

Open dislazy opened 1 year ago

dislazy commented 1 year ago
q, err := quote.Get("AAPL")
if err != nil {
    // Uh-oh.
    panic(err)
}

// Success!
fmt.Println(q)

panic: Can't find quote for symbol: AAPL

goroutine 1 [running]:

leoneu commented 11 months ago

Make sure you install the latest commit that works with the Yahoo! API. For example:

go get github.com/piquette/finance-go@40d4ac6e73cf36936990a7e5a794706722c91ad5

infor7 commented 11 months ago

I have same problem, I've tried to fetch latest commit from master go get github.com/piquette/finance-go@430a572334304ccddcf0f54cc4915b6a379ddc15 as well as one you have mentioned go get github.com/piquette/finance-go@40d4ac6e73cf36936990a7e5a794706722c91ad5

Both of them returns panic: Can't find quote for symbol: AAPL

leoneu commented 10 months ago

The code works for me so it might be an issue with the Yahoo API. Probably the quickest test is to try the python app using the same IP address and see if you get the same problem. https://github.com/ranaroussi/yfinance

sunglim commented 9 months ago

As of 2024.02.07, I got the following error

"code: remote-error, detail: code: remote-error, detail: error response recieved from upstream api"
Zmey56 commented 7 months ago

I have the same problem too: panic: code: remote-error, detail: code: remote-error, detail: error response recieved from upstream api

pultarmi commented 3 months ago

Problem still exists. I am getting panic: Can't find quote for symbol: AAPL on quote.Get("AAPL").

In contrast, this simple code in Python works:

import yfinance as yf
ticker = yf.Ticker('AAPL')