Skip to content

Instantly share code, notes, and snippets.

@mastercyb
Last active November 1, 2015 14:09
Show Gist options
  • Save mastercyb/72b1e09bd04d65cc3b65 to your computer and use it in GitHub Desktop.
Save mastercyb/72b1e09bd04d65cc3b65 to your computer and use it in GitHub Desktop.

XChange API

REST Service for Cryptoproperty Market Analysis

Requirements

  • Should be based on XChange library.
  • Ready to deploy docker container with simple installation doc.
  • Basic unit test coverage.
  • Should be able to provide updates at least every minute.

Get

/markets

Retruns an array of every market from all exchanges using output convention

Output

{
  "timestamp": 1247592834,
  "market": "http://poloniex.com",
  "base": "Bitcoin",
  "quote": "Ethereum", 
  "last": {
    "native": 240.677453,
    "usd": 240.677453,
    "btc": 1
  },
  "volume": {
    "native": 2900,
    "usd": 240887,
    "btc": 19764
  },
}

base and quote resolves from Chaingear

Calculation of usd and btc tbd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment