Skip to content

Remove prediction market (Polymarket/Kalshi) support#2

Merged
juntao merged 1 commit intomainfrom
remove/predict-subcommand
Feb 25, 2026
Merged

Remove prediction market (Polymarket/Kalshi) support#2
juntao merged 1 commit intomainfrom
remove/predict-subcommand

Conversation

@juntao
Copy link
Member

@juntao juntao commented Feb 25, 2026

Summary

  • Remove all code and docs related to the predict subcommand (Polymarket + Kalshi) to focus on crypto and stock trading
  • Delete src/commands/predict.rs (871 lines) and src/polymarket.rs (579 lines)
  • Clean up CLI enum, main dispatch, module declarations, config fields, README, SKILL.md, config template, and CI workflow

Test plan

  • cargo fmt -- --check passes
  • cargo build --release compiles successfully
  • cargo test — 2 tests pass
  • grep -ri predict/polymarket/kalshi — zero remaining references

🤖 Generated with Claude Code

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>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 predict command implementation.
  • Removed the Predict CLI 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.

@juntao juntao merged commit 806402e into main Feb 25, 2026
6 checks passed
@juntao juntao deleted the remove/predict-subcommand branch February 25, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants