How to Connect to the New Coinbase REST API for Advanced Crypto Analysis in Python

A quick-start guide to use the public Coinbase API to analyze and visualize advanced cryptocurrency data.

Nils
Coinmonks
Published in
7 min readJan 16, 2023

--

Foto von Wance Paleri auf Unsplash

Coinbase has recently released their new cloud developer API. The API allows you to conveniently access key features needed for algorithmic trading. It will replace the former Coinbase Pro API which will be phased out soon. In this article, you will learn the following:

  • How to connect to the Coinbase Cloud API via Python?
  • How to load data from Coinbase Cloud into a Pandas data frame?
  • How to transform and analyze cryptocurrency market data?
  • How to add your own investment indicators like Simple Moving Average (SMA), Exponential Moving Average (EMA), MACD, MACD Signal?
  • How to visualize crypto currency market data using Plotly?

The full Jupyter Notebook is available here on GitHub. This article only showcases the most relevant Python code, for the full code, just download the linked GitHub repository which also contains a more detailed step-by-step instruction.

Step One: Connect to Coinbase

--

--

Nils
Coinmonks

tech enthusiast | IT consultant | part-time entrepreneur