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

Implement Access Keys for Exchangerates.host #212

Merged
merged 9 commits into from
Oct 21, 2023

Conversation

macanudo527
Copy link
Collaborator

This PR will significantly speed up testing and make them more performant. It adds Vcrpy to Dali-RP2, so that we can mock HTTP requests as well as adds support for the now necessary access keys for the fiat pricing provider Exchangerates.host.

Fixes #211

@macanudo527 macanudo527 force-pushed the implement_access_keys branch 2 times, most recently from 61cab14 to 2b0ff4e Compare October 5, 2023 23:45
@macanudo527 macanudo527 marked this pull request as draft October 5, 2023 23:46
@macanudo527 macanudo527 force-pushed the implement_access_keys branch 4 times, most recently from 828c379 to 4392e35 Compare October 6, 2023 00:16
@macanudo527 macanudo527 marked this pull request as ready for review October 6, 2023 00:36
@macanudo527
Copy link
Collaborator Author

@eprbell It took some finagling, but I got vcrpy to work. It does not really like Python < 3.10. The package itself is amazing. It really speeds things up and is easy to use. It cuts down on a lot of bulky mocking code.

Copy link
Owner

@eprbell eprbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I have just a few nits here and there but otherwise it LGTM.

setup.cfg Show resolved Hide resolved
src/dali/abstract_pair_converter_plugin.py Outdated Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
Copy link
Owner

@eprbell eprbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments here and there: getting there!

setup.cfg Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
src/dali/abstract_pair_converter_plugin.py Outdated Show resolved Hide resolved
tests/cassettes/test_plugin_ccxt/unified.yaml Outdated Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
@macanudo527
Copy link
Collaborator Author

@eprbell Sorry about the confusion. I should have made a comment instead of pushed the request review button. I've been snowed over with this new job at times. I was in a rush.

Hopefully, this is all good to go now. Let me know if you need anything else. After this gets rolled through, I'll try to rebase the pricing correction #207 and then if we rebase #203 it should also go green.

Copy link
Owner

@eprbell eprbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! No worries, I know what it's like to start a new coding job (I hope that it's going well though). Thanks for fixing this!

@eprbell eprbell merged commit 8d07b7c into eprbell:main Oct 21, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Authentication for Exchangerate.host
2 participants