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

Modify crypto_withdraw signature #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alecarr
Copy link

@alecarr alecarr commented Mar 28, 2019

add 2 parameters destination_tag and no_destination_tag to stick to coinbase pro API signature.

The destination tag is used by XRP and XLM currencies, currencies that support destination tag. If destination tag not needed, then the flag no_destination_tag must be set to True.

I tested the crpyto_withdraw this morning in the master and didn't worked for XLM currencies, so I forked the project, update the code and tested it. It worked fine with in production.

no_destination_tag to stick to coinbase pro API signature.
@@ -870,13 +870,16 @@ def coinbase_withdraw(self, amount, currency, coinbase_account_id):
return self._send_message('post', '/withdrawals/coinbase-account',
data=json.dumps(params))

def crypto_withdraw(self, amount, currency, crypto_address):
def crypto_withdraw(self, amount, currency, crypto_address, destination_tag, no_destination_tag=True):
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should have a default argument for destination_tag as well, for currencies that do not support them.

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