Skip to content

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.
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.

2 participants