@senpi/trading-recipe 1.0.44 → 1.0.45

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.
@@ -2,8 +2,12 @@
2
2
  # Use as a copy-paste reference when tuning exit behavior.
3
3
  name: dsl-showcase
4
4
  version: 1.0.0
5
- description: Annotated DSL exit config reference.
6
-
5
+ description: >
6
+ Annotated DSL exit config reference.
7
+ Onchain position tracker — monitors the strategy wallet on Hyperliquid
8
+ for position lifecycle events (open, close, edit, flip) and wires them
9
+ into the DSL exit engine for automated trailing stop-loss management.
10
+
7
11
  strategies:
8
12
  ref:
9
13
  wallet: "${WALLET_ADDRESS}"
@@ -13,21 +17,18 @@ strategies:
13
17
  trading_risk: conservative
14
18
  enabled: true
15
19
 
20
+ # ── SCANNERS ──
16
21
  scanners:
17
- - name: emerging_movers
18
- type: emerging_movers
19
- interval: 30s
20
- config:
21
- topN: 20
22
- minRankJump: 5
23
- minScansBeforeSignals: 2
22
+ - name: position_tracker
23
+ type: position_tracker
24
+ interval: 10s
24
25
 
26
+ # ── ACTIONS ──
25
27
  actions:
26
- - name: open_ref
27
- action_type: OPEN_POSITION
28
- decision_mode: no_decision
29
- scanners: [emerging_movers]
30
- min_confidence: 0
28
+ - name: position_tracker_action
29
+ action_type: POSITION_TRACKER
30
+ decision_mode: rule
31
+ scanners: [position_tracker]
31
32
 
32
33
  exit:
33
34
  engine: dsl
@@ -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.44",
5
+ "version": "1.0.45",
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.44",
3
+ "version": "1.0.45",
4
4
  "description": "Trading recipe plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",