taapi-strategies
Advanced tools
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", |
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
109772
2382
16