Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitfinex

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitfinex - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

17

lib/bitfinex.js
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc