added api version information

This commit is contained in:
Josh Harvey 2014-06-28 15:21:07 -04:00
parent 3ed2a96263
commit ae1a0e80a2

View file

@ -9,6 +9,8 @@ var logger = require('./logger');
var STALE_TICKER = 180000;
var STALE_BALANCE = 180000;
var API_VERSION = 1;
Error.prototype.toJSON = function () {
var self = this;
var ret = {};
@ -47,6 +49,7 @@ var poll = function(req, res) {
res.json({
err: null,
version: API_VERSION,
rate: rate * _trader.config.exchanges.settings.commission,
fiat: fiatBalance,
locale: _trader.config.brain.locale,