@senpi/trading-recipe 1.0.70 → 1.0.71
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/README.md +1 -1
- package/dist/actions/close-position/close-position.action.js +4 -4
- package/dist/actions/close-position/close-position.action.js.map +1 -1
- package/dist/actions/open-position/open-position.action.d.ts.map +1 -1
- package/dist/actions/open-position/open-position.action.js +4 -5
- package/dist/actions/open-position/open-position.action.js.map +1 -1
- package/dist/actions/types.d.ts +1 -1
- package/dist/actions/types.d.ts.map +1 -1
- package/dist/cli/guide-commands.d.ts +1 -0
- package/dist/cli/guide-commands.d.ts.map +1 -1
- package/dist/cli/guide-commands.js +102 -12
- package/dist/cli/guide-commands.js.map +1 -1
- package/dist/cli/senpi-commands.d.ts.map +1 -1
- package/dist/cli/senpi-commands.js +27 -10
- package/dist/cli/senpi-commands.js.map +1 -1
- package/dist/dsl/plugin/index.d.ts.map +1 -1
- package/dist/dsl/plugin/index.js +3 -4
- package/dist/dsl/plugin/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -15
- package/dist/index.js.map +1 -1
- package/dist/runtime/build-action-scan-payload.d.ts +4 -4
- package/dist/runtime/build-action-scan-payload.d.ts.map +1 -1
- package/dist/runtime/build-action-scan-payload.js +15 -19
- package/dist/runtime/build-action-scan-payload.js.map +1 -1
- package/dist/runtime/create-action-context.d.ts +3 -3
- package/dist/runtime/create-action-context.d.ts.map +1 -1
- package/dist/runtime/create-action-context.js +5 -5
- package/dist/runtime/create-action-context.js.map +1 -1
- package/dist/runtime/create-actions.d.ts +1 -1
- package/dist/runtime/create-actions.d.ts.map +1 -1
- package/dist/runtime/create-actions.js +2 -3
- package/dist/runtime/create-actions.js.map +1 -1
- package/dist/runtime/create-runtime-context.d.ts +12 -12
- package/dist/runtime/create-runtime-context.d.ts.map +1 -1
- package/dist/runtime/create-runtime-context.js +15 -13
- package/dist/runtime/create-runtime-context.js.map +1 -1
- package/dist/runtime/create-scanner-module.d.ts +1 -1
- package/dist/runtime/create-scanner-module.js +4 -4
- package/dist/runtime/create-scanner-module.js.map +1 -1
- package/dist/runtime/index.d.ts +4 -4
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/load-trading-recipe.d.ts +2 -2
- package/dist/runtime/load-trading-recipe.d.ts.map +1 -1
- package/dist/runtime/load-trading-recipe.js +22 -10
- package/dist/runtime/load-trading-recipe.js.map +1 -1
- package/dist/runtime/map-strategies-registration.d.ts +6 -4
- package/dist/runtime/map-strategies-registration.d.ts.map +1 -1
- package/dist/runtime/map-strategies-registration.js +14 -22
- package/dist/runtime/map-strategies-registration.js.map +1 -1
- package/dist/runtime/map-strategies.d.ts +6 -4
- package/dist/runtime/map-strategies.d.ts.map +1 -1
- package/dist/runtime/map-strategies.js +42 -44
- package/dist/runtime/map-strategies.js.map +1 -1
- package/dist/runtime/recipe-version.d.ts +15 -0
- package/dist/runtime/recipe-version.d.ts.map +1 -0
- package/dist/runtime/recipe-version.js +25 -0
- package/dist/runtime/recipe-version.js.map +1 -0
- package/dist/runtime/reconcile-state.d.ts +1 -1
- package/dist/runtime/reconcile-state.js +1 -1
- package/dist/runtime/run.d.ts +2 -0
- package/dist/runtime/run.d.ts.map +1 -1
- package/dist/runtime/run.js +1 -0
- package/dist/runtime/run.js.map +1 -1
- package/dist/runtime/runtime.d.ts +3 -4
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +16 -38
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/state-layout.d.ts +48 -0
- package/dist/runtime/state-layout.d.ts.map +1 -0
- package/dist/runtime/state-layout.js +87 -0
- package/dist/runtime/state-layout.js.map +1 -0
- package/dist/runtime/strategy-registry.d.ts +17 -0
- package/dist/runtime/strategy-registry.d.ts.map +1 -1
- package/dist/runtime/strategy-registry.js +32 -0
- package/dist/runtime/strategy-registry.js.map +1 -1
- package/dist/runtime/trading-recipe-schema.d.ts +16 -634
- package/dist/runtime/trading-recipe-schema.d.ts.map +1 -1
- package/dist/runtime/trading-recipe-schema.js +3 -9
- package/dist/runtime/trading-recipe-schema.js.map +1 -1
- package/dist/scanners/engine/engine.d.ts.map +1 -1
- package/dist/scanners/engine/engine.js +0 -7
- package/dist/scanners/engine/engine.js.map +1 -1
- package/dist/scanners/runtime-module.d.ts +5 -6
- package/dist/scanners/runtime-module.d.ts.map +1 -1
- package/dist/scanners/runtime-module.js +7 -10
- package/dist/scanners/runtime-module.js.map +1 -1
- package/dist/scripts/run-dsl-standalone-live.js +5 -7
- package/dist/scripts/run-dsl-standalone-live.js.map +1 -1
- package/dist/scripts/run-dsl-standalone-mock.js +3 -4
- package/dist/scripts/run-dsl-standalone-mock.js.map +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/dist/types/runtime.d.ts.map +1 -1
- package/examples/strategies/dsl-showcase.yaml +8 -3
- package/examples/strategies/dsl.yaml +4 -5
- package/examples/strategies/fox-minimal-loosened.yaml +8 -9
- package/examples/strategies/fox-minimal.yaml +8 -9
- package/examples/strategies/minimal.yaml +7 -8
- package/examples/strategies/viper.yaml +7 -8
- package/examples/strategies/wolf.yaml +7 -8
- package/examples/yamls/sample-with-dsl-and-emerging-movers.yaml +9 -10
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -8,12 +8,17 @@ description: >
|
|
|
8
8
|
for position lifecycle events (open, close, edit, flip) and wires them
|
|
9
9
|
into the DSL exit engine for automated trailing stop-loss management.
|
|
10
10
|
|
|
11
|
+
|
|
11
12
|
notifications:
|
|
12
13
|
telegram_chat_id: "${TELEGRAM_CHAT_ID}"
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
strategy:
|
|
16
|
+
wallet: "${WALLET_ADDRESS}"
|
|
17
|
+
budget: 500
|
|
18
|
+
slots: 2
|
|
19
|
+
margin_per_slot: 200
|
|
20
|
+
trading_risk: conservative
|
|
21
|
+
enabled: true
|
|
17
22
|
|
|
18
23
|
# ── SCANNERS ──
|
|
19
24
|
scanners:
|
|
@@ -5,12 +5,11 @@ description: >
|
|
|
5
5
|
for position lifecycle events (open, close, edit, flip) and wires them
|
|
6
6
|
into the DSL exit engine for automated trailing stop-loss management.
|
|
7
7
|
|
|
8
|
-
# ──
|
|
8
|
+
# ── STRATEGY ──
|
|
9
9
|
# Minimal: only wallet address + optional fields (no budget/slots/margin needed)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
enabled: true
|
|
10
|
+
strategy:
|
|
11
|
+
wallet: "${WALLET_ADDRESS}"
|
|
12
|
+
enabled: true
|
|
14
13
|
|
|
15
14
|
# ── SCANNERS ──
|
|
16
15
|
scanners:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: fox-minimal-loosened
|
|
2
|
-
version: 1.
|
|
2
|
+
version: 1.0.0
|
|
3
3
|
description: >
|
|
4
4
|
FOX v1.6 — loosened configuration for functional evaluation.
|
|
5
5
|
Scanner thresholds relaxed, LLM gauntlet simplified, and slots increased
|
|
@@ -8,14 +8,13 @@ description: >
|
|
|
8
8
|
notifications:
|
|
9
9
|
telegram_chat_id: "${TELEGRAM_CHAT_ID}"
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enabled: true
|
|
11
|
+
strategy:
|
|
12
|
+
wallet: "${FOX_WALLET}"
|
|
13
|
+
budget: "100"
|
|
14
|
+
slots: 3
|
|
15
|
+
margin_per_slot: 30
|
|
16
|
+
trading_risk: aggressive
|
|
17
|
+
enabled: true
|
|
19
18
|
|
|
20
19
|
scanners:
|
|
21
20
|
# References in depends_on/actions use these scanner names, not the built-in types.
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
name: fox-minimal
|
|
2
|
-
version: 1.
|
|
2
|
+
version: 1.0.0
|
|
3
3
|
description: >
|
|
4
4
|
FOX v1.6 — autonomous momentum trading via senpi-trading-recipe.
|
|
5
5
|
Emerging movers detect first jumps, LLM entry filter applies the five-layer
|
|
6
6
|
gauntlet, DSL v5.3.1 manages trailing exits, watchdog guards margin health,
|
|
7
7
|
market-regime provides macro context, sm-flip detects conviction reversals.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
enabled: true
|
|
9
|
+
strategy:
|
|
10
|
+
wallet: "${FOX_WALLET}"
|
|
11
|
+
budget: "500"
|
|
12
|
+
slots: 1
|
|
13
|
+
margin_per_slot: 100
|
|
14
|
+
trading_risk: aggressive
|
|
15
|
+
enabled: true
|
|
17
16
|
|
|
18
17
|
scanners:
|
|
19
18
|
# References in depends_on/actions use these scanner names, not the built-in types.
|
|
@@ -2,14 +2,13 @@ name: minimal
|
|
|
2
2
|
version: 1.0.0
|
|
3
3
|
description: Watch-only strategy — logs signals, opens no positions.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enabled: true
|
|
5
|
+
strategy:
|
|
6
|
+
wallet: "${WALLET_ADDRESS}"
|
|
7
|
+
budget: "0"
|
|
8
|
+
slots: 1
|
|
9
|
+
margin_per_slot: 0
|
|
10
|
+
trading_risk: conservative
|
|
11
|
+
enabled: true
|
|
13
12
|
|
|
14
13
|
scanners:
|
|
15
14
|
- name: emerging_movers
|
|
@@ -2,14 +2,13 @@ name: viper
|
|
|
2
2
|
version: 1.0.0
|
|
3
3
|
description: Moderate — candle-based breakouts via prescreener + momentum.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enabled: true
|
|
5
|
+
strategy:
|
|
6
|
+
wallet: "${WALLET_ADDRESS}"
|
|
7
|
+
budget: 2000
|
|
8
|
+
slots: 4
|
|
9
|
+
margin_per_slot: 400
|
|
10
|
+
trading_risk: moderate
|
|
11
|
+
enabled: true
|
|
13
12
|
|
|
14
13
|
scanners:
|
|
15
14
|
- name: prescreener
|
|
@@ -2,14 +2,13 @@ name: wolf
|
|
|
2
2
|
version: 1.0.0
|
|
3
3
|
description: Aggressive — early entry on FIRST_JUMP from emerging_movers.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enabled: true
|
|
5
|
+
strategy:
|
|
6
|
+
wallet: "${WALLET_ADDRESS}"
|
|
7
|
+
budget: 1000
|
|
8
|
+
slots: 3
|
|
9
|
+
margin_per_slot: 300
|
|
10
|
+
trading_risk: aggressive
|
|
11
|
+
enabled: true
|
|
13
12
|
|
|
14
13
|
scanners:
|
|
15
14
|
- name: emerging_movers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: wolf #required - name of the trading-recipe
|
|
2
|
-
version:
|
|
2
|
+
version: 1.0.0 #required
|
|
3
3
|
description: > #required
|
|
4
4
|
Autonomous aggressive multi-strategy trading. Enter early on emerging movers,
|
|
5
5
|
protect with tight DSL, cut dead weight fast, rotate into strength.
|
|
@@ -8,15 +8,14 @@ description: > #required
|
|
|
8
8
|
# notifications:
|
|
9
9
|
# telegram_chat_id: "123456789"
|
|
10
10
|
|
|
11
|
-
# ──
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
enabled: true
|
|
11
|
+
# ── STRATEGY ──
|
|
12
|
+
strategy: #required
|
|
13
|
+
wallet: "0x71ce3f0e27c178cbdcf01c4d068278034df75fbc"
|
|
14
|
+
budget: "100"
|
|
15
|
+
slots: 3
|
|
16
|
+
margin_per_slot: 150
|
|
17
|
+
trading_risk: aggressive
|
|
18
|
+
enabled: true
|
|
20
19
|
|
|
21
20
|
# ── SCANNERS ──
|
|
22
21
|
scanners: #required
|
package/openclaw.plugin.json
CHANGED