Comparing version 1.0.0 to 1.0.1
@@ -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 @@ |
{ | ||
"name": "bitfinex", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"gypfile": true, | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
13848
353