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
- Open two terminals, one to the
./websocket/directory, the other to the./solid-start/directory. - In each terminal run:
npm install- In each terminal run:
npm start- Navigate to http://localhost:8080/coinbase
export function yourSettings() {
return {
MAX_ORDERBOOK_SIZE: 10,
TRACKED_COIN_PAIR: "BTC-USD"
}
}