Skip to content

Implement Access Keys for Exchangerates.host#212

Merged
eprbell merged 9 commits into
eprbell:mainfrom
macanudo527:implement_access_keys
Oct 21, 2023
Merged

Implement Access Keys for Exchangerates.host#212
eprbell merged 9 commits into
eprbell:mainfrom
macanudo527:implement_access_keys

Conversation

@macanudo527

Copy link
Copy Markdown
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 force-pushed the implement_access_keys branch from 4392e35 to 6de332a Compare October 6, 2023 00:25
@macanudo527
macanudo527 marked this pull request as ready for review October 6, 2023 00:36
@macanudo527

Copy link
Copy Markdown
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.

@eprbell eprbell left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread setup.cfg
Comment thread src/dali/abstract_pair_converter_plugin.py Outdated
Comment thread tests/conftest.py
Comment thread tests/conftest.py

@eprbell eprbell left a comment

Copy link
Copy Markdown
Owner

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!

Comment thread setup.cfg
Comment thread setup.cfg
Comment thread setup.cfg
Comment thread src/dali/abstract_pair_converter_plugin.py Outdated
Comment thread tests/cassettes/test_plugin_ccxt/unified.yaml
Comment thread tests/conftest.py
@macanudo527

Copy link
Copy Markdown
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.

@eprbell eprbell left a comment

Copy link
Copy Markdown
Owner

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!

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