coinbase pro api code example

Example 1: coinbase pro docs

[
    {
        "maker_fee_rate": "0.0015",
        "taker_fee_rate": "0.0025",
        "usd_volume": "25000.00"
    }
]

Example 2: coinbase api

from coinbase.wallet.client import Client

client = Client('xxxxxxxxxxx', 'xxxxxxxxxxxxxxxx') # set your api and secret keys here

# use this to create a deposit address for your coinbase account

account_id = 'xxxxx-xxx-xxx-xxxx-xxxxxxxxx' # the account is of the currency for which u want the address for

address = client.create_address(account_id)

print(str(address))

Tags:

Misc Example