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.8 to 0.4.0

42

lib/bitfinex.js

@@ -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 @@ };

2

package.json
{
"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 @@

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