Posts

Showing posts from September, 2017

Coinbase Interaction with Python

Get Coinbase balances using code? Lets do it.  Let's build on the experience from my previous post on connecting to GDAX with Python. If I can connect to both my Coinbase Wallets and my GDAX accounts... I will be well on my way to understanding my cryptocurrency portfolio in ways that are not provided in the web UI.

The good news is that there is a official python Coinbase module.
A WORD OF CAUTIONCoinbase handles financial assets. Always use the sandbox when testing code and ideas. Its never a good idea to put secrets in your code. Use appropriate security measures when using API credentials. I recommend using a tool such as bcrypt to protect your secrets. GoalsSecurely authenticate to Coinbase REST service using official Coinbase moduleGet a list of accounts/wallets for the authenticated userGet a list of all transactions for all accountsDisplay the resultsDisplay the execution duration in seconds PrepLogin to Coinbase and generate an API key. I specifically set my API key to …

GDAX Interaction with Python

Get GDAX balances using code? Lets do it. I was checking out the Coinbase GDAX REST API the other day and I immediately had some ideas of how I could use it. I am not a software developer by trade, but even for a scripter like myself, a quick review of the GDAX documentation proved to be understandable. It was time well spent and I recommend you have a gander prior to executing the code in this post.

We are going to use Python in this example. Why Python? Because I make the decisions here.

A WORD OF CAUTIONGDAX handles financial assets. Always use the sandbox when testing code and ideas. Use appropriate security measures when using API credentials. 
GoalsSecurely authenticate to the GDAX REST APIGet a list of accounts for the authenticated userDisplay the accounts details in prettified formatDisplay the execution duration in seconds PrepLogin to GDAX and generate an API key. I specifically set my API key with "view" permissions.Save the Passphrase, key, and secret in a…