added api version information
This commit is contained in:
parent
3ed2a96263
commit
ae1a0e80a2
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue