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 1.0.0 to 1.0.1

47

lib/bitfinex.js

@@ -14,2 +14,3 @@ // Generated by CoffeeScript 1.8.0

this.url = "https://api.bitfinex.com";
this.version = 'v1';
this.key = key;

@@ -29,3 +30,3 @@ this.secret = secret;

}
path = '/v1/' + sub_path;
path = '/' + this.version + '/' + sub_path;
url = this.url + path;

@@ -355,2 +356,46 @@ nonce = JSON.stringify(this._nonce());

/*
POST /v1/withdraw
Parameters:
'withdraw_type' :string (can be "bitcoin", "litecoin" or "darkcoin" or "mastercoin")
'walletselected' :string (the origin of the wallet to withdraw from, can be "trading", "exchange", or "deposit")
'amount' :decimal (amount to withdraw)
'address' :address (destination address for withdrawal)
*/
Bitfinex.prototype.withdraw = function(withdraw_type, walletselected, amount, address, cb) {
var params;
params = {
withdraw_type: withdraw_type,
walletselected: walletselected,
amount: amount,
address: address
};
return this.make_request('withdraw', params, cb);
};
/*
POST /v1/transfer
Parameters:
‘amount’: decimal (amount to transfer)
‘currency’: string, currency of funds to transfer
‘walletfrom’: string. Wallet to transfer from
‘walletto’: string. Wallet to transfer to
*/
Bitfinex.prototype.transfer = function(amount, currency, walletfrom, walletto, cb) {
var params;
params = {
amount: amount,
currency: currency,
walletfrom: walletfrom,
walletto: walletto
};
return this.make_request('transfer', params, cb);
};
return Bitfinex;

@@ -357,0 +402,0 @@

2

package.json
{
"name": "bitfinex",
"version": "1.0.0",
"version": "1.0.1",
"gypfile": true,

@@ -5,0 +5,0 @@ "scripts": {

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