Skip to content

Sample real-time order book via the Coinbase Prime API

License

Notifications You must be signed in to change notification settings

coinbase-samples/prime-order-book-py

Repository files navigation

Purpose

This is a single page real-time order book application built for Coinbase Prime using Python, SQL, and Dash, an open source framework for building Python data apps.

All scripts are written in Python and tested with version 3.8.9.

Installation

Simply clone the repo from your terminal window with the below command.

git clone https://github.com/coinbase-samples/prime-order-book-py

To install dependencies, run the following:

pip install -r requirements.txt

You will also need API key credentials from a valid Coinbase Prime portfolio in order to use this application.

Add your credentials to example.env, then run this command to rename that file:

cp example.env .env

You can now run the program, which spans two terminal windows. First, run:

python backend.py

Once messages begin displaying in your command line (updated), run the next command in a separate terminal window (you will need to navigate to the local directory):

python frontend.py

For more information around Dash, please visit their Github and documentation.

About

Sample real-time order book via the Coinbase Prime API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages