coinbase-samples / prime-order-book-py

Sample real-time order book via the Coinbase Prime API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Python 100.0%