# Trying to add YahooFinance.jl and pkg asks for my username and password

**URL:** <https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814>\
**Category:** Package Management\
**Tags:** question\
**Created:** [December 18, 2022, 5:35pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814 "2022-12-18T17:35:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [December 18, 2022, 5:35pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/1 "2022-12-18T17:35:19Z")

</div>

Hello all,  
I’m trying to install YahooFinance to download financial data. Problem is when I try to add or clone the github repository I get a message to enter my user name and password. When I enter them, it just keeps asking for them over and over again in a loop… Can someone help? Anyone else had this happen?

 ![Screen Shot 2022-12-18 at 10.36.57 AM](https://global.discourse-cdn.com/julialang/original/3X/f/8/f84f4e8d0b522f7ca9923d1689c2ec90b0e77453.png)

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [December 18, 2022, 6:00pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/2 "2022-12-18T18:00:07Z")

</div>

you can set it to use ssh instead of https which will fix this.

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [December 18, 2022, 6:15pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/3 "2022-12-18T18:15:35Z")

</div>

Huh, why would that work? As far as I can tell that repository either doesn’t exist or is private. In the latter case you would need valid credentials for `markushhh`, which seems unlikely that anyone other than that person has.

A google search for `YahooFinance.jl` finds a fork in `JuliaTagBot` (?!). You could try to install that instead with

```julia
pkg> add https://github.com/JuliaTagBot/YahooFinance.jl.git

```

and see if it works for the purpose.

---

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [December 18, 2022, 7:23pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/4 "2022-12-18T19:23:36Z")

</div>

Thank you, I used that repository and it did download, but seems to be way out of date as even the simple example crashed for me. I didn’t know they could have private repositories like that. I just removed it, but not be developed any more.

---

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [December 18, 2022, 7:32pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/5 "2022-12-18T19:32:30Z")

</div>

I will have to look this up, never heard of doing this with pkg.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [December 18, 2022, 9:23pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/6 "2022-12-18T21:23:35Z")

</div>

I don’t know if it is the same but I saw that this one was registered earlier this week:

> **[GitHub - eohne/YFinance.jl: Fetch stock market data from Yahoo Finance....](https://github.com/eohne/YFinance.jl)**
>
> Fetch stock market data from Yahoo Finance. Exposes stock, commodity, futures, currency (FX), mutual fund, and ETF prices, stock fundamental, summary data , and options data. - GitHub - eohne/YFina...

---

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [December 19, 2022, 12:49am UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/7 "2022-12-19T00:49:36Z")

</div>

Thanks, just checked it out, looks like they haven’t developed much so far.

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [December 19, 2022, 12:57am UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/8 "2022-12-19T00:57:22Z")

</div>

There is [MarketData.jl](https://github.com/JuliaQuant/MarketData.jl)?

It says:  
`This package supports Yahoo Finance API for retrieving data.`

There is an example using it in the [TimeSeries.jl docs](https://juliastats.org/TimeSeries.jl/latest/plotting/#).

---

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [December 19, 2022, 2:06am UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/9 "2022-12-19T02:06:23Z")

</div>

This package actually works well, just pulled some AAPL data back to 1980 quickly and converted to a DataFrame. This is what I was looking for. Thought it may be faster than R when pulling this much data from the web. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![EOhneberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eohneberg/32/45704_2.png) [@EOhneberg](https://discourse.julialang.org/u/EOhneberg)\
**Post date:** [January 8, 2023, 4:46pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/10 "2023-01-08T16:46:20Z")

</div>

Which package did you end up using? Was it easy and fast?

---

<div class="post-metadata">

**Author:** ![austin-putz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/austin-putz/32/2583_2.png) [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Post date:** [January 8, 2023, 4:55pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/11 "2023-01-08T16:55:41Z")

</div>

MarketData.jl I think. I was able to pull several stocks and was pretty easy in Julia and used Plots.jl to generate quite a few plots. I will certainly use again.

---

<div class="post-metadata">

**Author:** ![EOhneberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eohneberg/32/45704_2.png) [@EOhneberg](https://discourse.julialang.org/u/EOhneberg)\
**Post date:** [January 8, 2023, 4:58pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814/12 "2023-01-08T16:58:53Z")

</div>

Great! Thank you for the super fast reply!
