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

taapi-strategies

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taapi-strategies - npm Package Compare versions

Comparing version 1.1.70 to 1.1.71

6

dist/cjs/resources/Database.js

@@ -209,3 +209,3 @@ "use strict";

}
getAllocationStats() {
getAllocationStats(direction = null) {
return __awaiter(this, void 0, void 0, function* () {

@@ -221,6 +221,6 @@ let activeTradesCount = yield this.countActiveTrades();

let isMaxedOut = currentAllocation > allocationMaxTotal;
if (allocationMaxLong > 0 && activeLongTradesCount >= allocationMaxLong) {
if (direction == "long" && allocationMaxLong > 0 && activeLongTradesCount >= allocationMaxLong) {
isMaxedOut = true;
}
if (allocationMaxShort > 0 && activeShortTradesCount >= allocationMaxShort) {
if (direction == "short" && allocationMaxShort > 0 && activeShortTradesCount >= allocationMaxShort) {
isMaxedOut = true;

@@ -227,0 +227,0 @@ }

@@ -209,3 +209,3 @@ "use strict";

}
getAllocationStats() {
getAllocationStats(direction = null) {
return __awaiter(this, void 0, void 0, function* () {

@@ -221,6 +221,6 @@ let activeTradesCount = yield this.countActiveTrades();

let isMaxedOut = currentAllocation > allocationMaxTotal;
if (allocationMaxLong > 0 && activeLongTradesCount >= allocationMaxLong) {
if (direction == "long" && allocationMaxLong > 0 && activeLongTradesCount >= allocationMaxLong) {
isMaxedOut = true;
}
if (allocationMaxShort > 0 && activeShortTradesCount >= allocationMaxShort) {
if (direction == "short" && allocationMaxShort > 0 && activeShortTradesCount >= allocationMaxShort) {
isMaxedOut = true;

@@ -227,0 +227,0 @@ }

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

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

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