Comparing version 0.3.6 to 0.3.7
// Generated by CoffeeScript 1.8.0 | ||
(function() { | ||
var Bitfinex, crypto, request, | ||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
var Bitfinex, crypto, request; | ||
@@ -116,5 +115,3 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; | ||
Bitfinex.prototype.orderbook = function(symbol, options, cb) { | ||
var allowed_options, err, index, option, query_string, uri, value; | ||
allowed_options = ['limit_bids', 'limit_asks', 'group']; | ||
query_string = '/?'; | ||
var err, index, option, query_string, uri, value; | ||
index = 0; | ||
@@ -128,8 +125,6 @@ uri = 'book/' + symbol; | ||
value = options[option]; | ||
if (__indexOf.call(allowed_options, option) >= 0) { | ||
if (index++ > 1) { | ||
query_string += '&' + option + '=' + value; | ||
} else { | ||
query_string += option + '=' + value; | ||
} | ||
if (index++ > 1) { | ||
query_string += '&' + option + '=' + value; | ||
} else { | ||
query_string = '/?' + option + '=' + value; | ||
} | ||
@@ -136,0 +131,0 @@ } |
{ | ||
"name": "bitfinex", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"gypfile": true, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -43,2 +43,3 @@ This is a node.js wrapper for the Bitfinex [API](https://bitfinex.com/pages/api). | ||
`symbols_details(cb)` | ||
@@ -45,0 +46,0 @@ ##### AUTHENTICATED REQUESTS |
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
90
11428
285