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

taapi-strategies

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taapi-strategies - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

@@ -123,8 +123,10 @@ "use strict";

let symbolInfo = utilities_1.default.getSymbolInfo(parameters["symbol"]);
response.addedParams["baseAsset"] = symbolInfo["baseAsset"];
response.addedParams["quoteAsset"] = symbolInfo["quoteAsset"];
response.addedParams["base-asset"] = symbolInfo["baseAsset"];
response.addedParams["quote-asset"] = symbolInfo["quoteAsset"];
if (parameters["allocation"]) {
let symbolInfo = utilities_1.default.getSymbolInfo(parameters["symbol"]);
let quantity = yield this.calculateQuantity(symbolInfo["quoteAsset"], parameters["current-price"], parameters["allocation"]);
response.addedParams["quantity"] = quantity;
if (quantity) {
response.addedParams["quantity"] = quantity;
}
}

@@ -131,0 +133,0 @@ return response;

@@ -123,8 +123,10 @@ "use strict";

let symbolInfo = utilities_1.default.getSymbolInfo(parameters["symbol"]);
response.addedParams["baseAsset"] = symbolInfo["baseAsset"];
response.addedParams["quoteAsset"] = symbolInfo["quoteAsset"];
response.addedParams["base-asset"] = symbolInfo["baseAsset"];
response.addedParams["quote-asset"] = symbolInfo["quoteAsset"];
if (parameters["allocation"]) {
let symbolInfo = utilities_1.default.getSymbolInfo(parameters["symbol"]);
let quantity = yield this.calculateQuantity(symbolInfo["quoteAsset"], parameters["current-price"], parameters["allocation"]);
response.addedParams["quantity"] = quantity;
if (quantity) {
response.addedParams["quantity"] = quantity;
}
}

@@ -131,0 +133,0 @@ return response;

{
"name": "taapi-strategies",
"version": "1.0.11",
"version": "1.0.12",
"description": "A TAAPI.IO Strategies framework and helper package",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js",