@tradejs/node 3.1.14 → 3.1.15-beta.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -6
- package/dist/cli.mjs +2 -6
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -2322,7 +2322,7 @@ var sendDocumentToTG = async (document, options = {}) => {
|
|
|
2322
2322
|
);
|
|
2323
2323
|
return data;
|
|
2324
2324
|
};
|
|
2325
|
-
var formatMessage = (signal, analysis,
|
|
2325
|
+
var formatMessage = (signal, analysis, _options = {}) => {
|
|
2326
2326
|
const {
|
|
2327
2327
|
symbol,
|
|
2328
2328
|
direction,
|
|
@@ -2334,14 +2334,10 @@ var formatMessage = (signal, analysis, options = {}) => {
|
|
|
2334
2334
|
orderValue,
|
|
2335
2335
|
isConfigFromBacktest,
|
|
2336
2336
|
ml,
|
|
2337
|
-
prices: { currentPrice, takeProfitPrice, stopLossPrice, riskRatio }
|
|
2338
|
-
additionalIndicators
|
|
2337
|
+
prices: { currentPrice, takeProfitPrice, stopLossPrice, riskRatio }
|
|
2339
2338
|
} = signal;
|
|
2340
|
-
const userName = options.userName || "root";
|
|
2341
2339
|
try {
|
|
2342
2340
|
const lines = [];
|
|
2343
|
-
const distance = additionalIndicators?.distance;
|
|
2344
|
-
const touches = additionalIndicators?.touches;
|
|
2345
2341
|
const formatPrices = () => {
|
|
2346
2342
|
const tpPercent = Math.abs(
|
|
2347
2343
|
(takeProfitPrice - currentPrice) / currentPrice * 100
|
package/dist/cli.mjs
CHANGED
|
@@ -735,7 +735,7 @@ var sendDocumentToTG = async (document, options = {}) => {
|
|
|
735
735
|
);
|
|
736
736
|
return data;
|
|
737
737
|
};
|
|
738
|
-
var formatMessage = (signal, analysis,
|
|
738
|
+
var formatMessage = (signal, analysis, _options = {}) => {
|
|
739
739
|
const {
|
|
740
740
|
symbol,
|
|
741
741
|
direction,
|
|
@@ -747,14 +747,10 @@ var formatMessage = (signal, analysis, options = {}) => {
|
|
|
747
747
|
orderValue,
|
|
748
748
|
isConfigFromBacktest,
|
|
749
749
|
ml,
|
|
750
|
-
prices: { currentPrice, takeProfitPrice, stopLossPrice, riskRatio }
|
|
751
|
-
additionalIndicators
|
|
750
|
+
prices: { currentPrice, takeProfitPrice, stopLossPrice, riskRatio }
|
|
752
751
|
} = signal;
|
|
753
|
-
const userName = options.userName || "root";
|
|
754
752
|
try {
|
|
755
753
|
const lines = [];
|
|
756
|
-
const distance = additionalIndicators?.distance;
|
|
757
|
-
const touches = additionalIndicators?.touches;
|
|
758
754
|
const formatPrices = () => {
|
|
759
755
|
const tpPercent = Math.abs(
|
|
760
756
|
(takeProfitPrice - currentPrice) / currentPrice * 100
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/node",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.15-beta.228",
|
|
4
4
|
"description": "Node-only runtime for the TradeJS TypeScript framework: strategies, backtests, Pine strategy loading, and plugin registries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tradejs",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@langchain/core": "^1.2.3",
|
|
91
91
|
"@langchain/openai": "^1.5.5",
|
|
92
|
-
"@tradejs/core": "^3.1.
|
|
93
|
-
"@tradejs/infra": "^3.1.
|
|
94
|
-
"@tradejs/types": "^3.1.
|
|
92
|
+
"@tradejs/core": "^3.1.15-beta.228",
|
|
93
|
+
"@tradejs/infra": "^3.1.15-beta.228",
|
|
94
|
+
"@tradejs/types": "^3.1.15-beta.228",
|
|
95
95
|
"@types/node": "^24",
|
|
96
96
|
"chalk": "4.1.2",
|
|
97
97
|
"ioredis": "5.11.1",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript": "^5.9"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@tradejs/indicators": "^3.1.
|
|
107
|
+
"@tradejs/indicators": "^3.1.15-beta.228",
|
|
108
108
|
"@tradejs/strategy-adaptive-momentum-ribbon": "3.0.2",
|
|
109
109
|
"@tradejs/strategy-hyperliquid-consensus": "3.0.2",
|
|
110
110
|
"@tradejs/strategy-kit": "3.0.3",
|