danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 732 forks source link

Method to yield a deposit address like depositCrypto #379

Open IvoCrnkovic opened 5 years ago

IvoCrnkovic commented 5 years ago

Is there a way to replicate the functionality offered by the depositCrypto method in the official Node client? As in a method that returns an address to send crypto to in order to deposit it?

https://github.com/coinbase/coinbase-pro-node/blob/8bce637716bf73669337398fe53df24b2d25af1b/lib/clients/authenticated.js#L262

I see withdrawCrypto here but not the reverse.

mcardillo55 commented 3 years ago

We don't yet have that. It looks like the endpoint is in the documentation here: https://docs.pro.coinbase.com/#generate-a-crypto-deposit-address

In the meantime you can do this --

Grab the coinbase account id for the currency you want an address for from:

auth_client.get_coinbase_accounts()

Then use the coinbase account id in the following request:

auth_client._send_message('post', '/coinbase-accounts/' + coinbase_account_id + '/addresses')