Remove prediction market (Polymarket/Kalshi) support#2
Merged
Conversation
Remove all code and documentation related to the predict subcommand to focus the project on crypto and stock trading. Deleted: - src/commands/predict.rs (871 lines) - src/polymarket.rs (579 lines) Cleaned up: - CLI enum, main dispatch, module declarations, config fields - README.md, SKILL.md, config.toml.default, CI workflow Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4a11b3a to
fbfee19
Compare
There was a problem hiding this comment.
Pull request overview
This PR removes the prediction market feature set (the predict subcommand plus Polymarket/Kalshi integrations) to narrow the CLI’s scope to crypto/stock trading, reports, and news.
Changes:
- Deleted the Polymarket client module and the
predictcommand implementation. - Removed the
PredictCLI subcommand and its dispatch wiring from the entrypoint and commands module tree. - Cleaned up user-facing docs/config templates and CI smoke tests to eliminate prediction-market references.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/polymarket.rs |
Removes the Polymarket CLOB/Gamma client implementation. |
src/commands/predict.rs |
Removes the predict subcommand handlers (list/search/quote/buy/sell). |
src/main.rs |
Drops PredictCmd import, mod polymarket, and the Commands::Predict dispatch arm. |
src/config.rs |
Removes Kalshi API key/secret fields from config schema. |
src/commands/mod.rs |
Removes pub mod predict; from command module declarations. |
src/cli.rs |
Removes the Predict subcommand and the PredictCmd enum definition. |
skills/SKILL.md |
Removes the “Prediction Markets” workflow and renumbers subsequent workflows. |
config.toml.default |
Removes Kalshi credential template entries. |
README.md |
Removes prediction-market mentions, config options, and command documentation sections. |
.github/workflows/ci.yml |
Removes prediction-market smoke tests from CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
predictsubcommand (Polymarket + Kalshi) to focus on crypto and stock tradingsrc/commands/predict.rs(871 lines) andsrc/polymarket.rs(579 lines)Test plan
cargo fmt -- --checkpassescargo build --releasecompiles successfullycargo test— 2 tests passgrep -ri predict/polymarket/kalshi— zero remaining references🤖 Generated with Claude Code