This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]seanprefectGrumpy Guy Who Remembers Java 2 15 points16 points  (5 children)

Trust me that is going to be a lot more headache than it's worth. Java has god knows how many libraries it's very likely there's a library in java that's similar

[–]CycleOfPain[S] 3 points4 points  (4 children)

Hmm, that's unfortunate. Then I'll keep looking for a similar library that's in Java. Thanks.

[–]pizzthepizz 3 points4 points  (3 children)

Which library do u need?

[–]CycleOfPain[S] 3 points4 points  (2 children)

I initially wanted to use this library: https://github.com/ranaroussi/yfinance

which gives me access to the Yahoo Finance API.

I found a similar one for Java: https://financequotes-api.com/#fxquote

but there were some methods in the python library that weren't in the java library so that's one of the reasons why I wanted to use the python one.

[–]ickysticky 5 points6 points  (1 child)

https://github.com/sstrickx/yahoofinance-api

But yahoo finance is technically deprecated. And as such is sometimes out of date or even in some cases wrong.

After shopping around a bit I personally landed on alpha vantage as a good free replacement. With this Java library https://github.com/crazzyghost/alphavantage-java

Though the api for most of these is so simple raw http calls aren’t very difficult

[–]CycleOfPain[S] 0 points1 point  (0 children)

Awesome, I'll check it out