@tradejs/node 2.0.15 → 2.0.17
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/ai.js +11 -2
- package/dist/ai.mjs +1 -1
- package/dist/backtest.js +236 -97
- package/dist/backtest.mjs +21 -64
- package/dist/{chunk-FEQR4XGR.mjs → chunk-3BP3ETAD.mjs} +213 -32
- package/dist/{chunk-DPHKRDD5.mjs → chunk-WK5EUCX5.mjs} +11 -2
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/strategies.d.mts +3 -0
- package/dist/strategies.d.ts +3 -0
- package/dist/strategies.js +770 -564
- package/dist/strategies.mjs +42 -24
- package/package.json +4 -4
package/dist/strategies.d.mts
CHANGED
|
@@ -86,6 +86,7 @@ declare const enrichSignalWithBinanceMarketContext: (params: {
|
|
|
86
86
|
interval?: MarketFeatureInterval;
|
|
87
87
|
breadthUniverse?: string;
|
|
88
88
|
maxAgeMs?: number;
|
|
89
|
+
abortSignal?: AbortSignal;
|
|
89
90
|
}) => Promise<boolean>;
|
|
90
91
|
|
|
91
92
|
declare const BINANCE_BREADTH_UNIVERSE_KEYS: readonly ["top5", "top10", "top30", "top50", "top100"];
|
|
@@ -162,6 +163,7 @@ declare const enrichSignalWithCoinMarketCapContext: (params: {
|
|
|
162
163
|
env: string;
|
|
163
164
|
enabled?: boolean;
|
|
164
165
|
maxAgeMs?: number;
|
|
166
|
+
abortSignal?: AbortSignal;
|
|
165
167
|
}) => Promise<boolean>;
|
|
166
168
|
|
|
167
169
|
declare const enrichSignalWithHyperliquidWhaleContext: (params: {
|
|
@@ -170,6 +172,7 @@ declare const enrichSignalWithHyperliquidWhaleContext: (params: {
|
|
|
170
172
|
enabled?: boolean;
|
|
171
173
|
interval?: MarketFeatureInterval;
|
|
172
174
|
maxAgeMs?: number;
|
|
175
|
+
abortSignal?: AbortSignal;
|
|
173
176
|
}) => Promise<boolean>;
|
|
174
177
|
|
|
175
178
|
type CloseOppositePositionsBeforeOpenOptions = {
|
package/dist/strategies.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ declare const enrichSignalWithBinanceMarketContext: (params: {
|
|
|
86
86
|
interval?: MarketFeatureInterval;
|
|
87
87
|
breadthUniverse?: string;
|
|
88
88
|
maxAgeMs?: number;
|
|
89
|
+
abortSignal?: AbortSignal;
|
|
89
90
|
}) => Promise<boolean>;
|
|
90
91
|
|
|
91
92
|
declare const BINANCE_BREADTH_UNIVERSE_KEYS: readonly ["top5", "top10", "top30", "top50", "top100"];
|
|
@@ -162,6 +163,7 @@ declare const enrichSignalWithCoinMarketCapContext: (params: {
|
|
|
162
163
|
env: string;
|
|
163
164
|
enabled?: boolean;
|
|
164
165
|
maxAgeMs?: number;
|
|
166
|
+
abortSignal?: AbortSignal;
|
|
165
167
|
}) => Promise<boolean>;
|
|
166
168
|
|
|
167
169
|
declare const enrichSignalWithHyperliquidWhaleContext: (params: {
|
|
@@ -170,6 +172,7 @@ declare const enrichSignalWithHyperliquidWhaleContext: (params: {
|
|
|
170
172
|
enabled?: boolean;
|
|
171
173
|
interval?: MarketFeatureInterval;
|
|
172
174
|
maxAgeMs?: number;
|
|
175
|
+
abortSignal?: AbortSignal;
|
|
173
176
|
}) => Promise<boolean>;
|
|
174
177
|
|
|
175
178
|
type CloseOppositePositionsBeforeOpenOptions = {
|