Comparing version 0.3.8 to 0.4.0
@@ -242,9 +242,41 @@ // Generated by CoffeeScript 1.8.0 | ||
Bitfinex.prototype.past_trades = function(symbol, timestamp, limit_trades, cb) { | ||
var params; | ||
Bitfinex.prototype.movements = function(currency, options, cb) { | ||
var err, option, params, value; | ||
params = { | ||
symbol: symbol, | ||
timestamp: timestamp, | ||
limit_trades: limit_trades | ||
currency: currency | ||
}; | ||
if (typeof options === 'function') { | ||
cb = options; | ||
} else { | ||
try { | ||
for (option in options) { | ||
value = options[option]; | ||
params[option] = value; | ||
} | ||
} catch (_error) { | ||
err = _error; | ||
return cb(err); | ||
} | ||
} | ||
return this.make_request('history/movements', params, cb); | ||
}; | ||
Bitfinex.prototype.past_trades = function(symbol, options, cb) { | ||
var err, option, params, value; | ||
params = { | ||
symbol: symbol | ||
}; | ||
if (typeof options === 'function') { | ||
cb = options; | ||
} else { | ||
try { | ||
for (option in options) { | ||
value = options[option]; | ||
params[option] = value; | ||
} | ||
} catch (_error) { | ||
err = _error; | ||
return cb(err); | ||
} | ||
} | ||
return this.make_request('mytrades', params, cb); | ||
@@ -251,0 +283,0 @@ }; |
{ | ||
"name": "bitfinex", | ||
"version": "0.3.8", | ||
"version": "0.4.0", | ||
"gypfile": true, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -67,4 +67,6 @@ This is a node.js wrapper for the Bitfinex [API](https://bitfinex.com/pages/api). | ||
`past_trades(symbol, timestamp, limit_trades, cb)` | ||
`movements(currency, [options,] cb)` | ||
`past_trades(symbol, [options,] cb)` | ||
`new_offer(currency, amount, rate, period, direction, insurance_option, cb)` | ||
@@ -71,0 +73,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12243
316
92