kraken-exchange
Advanced tools
Comparing version 1.1.6 to 1.2.0
@@ -31,10 +31,12 @@ // Generated by CoffeeScript 2.0.0-beta2 | ||
assets(...assets) { | ||
var krak; | ||
if (Array.isArray(assets[0])) { | ||
assets = assets[0]; | ||
var krak, options; | ||
options = {}; | ||
if (assets != null) { | ||
if (Array.isArray(assets[0])) { | ||
assets = assets[0]; | ||
} | ||
assets = assets.join(','); | ||
options.assets = assets; | ||
} | ||
assets = assets.join(','); | ||
krak = new KrakenPublic('Assets', { | ||
asset: assets | ||
}); | ||
krak = new KrakenPublic('Assets', options); | ||
return krak.api().then((response) => { | ||
@@ -46,10 +48,12 @@ return response.result; | ||
assetPairs(...pairs) { | ||
var krak; | ||
if (Array.isArray(pairs[0])) { | ||
pairs = pairs[0]; | ||
var krak, options; | ||
options = {}; | ||
if (pairs != null) { | ||
if (Array.isArray(pairs[0])) { | ||
pairs = pairs[0]; | ||
} | ||
pairs = pairs.join(','); | ||
options.pairs = pairs; | ||
} | ||
pairs = pairs.join(','); | ||
krak = new KrakenPublic('AssetPairs', { | ||
pair: pairs | ||
}); | ||
krak = new KrakenPublic('AssetPairs', options); | ||
return krak.api().then((response) => { | ||
@@ -56,0 +60,0 @@ return response.result; |
{ | ||
"name": "kraken-exchange", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "Simple library to access the Kraken Exchange API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/CliffS/kraken-exchange#readme", |
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
60331
628