Skip to content

JosiahLeas/CoinbaseOrderbookWebsocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fast Coinbase Orderbook

image

Simple terminal app that shows the Coinbase Orderbook for a desired coin using their websocket connection

Get API Key here - https://cloud.coinbase.com/access/api?keyType=trade

Websocket Docs (Connection Info) - https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-auth

Start application

  1. Open two terminals, one to the ./websocket/ directory, the other to the ./solid-start/ directory.
  2. In each terminal run:
npm install
  1. In each terminal run:
npm start
  1. Navigate to http://localhost:8080/coinbase

Change settings by editing the ./websocket/settings.ts file:

export function yourSettings() {
    return {
        MAX_ORDERBOOK_SIZE: 10,
        TRACKED_COIN_PAIR: "BTC-USD"
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors