Comparing version 0.1.10 to 0.2.0
@@ -174,12 +174,7 @@ var querystring = require("querystring"); | ||
Bitstamp.prototype.user_transactions = function(limit, callback) { | ||
Bitstamp.prototype.user_transactions = function(options, callback) { | ||
if(!callback) { | ||
callback = limit; | ||
limit = undefined; | ||
callback = options; | ||
options = undefined; | ||
} | ||
var options; | ||
if(typeof limit === 'object') | ||
options = limit; | ||
else | ||
options = {limit: limit}; | ||
this._post('user_transactions', callback, options); | ||
@@ -186,0 +181,0 @@ } |
@@ -18,3 +18,3 @@ var Bitstamp = require('./bitstamp.js'); | ||
// privateBitstamp.balance(console.log); | ||
// privateBitstamp.user_transactions(100, console.log); | ||
// privateBitstamp.user_transactions({limit: 10, offset: 5, sort: 'asc'}, console.log); | ||
// privateBitstamp.open_orders(console.log); | ||
@@ -21,0 +21,0 @@ // privateBitstamp.cancel_order(id, console.log); |
{ | ||
"name": "bitstamp", | ||
"version": "0.1.10", | ||
"version": "0.2.0", | ||
"description": "Bitstamp REST API wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
10296
221