gschambers / crypto-trading

A demo trading visualisation using Go and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crypto Trading

A demo trading visualisation using Go and React

This app comprises a backend order book, price ticker and WebSocket interface - written in Go - to power a simple UI visualisation - written in React.

The backend service connects to a firehose of currency exchange prices (via GDAX public price feed) and broadcasts those ticks over a websocket to any subscribed client. Clients sample those ticks to show the current ask price and volume on an animated scale.

To subscribe to a currency pair, the client sends a message in the following format:

client.subscribe("BTC-USD");

Getting started

  1. Ensure yarn is installed (https://yarnpkg.com)
  2. Fetch project: go get gitlab.com/gschambers/crypto-trading
  3. Install client dependencies: yarn install
  4. Build client: yarn build
  5. Build server: go build
  6. Run: ./crypto-trading and visit http://localhost:3000

TODO

  • Implement visualisations for historical market data
  • Simulate market, limit and stop order placing

About

A demo trading visualisation using Go and React


Languages

Language:Go 50.1%Language:TypeScript 37.0%Language:CSS 8.5%Language:JavaScript 3.4%Language:HTML 0.9%