@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.
Files changed (106) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/close-position/close-position.action.js +4 -4
  3. package/dist/actions/close-position/close-position.action.js.map +1 -1
  4. package/dist/actions/open-position/open-position.action.d.ts.map +1 -1
  5. package/dist/actions/open-position/open-position.action.js +4 -5
  6. package/dist/actions/open-position/open-position.action.js.map +1 -1
  7. package/dist/actions/types.d.ts +1 -1
  8. package/dist/actions/types.d.ts.map +1 -1
  9. package/dist/cli/guide-commands.d.ts +1 -0
  10. package/dist/cli/guide-commands.d.ts.map +1 -1
  11. package/dist/cli/guide-commands.js +102 -12
  12. package/dist/cli/guide-commands.js.map +1 -1
  13. package/dist/cli/senpi-commands.d.ts.map +1 -1
  14. package/dist/cli/senpi-commands.js +27 -10
  15. package/dist/cli/senpi-commands.js.map +1 -1
  16. package/dist/dsl/plugin/index.d.ts.map +1 -1
  17. package/dist/dsl/plugin/index.js +3 -4
  18. package/dist/dsl/plugin/index.js.map +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +72 -15
  22. package/dist/index.js.map +1 -1
  23. package/dist/runtime/build-action-scan-payload.d.ts +4 -4
  24. package/dist/runtime/build-action-scan-payload.d.ts.map +1 -1
  25. package/dist/runtime/build-action-scan-payload.js +15 -19
  26. package/dist/runtime/build-action-scan-payload.js.map +1 -1
  27. package/dist/runtime/create-action-context.d.ts +3 -3
  28. package/dist/runtime/create-action-context.d.ts.map +1 -1
  29. package/dist/runtime/create-action-context.js +5 -5
  30. package/dist/runtime/create-action-context.js.map +1 -1
  31. package/dist/runtime/create-actions.d.ts +1 -1
  32. package/dist/runtime/create-actions.d.ts.map +1 -1
  33. package/dist/runtime/create-actions.js +2 -3
  34. package/dist/runtime/create-actions.js.map +1 -1
  35. package/dist/runtime/create-runtime-context.d.ts +12 -12
  36. package/dist/runtime/create-runtime-context.d.ts.map +1 -1
  37. package/dist/runtime/create-runtime-context.js +15 -13
  38. package/dist/runtime/create-runtime-context.js.map +1 -1
  39. package/dist/runtime/create-scanner-module.d.ts +1 -1
  40. package/dist/runtime/create-scanner-module.js +4 -4
  41. package/dist/runtime/create-scanner-module.js.map +1 -1
  42. package/dist/runtime/index.d.ts +4 -4
  43. package/dist/runtime/index.d.ts.map +1 -1
  44. package/dist/runtime/index.js +3 -3
  45. package/dist/runtime/index.js.map +1 -1
  46. package/dist/runtime/load-trading-recipe.d.ts +2 -2
  47. package/dist/runtime/load-trading-recipe.d.ts.map +1 -1
  48. package/dist/runtime/load-trading-recipe.js +22 -10
  49. package/dist/runtime/load-trading-recipe.js.map +1 -1
  50. package/dist/runtime/map-strategies-registration.d.ts +6 -4
  51. package/dist/runtime/map-strategies-registration.d.ts.map +1 -1
  52. package/dist/runtime/map-strategies-registration.js +14 -22
  53. package/dist/runtime/map-strategies-registration.js.map +1 -1
  54. package/dist/runtime/map-strategies.d.ts +6 -4
  55. package/dist/runtime/map-strategies.d.ts.map +1 -1
  56. package/dist/runtime/map-strategies.js +42 -44
  57. package/dist/runtime/map-strategies.js.map +1 -1
  58. package/dist/runtime/recipe-version.d.ts +15 -0
  59. package/dist/runtime/recipe-version.d.ts.map +1 -0
  60. package/dist/runtime/recipe-version.js +25 -0
  61. package/dist/runtime/recipe-version.js.map +1 -0
  62. package/dist/runtime/reconcile-state.d.ts +1 -1
  63. package/dist/runtime/reconcile-state.js +1 -1
  64. package/dist/runtime/run.d.ts +2 -0
  65. package/dist/runtime/run.d.ts.map +1 -1
  66. package/dist/runtime/run.js +1 -0
  67. package/dist/runtime/run.js.map +1 -1
  68. package/dist/runtime/runtime.d.ts +3 -4
  69. package/dist/runtime/runtime.d.ts.map +1 -1
  70. package/dist/runtime/runtime.js +16 -38
  71. package/dist/runtime/runtime.js.map +1 -1
  72. package/dist/runtime/state-layout.d.ts +48 -0
  73. package/dist/runtime/state-layout.d.ts.map +1 -0
  74. package/dist/runtime/state-layout.js +87 -0
  75. package/dist/runtime/state-layout.js.map +1 -0
  76. package/dist/runtime/strategy-registry.d.ts +17 -0
  77. package/dist/runtime/strategy-registry.d.ts.map +1 -1
  78. package/dist/runtime/strategy-registry.js +32 -0
  79. package/dist/runtime/strategy-registry.js.map +1 -1
  80. package/dist/runtime/trading-recipe-schema.d.ts +16 -634
  81. package/dist/runtime/trading-recipe-schema.d.ts.map +1 -1
  82. package/dist/runtime/trading-recipe-schema.js +3 -9
  83. package/dist/runtime/trading-recipe-schema.js.map +1 -1
  84. package/dist/scanners/engine/engine.d.ts.map +1 -1
  85. package/dist/scanners/engine/engine.js +0 -7
  86. package/dist/scanners/engine/engine.js.map +1 -1
  87. package/dist/scanners/runtime-module.d.ts +5 -6
  88. package/dist/scanners/runtime-module.d.ts.map +1 -1
  89. package/dist/scanners/runtime-module.js +7 -10
  90. package/dist/scanners/runtime-module.js.map +1 -1
  91. package/dist/scripts/run-dsl-standalone-live.js +5 -7
  92. package/dist/scripts/run-dsl-standalone-live.js.map +1 -1
  93. package/dist/scripts/run-dsl-standalone-mock.js +3 -4
  94. package/dist/scripts/run-dsl-standalone-mock.js.map +1 -1
  95. package/dist/types/runtime.d.ts +1 -1
  96. package/dist/types/runtime.d.ts.map +1 -1
  97. package/examples/strategies/dsl-showcase.yaml +8 -3
  98. package/examples/strategies/dsl.yaml +4 -5
  99. package/examples/strategies/fox-minimal-loosened.yaml +8 -9
  100. package/examples/strategies/fox-minimal.yaml +8 -9
  101. package/examples/strategies/minimal.yaml +7 -8
  102. package/examples/strategies/viper.yaml +7 -8
  103. package/examples/strategies/wolf.yaml +7 -8
  104. package/examples/yamls/sample-with-dsl-and-emerging-movers.yaml +9 -10
  105. package/openclaw.plugin.json +1 -1
  106. 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
