how to get currency crosses in investiny #13
Answered
by
alvarobartt
andresrogers
asked this question in
Q&A
-
Hello, anyone knows how to use this tool to get currency exchange pairs, I'm interested in getting USD to CLP |
Beta Was this translation helpful? Give feedback.
Answered by
alvarobartt
Oct 6, 2022
Replies: 1 comment 4 replies
-
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) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
alvarobartt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @andresrogers thanks for opening this discussion, here's the code you're looking for: