Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for bonds #11

Closed
OGsiji opened this issue Oct 6, 2022 · 3 comments · Fixed by #14
Closed

Not working for bonds #11

OGsiji opened this issue Oct 6, 2022 · 3 comments · Fixed by #14
Assignees
Labels
bug Something isn't working

Comments

@OGsiji
Copy link

OGsiji commented Oct 6, 2022

from investiny import historical_data, search_assets

search_results = search_assets(query='U.K. 10Y', limit=1, type="bond")
investing_id = int(search_results[0]["ticker"])

list index out of range

@alvarobartt
Copy link
Owner

Hi @OGsiji so the filter is named "Bond Yield" not "bond", but besides that, I've tried it and it doesn't work with the filter indeed, so you can remove the filter in the meantime so as to get the results 😄

@alvarobartt alvarobartt self-assigned this Oct 6, 2022
@alvarobartt alvarobartt added the bug Something isn't working label Oct 6, 2022
@alvarobartt
Copy link
Owner

Hi again @OGsiji already found the fix, just rename the filter="bond" to filter="Yield". Anyway I'll release the changes ASAP 😄

@OGsiji
Copy link
Author

OGsiji commented Oct 6, 2022

Make sense, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants