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

kraken-exchange

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kraken-exchange - npm Package Compare versions

Comparing version 1.1.6 to 1.2.0

32

lib/kraken.js

@@ -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",

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