refactor: split fintool into per-exchange CLIs#9
Merged
Conversation
Replace the single fintool binary with 5 dedicated CLIs: - fintool: market intelligence (quote, news, report, init) - hyperliquid: spot + perp + HIP-3 + deposits/withdrawals/transfers - binance: spot + perp + deposits/withdrawals - coinbase: spot + deposits/withdrawals - polymarket: prediction market trading This removes the --exchange flag, the "order" subcommand (now just buy/sell), and the "predict" subcommand (polymarket uses direct commands). Shared logic stays in the library crate (fintool_lib). Updates README, SKILL.md, all test scripts, and example bots. Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update release workflow to package all 5 binaries (fintool, hyperliquid, binance, coinbase, polymarket) into each platform zip. Static linking via musl for Linux and crt-static for Windows. Verify static linking for all binaries. Update CI workflow smoke tests to use the new binary names (hyperliquid quote instead of fintool perp quote, etc.). Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The perp quote command now correctly lives under the `perp` subcommand (e.g. `hyperliquid perp quote TSLA`) instead of being a top-level command. Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fintoolbinary into 5 dedicated CLIs:fintool(market intelligence),hyperliquid,binance,coinbase,polymarket--exchangeflag — each binary handles one exchange directlyordersubcommand — spot trading is nowbuy/sellat top levelpredictsubcommand — polymarket useslist/quote/buy/sell/positionsdirectlyfintool_liblibrary crate; per-binary CLI definitions and JSON dispatch are self-contained--jsonmode for programmatic useTest plan
cargo check— cleancargo clippy -- -D warnings— cleancargo fmt -- --check— clean--helpoutputtests/hyperliquid/e2e_trading.shend-to-endtests/polymarket/predict_btc.shend-to-endfintool --json '{"command":"quote","symbol":"BTC"}'returns datahyperliquid --json '{"command":"balance"}'returns data🤖 Generated with Claude Code