- strategies:
15
- ref:
16
- wallet: "${WALLET_ADDRESS}"
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
- # ── STRATEGIES ──
8
+ # ── STRATEGY ──
9
9
  # Minimal: only wallet address + optional fields (no budget/slots/margin needed)
10
- strategies:
11
- tracker:
12
- wallet: "${WALLET_ADDRESS}"
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.6.0
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
- strategies:
12
- fox-primary:
13
- wallet: "${FOX_WALLET}"
14
- budget: "100"
15
- slots: 3
16
- margin_per_slot: 30
17
- trading_risk: aggressive
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.6.0
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
- strategies:
10
- fox-primary:
11
- wallet: "${FOX_WALLET}"
12
- budget: "500"
13
- slots: 1
14
- margin_per_slot: 100
15
- trading_risk: aggressive
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
- strategies:
6
- watch-only:
7
- wallet: "${WALLET_ADDRESS}"
8
- budget: "0"
9
- slots: 1
10
- margin_per_slot: 0
11
- trading_risk: conservative
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
- strategies:
6
- viper:
7
- wallet: "${WALLET_ADDRESS}"
8
- budget: 2000
9
- slots: 4
10
- margin_per_slot: 400
11
- trading_risk: moderate
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
- strategies:
6
- wolf:
7
- wallet: "${WALLET_ADDRESS}"
8
- budget: 1000
9
- slots: 3
10
- margin_per_slot: 300
11
- trading_risk: aggressive
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: 7.0.0 #required
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
- # ── STRATEGIES ──
12
- strategies: #required
13
- aggressive-momentum: #required - name of the strategy
14
- wallet: "0x71ce3f0e27c178cbdcf01c4d068278034df75fbc"
15
- budget: "100"
16
- slots: 3
17
- margin_per_slot: 150
18
- trading_risk: aggressive
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
@@ -2,7 +2,7 @@
2
2
  "id": "trading-recipe",
3
3
  "name": "Senpi Trading Recipe",
4
4
  "description": "Senpi trading recipe plugin for OpenClaw",
5
- "version": "1.0.70",
5
+ "version": "1.0.71",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senpi/trading-recipe",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Trading recipe plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",