Skip to content

how to get currency crosses in investiny #13

Answered by alvarobartt
andresrogers asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @andresrogers thanks for opening this discussion, here's the code you're looking for:

from investiny import historical_data, search_assets

search_results = search_assets(query="USD/CLP", limit=1, type="FX")
investing_id = int(search_results[0]["ticker"])

data = historical_data(investing_id=investing_id)
print(data)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@seongyeop-jeong-poey
Comment options

@alvarobartt
Comment options

@alvarobartt
Comment options

@seongyeop-jeong-poey
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
None yet
3 participants