Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yahoo changed their API again. #24

Closed
dcelisgarza opened this issue Oct 12, 2024 · 3 comments
Closed

Yahoo changed their API again. #24

dcelisgarza opened this issue Oct 12, 2024 · 3 comments

Comments

@dcelisgarza
Copy link

Here's an MWE

julia> using YFinance
julia> AAPL = get_prices("AAPL")
ERROR: type MethodError has no field status
Stacktrace:
 [1] getproperty(x::MethodError, f::Symbol)
   @ Base .\Base.jl:49
 [2] get_prices(symbol::String; range::String, interval::String, startdt::String, enddt::String, prepost::Bool, autoadjust::Bool, timeout::Int64, throw_error::Bool, exchange_local_time::Bool)
   @ YFinance C:\Users\Daniel Celis Garza\.julia\packages\YFinance\J0e1z\src\Prices.jl:160
 [3] get_prices(symbol::String)
   @ YFinance C:\Users\Daniel Celis Garza\.julia\packages\YFinance\J0e1z\src\Prices.jl:112
 [4] top-level scope
   @ REPL[2]:1

Here's my versioninfo()

julia> versioninfo()
Julia Version 1.11.0
Commit 501a4f25c2 (2024-10-07 11:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 7 1700 Eight-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver1)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
@eohne
Copy link
Owner

eohne commented Oct 12, 2024

@dcelisgarza
Hi, Thanks for reporting!
I just downloaded 1.11.0 myself and tested your MWE. It works fine on my machine...

Do you by any chance require a proxy to access the internet? (This error would show up in cases where you cannot reach Yahoo finance/ the internet because you require a proxy to access the internet).

If it is indeed that you need to define a proxy you can set it like this - you will need to fill in the proxy link, password, and username:

create_proxy_settings("http://proxy.xyz.com:8080",user="USERNAME",password="PASSWORD")

@dcelisgarza
Copy link
Author

dcelisgarza commented Oct 12, 2024

Interesting, I tried it from home so there's no need for a proxy. I have the same issue with MarketData.jl, but not python's yfinance. I'll delete my .julia folder just in case, I was experimenting and there may be something that changed some artifact.

@dcelisgarza
Copy link
Author

dcelisgarza commented Oct 12, 2024

So it's on my end, I tested on my laptop and it worked. I went back to the desktop and it didn't, even after a clean reinstall. I had to restart my router, pc and do a clean install. I'll close this issue. Sorry about this, maybe my IP was banned for some reason lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants