@@ -4,68 +4,48 @@ Install the fintool skill for financial trading and market intelligence.
44
55## Prerequisites
66
7- - ` curl ` (for downloading)
8- - ` unzip ` (for extraction)
9- - ` bash ` (shell)
7+ - ` curl ` , ` unzip ` , ` git ` , ` bash `
108
119## Quick Install (Recommended)
1210
1311``` bash
14- SKILL_DIR=" ${HOME} /.openclaw/skills/fintool"
15- mkdir -p " $SKILL_DIR "
12+ curl -sSL https://raw.githubusercontent.com/second-state/fintool/main/skills/bootstrap.sh | bash
13+ ```
14+
15+ Or clone and run locally:
1616
17- # Clone the skill files
17+ ``` bash
1818git clone --depth 1 https://github.com/second-state/fintool.git /tmp/fintool-repo
19- cp -r /tmp/fintool-repo/skills/* " $SKILL_DIR / "
19+ bash /tmp/fintool-repo/skills/bootstrap.sh
2020rm -rf /tmp/fintool-repo
21-
22- # Detect platform and download binary
23- OS=$( uname -s)
24- ARCH=$( uname -m)
25-
26- case " ${OS} -${ARCH} " in
27- Linux-x86_64) ARTIFACT=" fintool-linux-x86_64" ;;
28- Linux-aarch64) ARTIFACT=" fintool-linux-aarch64" ;;
29- Darwin-arm64) ARTIFACT=" fintool-macos-aarch64" ;;
30- * )
31- echo " Unsupported platform: ${OS} -${ARCH} "
32- echo " Supported: Linux (x86_64, aarch64), macOS (Apple Silicon)"
33- exit 1
34- ;;
35- esac
36-
37- # Download latest release
38- RELEASE_URL=" https://github.com/second-state/fintool/releases/latest/download/${ARTIFACT} .zip"
39- echo " Downloading ${ARTIFACT} ..."
40- curl -L -o /tmp/fintool.zip " $RELEASE_URL "
41- unzip -o /tmp/fintool.zip -d /tmp/fintool-extract
42- cp " /tmp/fintool-extract/${ARTIFACT} /fintool" " $SKILL_DIR /scripts/fintool"
43- chmod +x " $SKILL_DIR /scripts/fintool"
44- rm -rf /tmp/fintool.zip /tmp/fintool-extract
45-
46- # Initialize config (will NOT overwrite existing config)
47- " $SKILL_DIR /scripts/fintool" init
48-
49- echo " "
50- echo " ✅ fintool installed to $SKILL_DIR /scripts/fintool"
51- echo " 📝 Edit ~/.fintool/config.toml to add your API keys and exchange credentials."
5221```
5322
54- After installation, configure your exchanges and API keys:
23+ The bootstrap script will:
24+ 1 . Clone skill files to ` ~/.openclaw/skills/fintool/ `
25+ 2 . Detect your platform (Linux x86_64/aarch64, macOS Apple Silicon)
26+ 3 . Download the correct binary from the latest GitHub release
27+ 4 . Run ` fintool init ` to create ` ~/.fintool/config.toml ` (never overwrites existing)
28+ 5 . Check config for required keys and tell you what's missing
5529
56- ``` bash
57- vim ~ /.fintool/config.toml
58- ```
30+ After installation, edit ` ~/.fintool/config.toml ` to add your credentials:
31+
32+ ** Required:**
33+ - ` openai_api_key ` — for enriched price quotes with trend/momentum analysis
34+
35+ ** At least one exchange:**
36+ - ** Hyperliquid** — ` private_key ` or ` wallet_json ` + ` wallet_passcode ` in ` [wallet] ` (spot + perps)
37+ - ** Binance** — ` binance_api_key ` + ` binance_api_secret ` in ` [api_keys] ` (spot + perps + options)
38+ - ** Coinbase** — ` coinbase_api_key ` + ` coinbase_api_secret ` in ` [api_keys] ` (spot only)
5939
60- Then verify it works :
40+ Verify installation :
6141
6242``` bash
6343~ /.openclaw/skills/fintool/scripts/fintool quote BTC
6444```
6545
6646## Manual Installation
6747
68- If the automatic download fails:
48+ If the bootstrap script fails:
6949
70501 . Go to https://github.com/second-state/fintool/releases/latest
71512 . Download the zip for your platform:
@@ -80,7 +60,7 @@ If the automatic download fails:
8060 cp fintool-< platform> /fintool ~ /.openclaw/skills/fintool/scripts/fintool
8161 chmod +x ~ /.openclaw/skills/fintool/scripts/fintool
8262 ```
83- 4 . Copy the skill files :
63+ 4 . Copy the skill definition :
8464 ``` bash
8565 git clone --depth 1 https://github.com/second-state/fintool.git /tmp/fintool-repo
8666 cp /tmp/fintool-repo/skills/SKILL.md ~ /.openclaw/skills/fintool/SKILL.md
@@ -90,41 +70,12 @@ If the automatic download fails:
9070 ``` bash
9171 ~ /.openclaw/skills/fintool/scripts/fintool init
9272 ```
93-
94- ## Configuration
95-
96- Edit ` ~/.fintool/config.toml ` with your credentials:
97-
98- ``` toml
99- [wallet ]
100- # Hyperliquid — spot and perp trading
101- # private_key = "0x..."
102-
103- [network ]
104- testnet = false
105-
106- [api_keys ]
107- # OpenAI — enriched quote analysis (trend, momentum, summary)
108- # openai_api_key = "sk-..."
109- # openai_model = "gpt-4.1-mini"
110-
111- # Binance — spot, perps, and options
112- # binance_api_key = "..."
113- # binance_api_secret = "..."
114-
115- # Coinbase — spot trading
116- # coinbase_api_key = "..."
117- # coinbase_api_secret = "..."
118- ```
119-
120- You need ** at least one exchange** configured for trading, and an ** OpenAI key** for enriched quotes.
73+ 6 . Edit ` ~/.fintool/config.toml ` to add your API keys and exchange credentials.
12174
12275## Troubleshooting
12376
12477### Download Failed
12578
126- Check network connectivity:
127-
12879``` bash
12980curl -I " https://github.com/second-state/fintool/releases/latest"
13081```
@@ -139,10 +90,8 @@ Supported: Linux (x86_64, aarch64), macOS (Apple Silicon arm64), Windows (x86_64
13990
14091### Config Not Found
14192
142- If commands fail with config errors, ensure ` ~/.fintool/config.toml ` exists:
143-
14493``` bash
14594~ /.openclaw/skills/fintool/scripts/fintool init
14695```
14796
148- This will create the config template if it doesn't exist, and never overwrite an existing one.
97+ Creates the config template if it doesn't exist. Never overwrites an existing one.
0 commit comments