• This repository has been archived on 09/Apr/2021
  • Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    JavaScript
  • Created over 7 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Component library for trading applications πŸ˜°πŸ“‰πŸ’Έ

React Trading UI

A component library for trading applications.

react-trading-ui

Disclaimer:

There are some real performance issues with this right now and it is likely going to freeze up if you are trying to maintain a full order book in real-time.
For level books or for just polling a full order book it should be more stable.

Documentation

Demo & Examples

Live demo: coming soon...

To run the example locally, clone this repo and run:

$ npm install
$ npm run start

Then visit localhost:3000 in your browser.

Installation

Using npm:
$ npm install --save react-trading-ui

Using yarn
$ yarn add react-trading-ui

Usage

import {OrderBook, TradeHistory} from 'react-trading-ui'
import {connect} from 'react-redux'

const MyApp = ({book, trades}) => (
  <div className='my-app'>
    <OrderBook asks={book.asks} bids={book.bids} />
    <TradeHistory trades={trades} />
  </div>
)

export default connect(
  state => ({
    book: state.book,
    trades: state.trades
  })
)(MyApp)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request!

Acknowledgements

More Repositories

1

react-web3-network-status

Simple and subtle Ethereum network status indicator inspired by MetaMask. πŸŒπŸ”Œ
JavaScript
56
star
2

gatsby-plugin-purify-css

Gatsby plugin for removing unused CSS in production.
JavaScript
27
star
3

yfr-dot-com

My personal site, built with Gatsby.js
JavaScript
12
star
4

babel-plugin-syntax-exists

Allows parsing of an existential check in Babel.
JavaScript
6
star
5

build-your-own-lisp

Notes and code as I read Build Your Own Lisp
C
6
star
6

coolify-aws

How to run your own personal Coolify instance on AWS
HCL
5
star
7

react-redux-collect

Helpful function for connecting redux state and actions to React components.
JavaScript
5
star
8

clojure-koans-solutions

My solutions to the Clojure Koans at http://clojurekoans.com/
Clojure
5
star
9

react-redux-connect-helpers

Helpful set of functions for connecting redux state to react components.
JavaScript
4
star
10

gatsby-truffle-starter

Gatsby starter with the Truffle Ethereum development framework
JavaScript
4
star
11

crypto-pricefeed

Crypto pricefeed API example using Nomics and GraphQL
JavaScript
3
star
12

gatsby-plugin-github-pages

Gatsby plugin that deploys to Github Pages post-build.
CSS
3
star
13

gulp-frontend

Gulp frontend workflow using Coffeescript, Sass, Neat, & Bourbon
HTML
2
star
14

lldb-basics

A basic overview of lldb.
2
star
15

shiny-new

JavaScript
2
star
16

cryptofaucet

Faucet directory for busy crypto devs. https://cryptofaucet.dev
TypeScript
1
star
17

image-reveal

JavaScript
1
star
18

scope-types

Helper function for scoping a list of action types.
JavaScript
1
star
19

range-life

A range utility that no one asked for.
JavaScript
1
star
20

gran-fondo

JavaScript
1
star
21

immutable-sorted-map

SortedMap implemented for Immutable.js
JavaScript
1
star
22

csv-xyz

Tool for re-mapping csv files.
TypeScript
1
star
23

my-first-dapp

Playing around with truffle, solidity, and web3
JavaScript
1
star
24

ledger-web-example

JavaScript
1
star
25

finite-countdown

Countdown plugin that accounts for timezone.
CoffeeScript
1
star