agent-finance-cli-linux-arm64 0.4.0 → 0.4.2
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/bin/agent-finance
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -21,7 +21,7 @@ For an interactive live cockpit, use:
|
|
|
21
21
|
agent-finance tui --symbols AAPL,CRDO,BTCUSDT
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Prefer structured `market ... --json` commands for agent data collection. The TUI is an interactive cockpit for live monitoring and guided exploration, with quote, history, crypto evidence, research, Polymarket, provider health, task log, mouse focus, docked-column drag resize, floating-corner resize, close/restore panel controls,
|
|
24
|
+
Prefer structured `market ... --json` commands for agent data collection. The TUI is an interactive cockpit for live monitoring and guided exploration, with quote, history, crypto evidence, research, Polymarket, provider health, task log, mouse focus, docked-column drag resize, floating-corner resize, close/restore panel controls, an executable command palette, and an OHLCV chart workbench with draft-only ticket fills, single-leg protective ticket drafts, and draft-only protective OCO planning slots from selected reference lines; it is not a machine extraction surface.
|
|
25
25
|
The TUI persists watchlist and layout state to TOML by default; use `--no-persist` for one-off sessions.
|
|
26
26
|
|
|
27
27
|
## Task Router
|
|
@@ -34,6 +34,7 @@ agent-finance skills get crypto
|
|
|
34
34
|
agent-finance skills get prediction-markets
|
|
35
35
|
agent-finance skills get providers
|
|
36
36
|
agent-finance skills get profile
|
|
37
|
+
agent-finance skills get tui
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
Load a narrow skill before task-specific commands. Use `skills get core --full` when you need the extended command map.
|
|
@@ -121,6 +122,7 @@ agent-finance audit export --json
|
|
|
121
122
|
- Use both daily and minute history before judging fills, limit-order quality, stop placement, or intraday action.
|
|
122
123
|
- Use `market providers --json` for a machine-readable capability matrix.
|
|
123
124
|
- Use `capabilities --json` for the unified terminal surface, including account/order/transfer/futures-state safety boundaries.
|
|
125
|
+
- Use `skills get tui` before relying on the interactive cockpit, chart workbench, account overlays, selected reference line copy, protective chart drafts, or chart-guided draft ticket workflow.
|
|
124
126
|
- Treat crypto as 24/7 market data. Use Binance/Coinbase/OKX/CoinGecko through capability-first crypto commands, then force providers only for cross-checking.
|
|
125
127
|
- Spot is crypto spot; USD-M futures / TradFi perps are derivatives and proxy instruments.
|
|
126
128
|
- Treat Polymarket as quantifiable prediction-market sentiment and event-probability evidence only; it is not an equity quote or primary-source fact.
|
|
@@ -13,12 +13,25 @@ agent-finance skills get providers
|
|
|
13
13
|
agent-finance skills get crypto
|
|
14
14
|
agent-finance skills get prediction-markets
|
|
15
15
|
agent-finance skills get history-indicators
|
|
16
|
+
agent-finance skills get tui
|
|
16
17
|
agent-finance tui --symbols AAPL,CRDO,BTCUSDT
|
|
17
18
|
```
|
|
18
19
|
|
|
19
|
-
Use the TUI as an interactive cockpit for live monitoring and guided exploration across quote, history, crypto evidence, research, Polymarket, provider health, task log, mouse focus, docked-column drag resize, floating-corner resize, close/restore panel controls, and
|
|
20
|
+
Use the TUI as an interactive cockpit for live monitoring and guided exploration across quote, history, crypto evidence, research, Polymarket, provider health, task log, mouse focus, docked-column drag resize, floating-corner resize, close/restore panel controls, executable command palette, and the OHLCV chart workbench. Load `skills get tui` before relying on chart workbench interactions. Use structured `market ... --json` commands when an agent needs parseable data.
|
|
20
21
|
It persists watchlist and layout state to TOML by default; add `--no-persist` for disposable sessions.
|
|
21
22
|
|
|
23
|
+
## TUI Chart Workbench
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
agent-finance tui --symbols CRDO,LITE,AAOI --chart-preset auto
|
|
27
|
+
agent-finance tui --symbols BTC/USDT,ETH/USDT --chart-preset 1d
|
|
28
|
+
agent-finance skills get tui
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Focus History and press `z` for the full chart workbench. Use hover for crosshair and O/H/L/C/V tooltip, wheel to zoom, drag to zoom into a selected window, `h`/`l` or arrows to move the cursor, `j`/`k` to select visible reference lines, `Enter` to copy the selected reference line price into the order ticket draft, `[`/`]` to zoom, number preset actions to switch chart range, and command palette actions for refresh, preset switching, reset zoom, overlay toggles, copying chart reference prices to the order ticket, preparing single-leg stop-loss or take-profit ticket drafts, and adding selected reference lines to the draft-only protective OCO plan.
|
|
32
|
+
|
|
33
|
+
The chart can show OHLCV candles, volume, MA20, MA50, VWAP, current price, previous close, day open/high/low, open-order lines, and position entry lines when the provider and local snapshots provide those fields. Clicking a chart price fills a draft ticket only; it must still pass stage, review, risk, and live confirmation before any signed exchange write.
|
|
34
|
+
|
|
22
35
|
## Price and Sessions
|
|
23
36
|
|
|
24
37
|
```bash
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tui
|
|
3
|
+
description: Use the agent-finance terminal cockpit for live watchlists, OHLCV candlestick workbench, chart presets, mouse/keyboard navigation, provider status, account overlays, and draft-only trading workflows.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# agent-finance TUI skill
|
|
7
|
+
|
|
8
|
+
Use the TUI when the task is live monitoring, visual comparison, chart-guided investigation, or cautious trade preparation. Use structured `market ... --json` commands when another agent needs parseable data.
|
|
9
|
+
|
|
10
|
+
## Launch
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
agent-finance tui --symbols AAPL,CRDO,BTCUSDT
|
|
14
|
+
agent-finance tui --symbols CRDO,LITE,AAOI --chart-preset auto
|
|
15
|
+
agent-finance tui --symbols BTC/USDT,ETH/USDT --chart-preset 1d
|
|
16
|
+
agent-finance tui --symbols CRDO --profile default
|
|
17
|
+
agent-finance tui --symbols CRDO --no-persist
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The TUI persists the watchlist, focused panel, docked panel set, column layout, floating panes, refresh cadence, chart preset, and provider preferences to TOML unless `--no-persist` is used.
|
|
21
|
+
|
|
22
|
+
## Chart Workbench
|
|
23
|
+
|
|
24
|
+
- Focus the History panel and press `z` to enter or leave the full chart workbench.
|
|
25
|
+
- The chart uses OHLCV candles when the provider returns open/high/low/close data.
|
|
26
|
+
- If only close prices are available, treat the chart as degraded and verify the provider/session before drawing trading conclusions.
|
|
27
|
+
- The workbench shows volume, MA20, MA50, VWAP, current price, previous close, day open, day high, day low, open-order lines, and position entry lines when the local snapshots contain them.
|
|
28
|
+
- Visible reference lines are selectable trading aids. Use `j` / `k` to select a line such as current price, previous close, day open, day high, day low, an open order, or a position entry; press `Enter` to copy that line price into the order ticket draft.
|
|
29
|
+
- The command palette can turn the selected chart reference line into a single-leg stop-loss or take-profit ticket draft. It can also add selected reference lines into the ticket's protective OCO draft slots. OCO draft slots are planning state only; they do not stage, submit, or bypass the existing ticket review flow.
|
|
30
|
+
- The title and warnings are part of the evidence: read provider, session, interval, range, fetched time, and fallback notes before acting.
|
|
31
|
+
- Chart presets are provider-aware. Crypto auto starts from a 24h/1m view; aggregator-style providers can be reduced to a coarser provider window such as 7d/provider-auto-7d, so rely on the displayed source line rather than the preset label alone.
|
|
32
|
+
|
|
33
|
+
## Mouse
|
|
34
|
+
|
|
35
|
+
- Hover a candle column for crosshair and O/H/L/C/V tooltip.
|
|
36
|
+
- Wheel inside the History chart to zoom the time window.
|
|
37
|
+
- Drag across the chart to zoom into the selected window.
|
|
38
|
+
- Click a chart price to fill the order ticket reference price. This only edits a draft; it must still pass stage, review, risk, and live confirmation before any exchange write.
|
|
39
|
+
- Use mouse focus, panel close/restore controls, docked-column drag resize, and floating-corner resize for layout work.
|
|
40
|
+
|
|
41
|
+
## Keyboard
|
|
42
|
+
|
|
43
|
+
- `h` / `l` or left / right moves the chart cursor.
|
|
44
|
+
- `j` / `k` or down / up cycles through visible price, order, and position reference lines.
|
|
45
|
+
- `Enter` copies the selected reference line price into the order ticket draft. It does not stage, submit, or enable live writes.
|
|
46
|
+
- `[` / `]` zooms the chart window.
|
|
47
|
+
- Number preset actions switch chart ranges.
|
|
48
|
+
- `r` refreshes history for the selected symbol.
|
|
49
|
+
- Open the command palette to search chart actions such as preset changes, chart refresh, reset zoom, toggle overlays, copying the selected chart reference price to the ticket, preparing single-leg stop-loss or take-profit drafts, and adding selected reference lines to the protective OCO draft.
|
|
50
|
+
|
|
51
|
+
## Trading Boundary
|
|
52
|
+
|
|
53
|
+
The chart can prepare an order ticket but must not submit anything by itself. For signed workflows, load:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
agent-finance skills get profile --full
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then use the profile, intent, risk, confirmation, and audit path. Live writes are gated separately from chart exploration.
|
|
60
|
+
|
|
61
|
+
## Evidence Rules
|
|
62
|
+
|
|
63
|
+
- For trading, stop-loss, take-profit, or limit-order decisions, inspect both daily and minute history.
|
|
64
|
+
- Do not mix chart providers silently. If a provider falls back or maps a preset to another interval/range, record the actual provider and request shape.
|
|
65
|
+
- Treat account/order/position overlays as local snapshot evidence. If the account snapshot is stale, refresh it before relying on the overlay.
|
|
66
|
+
- Use `market price`, `market sessions`, and `market history --json` to capture structured evidence after visual TUI exploration.
|