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

Add an API function to query for bitcom transaction ids. #77

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

xloem
Copy link
Contributor

@xloem xloem commented Dec 9, 2020

This involved adding support for API providers with differing features.

…d adding support for API providers with differing features.
@ghost
Copy link

ghost commented Dec 9, 2020

I'm not familiar with bitcom, but at first glance this looks pretty good.

if planaria_token and network == 'main':
self.planaria = Planaria(token=planaria_token)
self.list_of_apis.append(self.planaria)

Copy link
Owner

@AustEcon AustEcon Dec 12, 2020

Choose a reason for hiding this comment

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

Oh ignore my earlier comment. I need to spend the time to actually test this code to understand it better than just reading it...

Sorry. I may have to come back to this next weekend...

What happens if PrivakeKey.get_bitcom_transactions() is called when there is no planaria token? does that case need to return a human-readable error that they require a token (or something like that)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm having some trouble replying to you here, I'm sorry. I tried to copy the way API keys were used in a pre-existing part of the system. I haven't verified the no-token case; the error may not be clear.

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.

None yet

2 participants