Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 902 Bytes

File metadata and controls

33 lines (25 loc) · 902 Bytes

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"
    }
}