Giter Club home page Giter Club logo

broadcastserver's Introduction

Crypto Market Monitor

The goal of the Crypto Market Monitor Project is to make market data more accessible. One challenge to anyone wishing to do anything with bitcoin market data (and any other cryptocurrency data), is the variety of markets. Each has their own api and data format. The Market Monitor project makes it easy to get data from many exchanges from one source in a standardized format. We are planning on adding support for additional exchanges, and additional currency pairs in the near future.

Disclaimer: This software and its associated data is provided as is, with no guarantee of validity or accuracy.

BroadcastServer

Broadcasts cryptocurrency market data.

[NPM module] (https://www.npmjs.org/package/market-monitor)

For example usage, see [btc.marketmonitor.io] (http://btc.marketmonitor.io)

If there is any data you'd like to see added or any comments or critiques of our current data streams, please open an issue. We are always looking for feedback and any improvements we can make.

Url: http://api.marketmonitor.io:80


Socket.io Channels


Trades
Emits a trade event whenever a trade occurs and passes the associated trade data.
/BTC/USD/trades
Event: 'trade'
Data Format:

{
  exchange: String,
  date: Date,
  price: Number,
  amount: Number,
  currency: 'BTC',
  tCurrency: 'USD',
  exchangeTradeID: String
}

Market Summary Statistics
Emits an object containing market summary statistics.
/BTC/USD/summary
Event: 'update'
Data Format:

{
  vwap: Number,
  volume: Number,
  high: Number,
  low: Number,
  variance: Number,
  standardDeviation: Number,
  coefficientOfVariation: Number,
  range: Number,
  numTrades: Number
}

Price Over Time Chart Data
Emits an array of datapoints useful for making price over time charts.
/BTC/USD/priceCharts/:timeframe
Where timeframe is the timeframe of each datapoint. Options:
oneMinute
fiveMinutes
fifteenMinutes
oneHour
Event: 'update'

[
  {
    date; Date,
    high: Number,
    low: Number,
    open: Number,
    close: Number,
    vwap: Number,
    volume: Number,
    numTrades: Number
  }
]

Price Distribution Chart Data
Emits an array of datapoints useful for making price distribution charts
/BTC/USD/priceDistribution
Event: 'update'
Data Format:

[
  {
    exchange: String,
    price: Number,
    volume: Number
  },
  ...
]

Example Usage

Include Socket.io:

<script src="https://cdn.socket.io/socket.io-1.0.6.js"></script>

Then:

<script>
  var trade = io('http://api.marketmonitor.io:80/BTC/USD/trades');
  trade.on('trade', function(trade) {
    console.log('Trade:', trade);
  });

  var summary = io('http://api.marketmonitor.io:80/BTC/USD/summary');
  summary.on('update', function(data) {
    console.log('Summary Data', data);
  });
</script>

Endpoints in progress

These endpoints are intended to give details or particular statistics including highs, lows, averages, and percentiles. Current values are recalculated every 30 seconds and daily values are used for highs, lows, and averages.

**/BTC/USD/standardDeviation**
**/BTC/USD/coefficientOfVariation**
**/BTC/USD/range**
**/BTC/USD/volume**

Currently Supported Markets

  • Bitstamp
  • BTC-e
  • hitbtc
  • Bitfinex

broadcastserver's People

Contributors

danielstreit avatar

Watchers

Zvi avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.