balchemy 0.1.20 → 0.1.21
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/LICENSE +2 -2
- package/dist/tui/AgentBridge.d.ts.map +1 -1
- package/dist/tui/AgentBridge.js +7 -29
- package/dist/tui/AgentBridge.js.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +20 -6
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/ChatPanel.d.ts +2 -1
- package/dist/tui/ChatPanel.d.ts.map +1 -1
- package/dist/tui/ChatPanel.js +37 -20
- package/dist/tui/ChatPanel.js.map +1 -1
- package/dist/tui/StatusPanel.d.ts +4 -1
- package/dist/tui/StatusPanel.d.ts.map +1 -1
- package/dist/tui/StatusPanel.js +63 -11
- package/dist/tui/StatusPanel.js.map +1 -1
- package/dist/tui/setup-guidance.d.ts +7 -0
- package/dist/tui/setup-guidance.d.ts.map +1 -1
- package/dist/tui/setup-guidance.js +53 -1
- package/dist/tui/setup-guidance.js.map +1 -1
- package/dist/tui/text-layout.d.ts +7 -0
- package/dist/tui/text-layout.d.ts.map +1 -0
- package/dist/tui/text-layout.js +136 -0
- package/dist/tui/text-layout.js.map +1 -0
- package/package.json +2 -2
- package/templates/agent.config.yaml +71 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balchemy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Scaffold and run a Balchemy autonomous AI trading agent in 5 minutes",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typescript": "5.8.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"build": "pnpm --dir ../sdk build && tsc -p tsconfig.json",
|
|
60
|
+
"build": "pnpm --dir ../balchemy-agent-sdk build && tsc -p tsconfig.json",
|
|
61
61
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Balchemy Agent Configuration — Full Example
|
|
2
|
+
# All three preset strategies are shown here as commented blocks.
|
|
3
|
+
# Uncomment the one you want to use and delete the others.
|
|
4
|
+
#
|
|
5
|
+
# Environment variable references: ${VAR_NAME}
|
|
6
|
+
# These are resolved from .env at startup.
|
|
7
|
+
|
|
8
|
+
mcp_endpoint: "${MCP_ENDPOINT}"
|
|
9
|
+
api_key: "${BALCHEMY_API_KEY}"
|
|
10
|
+
|
|
11
|
+
llm:
|
|
12
|
+
provider: anthropic # anthropic | openai
|
|
13
|
+
api_key: "${LLM_API_KEY}"
|
|
14
|
+
model: claude-haiku-4-5 # Haiku is fast + cheap, ideal for reactive trading
|
|
15
|
+
max_daily_usd: 5 # Hard budget cap. Agent pauses when hit.
|
|
16
|
+
timeout_ms: 10000
|
|
17
|
+
|
|
18
|
+
# ─── Strategy: DCA Accumulator ─────────────────────────────────────────────────
|
|
19
|
+
strategy: dca-accumulator
|
|
20
|
+
|
|
21
|
+
behavior_rules:
|
|
22
|
+
version: "1"
|
|
23
|
+
preset: dca-accumulator
|
|
24
|
+
dca:
|
|
25
|
+
target_token: SOL
|
|
26
|
+
amount_usd: 10 # Buy $10 per interval
|
|
27
|
+
interval_hours: 24
|
|
28
|
+
max_total_usd: 1000 # Stop after $1000 invested
|
|
29
|
+
risk:
|
|
30
|
+
max_single_trade_usd: 10
|
|
31
|
+
pause_on_drawdown_pct: 30 # Pause DCA if portfolio drops 30%
|
|
32
|
+
|
|
33
|
+
# ─── Strategy: Memecoin Sniper ──────────────────────────────────────────────────
|
|
34
|
+
# strategy: memecoin-sniper
|
|
35
|
+
# behavior_rules:
|
|
36
|
+
# version: "1"
|
|
37
|
+
# preset: memecoin-sniper
|
|
38
|
+
# filters:
|
|
39
|
+
# min_liquidity_usd: 10000
|
|
40
|
+
# max_market_cap_usd: 5000000
|
|
41
|
+
# require_verified_contract: false
|
|
42
|
+
# entry:
|
|
43
|
+
# trigger: launch_signal
|
|
44
|
+
# max_position_usd: 50
|
|
45
|
+
# slippage_bps: 300
|
|
46
|
+
# exit:
|
|
47
|
+
# take_profit_pct: 100
|
|
48
|
+
# stop_loss_pct: 50
|
|
49
|
+
# max_hold_minutes: 60
|
|
50
|
+
|
|
51
|
+
# ─── Strategy: Swing Trader ────────────────────────────────────────────────────
|
|
52
|
+
# strategy: swing-trader
|
|
53
|
+
# behavior_rules:
|
|
54
|
+
# version: "1"
|
|
55
|
+
# preset: swing-trader
|
|
56
|
+
# entry:
|
|
57
|
+
# indicators: [rsi, macd]
|
|
58
|
+
# rsi_oversold: 30
|
|
59
|
+
# max_position_usd: 200
|
|
60
|
+
# slippage_bps: 100
|
|
61
|
+
# exit:
|
|
62
|
+
# take_profit_pct: 20
|
|
63
|
+
# stop_loss_pct: 10
|
|
64
|
+
# min_hold_hours: 2
|
|
65
|
+
# max_hold_hours: 72
|
|
66
|
+
|
|
67
|
+
# ─── Webhook (optional) ─────────────────────────────────────────────────────────
|
|
68
|
+
# Uncomment to receive Balchemy push events directly (faster than SSE polling)
|
|
69
|
+
# webhook:
|
|
70
|
+
# port: 4242
|
|
71
|
+
# secret: "${WEBHOOK_SECRET}"
|