Skip to content

two questions. #401

Answered by alvarobartt
oda9 asked this question in Q&A
Apr 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @oda9, first of all sorry for answering too late! 😩

I've moved this issue to a Q&A discussion.

Regarding your first question, currerntly the static data for cryptos is pretty limited and just the USD conversion is offered, but you can use investpy.search_quotes() to search the crypto in the currency that you want, and then retrieve the data.

So investpy.get_crypto_recent_data() won't work since it just contains the main crypto currencies in USD, but using the following piece of code will work:

import investpy

search_result = investpy.search_quotes(text='BTC JPY', products=['cryptos'], n_results=1)

recent_data = search_result.retrieve_recent_data()
historical_data = search_result.retr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oda9
Comment options

Answer selected by alvarobartt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #318 on June 16, 2021 18:36.