A terminal-based monitoring app for PolyMarket shifts
Project description
PolyTerm ๐
A powerful, terminal-based monitoring tool for PolyMarket prediction markets. Track market shifts, whale activity, and trading opportunitiesโall from your command line with 100% live, verified 2025 data.
๐ Quick Start
Option 1: One-Command Install (Recommended)
curl -sSL https://raw.githubusercontent.com/NYTEMODEONLY/polyterm/main/install.sh | bash
Option 2: Direct from PyPI (Easiest)
pipx install polyterm
Option 3: Manual Install
# Clone and install
git clone https://github.com/NYTEMODEONLY/polyterm.git
cd polyterm
./install.sh
That's it! Now you can run PolyTerm from anywhere:
polyterm
๐ Enhanced Update System (NEW!)
Version 0.1.7 introduces automatic, seamless updates - no more manual pip commands or virtual environment knowledge required!
Features
- ๐ Automatic Update Detection: Checks PyPI for new versions on startup
- ๐ One-Click Updates: Update directly from the main menu or settings
- โก Smart Update Methods: Automatically uses pipx or pip based on what's available
- ๐ Update Progress: Step-by-step progress with clear success/error messages
- ๐ก๏ธ Fallback Support: Multiple update methods with automatic fallback
- ๐ฏ Version Verification: Confirms successful updates and shows new version
How It Works
From Main Menu:
- When updates are available, you'll see:
๐ Update Available: v0.1.7 - Press
ufor quick update, or go to Settings โ Update
From Settings:
- Go to Settings (option 8) โ Update (option 6)
- Follow the guided update process
Automatic Detection:
- PolyTerm checks for updates every time you start it
- Shows update notifications in the main menu
- No internet required for normal operation
Update Process
- Version Check: Compares current vs latest version
- Method Detection: Finds pipx or pip automatically
- Download & Install: Updates to latest version
- Verification: Confirms successful update
- Restart Prompt: Reminds you to restart for new features
๐ด Live Market Monitor
Version 0.1.6 introduces the Live Market Monitor - a dedicated terminal window for real-time market monitoring with professional-grade visual indicators.
Features
- ๐ด Dedicated Terminal Window: Opens in separate terminal for focused monitoring
- ๐จ Color-Coded Indicators:
- ๐ข Green: Price increases, bullish activity
- ๐ด Red: Price decreases, bearish activity
- ๐ต Blue: Volume spikes, significant activity
- ๐ก Yellow: Neutral/sideways movement
- โก Real-Time Updates: Sub-second refresh rates for smooth monitoring
- ๐ Multiple Monitoring Modes:
- Single market monitoring
- Category-based monitoring (crypto, politics, sports, etc.)
- All active markets overview
Usage
# Interactive mode (recommended)
polyterm live-monitor --interactive
# Monitor specific market
polyterm live-monitor --market "bitcoin-price-2024"
# Monitor category
polyterm live-monitor --category crypto
# Monitor all active markets
polyterm live-monitor
From TUI Menu
- Launch PolyTerm:
polyterm - Select "2. ๐ด Live Monitor"
- Choose monitoring mode and target
- Live monitor opens in new terminal window
๐ Updating PolyTerm
Automatic Update Check
PolyTerm automatically checks for updates and displays them in the main menu:
Main Menu
PolyTerm v0.1.5 ๐ Update Available: v0.1.6
1 ๐ Monitor Markets - Real-time market tracking
...
Update Methods
Via TUI (Easiest):
- Launch PolyTerm:
polyterm - Go to Settings (option 7)
- Select "๐ Update PolyTerm" (option 6)
- Follow the prompts
Via Command Line:
# Using pipx (recommended)
pipx upgrade polyterm
# Using pip
pip install --upgrade polyterm
Fresh Install:
# Reinstall latest version
pipx install polyterm --force
๐จ Interactive Terminal Interface (TUI)
PolyTerm features a beautiful interactive menu for easy navigation:
โโโโโโโ โโโโโโโ โโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโ โโโโ
โโโโโโโโโโโโโโโโโโโโ โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโ
โโโโโโโโโโโ โโโโโโ โโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโ
โโโโโโโ โโโ โโโโโโ โโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโ โโโ
โโโ โโโโโโโ โโโโโโโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโ
Terminal-Based Monitoring for PolyMarket
Track. Analyze. Profit.
Main Menu
PolyTerm v0.1.5
1 ๐ Monitor Markets - Real-time market tracking
2 ๐ Whale Activity - High-volume markets
3 ๐ Watch Market - Track specific market
4 ๐ Market Analytics - Trends and predictions
5 ๐ผ Portfolio - View your positions
6 ๐ค Export Data - Export to JSON/CSV
7 โ๏ธ Settings - Configuration
h โ Help - View documentation
q ๐ช Quit - Exit PolyTerm
Navigation
- Numbers: Press
1through7for features - Letters:
m(monitor),w(whales),a(analytics),p(portfolio),e(export),s(settings) - Help: Press
hor? - Quit: Press
q
๐ Features
1. Real-Time Market Monitoring
Track live prediction markets with automatic updates:
polyterm monitor --limit 10
What you'll see:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโณโโโโโโโโโโโโโโโณโโโโโโโโโโโ
โ Market โ Probability โ 24h Volume โ Data Age โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ What price will Ethereum hit in 2025? โ 58.2% โ $203,519 โ 45d โ
โ What price will Bitcoin hit in 2025? โ 42.1% โ $122,038 โ 45d โ
โ Largest Company end of 2025? โ 31.5% โ $109,651 โ 75d โ
โ How many Fed rate cuts in 2025? โ 28.9% โ $106,968 โ 75d โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโ
2. Whale Activity Detection
Identify high-volume markets (proxy for whale activity):
polyterm whales --hours 24 --min-amount 50000
Output:
High Volume Markets (Last 24h)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโณโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Market โ Trend โ Last Price โ 24h Volume โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Highest grossing movie in 2025? โ NO โ $0.073 โ $1,143,129 โ
โ What price will Ethereum hit in 2025?โ NO โ $0.180 โ $198,711 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโ
3. Market Watching & Alerts
Track specific markets with custom alerts:
polyterm watch <market-id> --threshold 5
4. Data Export
Export market data for analysis:
polyterm export --market <id> --format json
polyterm export --market <id> --format csv
5. Configuration Management
Customize PolyTerm settings:
polyterm config --list
polyterm config --set alerts.probability_threshold 10.0
polyterm config --set display.refresh_rate 5
๐ง Command Line Interface
For power users, all features are available via CLI commands:
# Monitor markets
polyterm monitor --limit 20 --refresh 3
# Track whale activity
polyterm whales --hours 48 --min-amount 100000
# Watch specific market
polyterm watch <market-id> --threshold 3 --interval 30
# Export data
polyterm export --market <id> --format json --output data.json
# Configuration
polyterm config --get api.gamma_base_url
polyterm config --set data_validation.min_volume_threshold 1000.0
# Portfolio (limited by API changes)
polyterm portfolio --wallet <address>
# Replay historical data
polyterm replay <market-id> --hours 24
โ๏ธ Configuration
PolyTerm stores configuration in ~/.polyterm/config.toml:
[api]
gamma_base_url = "https://gamma-api.polymarket.com"
gamma_markets_endpoint = "/events"
clob_rest_endpoint = "https://clob.polymarket.com"
clob_endpoint = "wss://clob.polymarket.com/ws"
[data_validation]
max_market_age_hours = 24
require_volume_data = true
min_volume_threshold = 0.01
reject_closed_markets = true
enable_api_fallback = true
[alerts]
probability_threshold = 5.0
check_interval = 60
[display]
refresh_rate = 2
max_markets = 20
๐ก Live Data Verification
PolyTerm uses verified live 2025 data from multiple sources:
โ Working APIs (October 2025)
- Gamma API (
/events): Primary source with volume data - CLOB API (
/sampling-markets): Fallback for current markets - Subgraph: Enhanced filtering for on-chain data
โ Deprecated APIs
- Subgraph GraphQL: Removed by The Graph (affects portfolio tracking)
Data Validation
- โ All markets from 2025 or later
- โ Real trading volume data
- โ Active markets only
- โ Automatic freshness checks
- โ Multi-source fallback system
๐งช Testing
Run the comprehensive test suite:
# Full test suite
pytest
# Live data tests
pytest tests/test_live_data/ -v
# TUI tests
pytest tests/test_tui/ -v
# All commands test
./test_all_commands.sh
๐ Known Limitations
API-Level Constraints
-
No Individual Trade Data: PolyMarket APIs don't expose individual trades
- Workaround: Volume-based whale detection
-
No Portfolio History: Subgraph API removed
- Impact: Portfolio tracking unavailable
- Workaround: None available (requires on-chain access)
-
Limited Historical Data: Gamma API provides snapshots
- Impact: Replay command limited
- Workaround: Uses available Gamma data
What Still Works Perfectly
- โ Real-time market monitoring
- โ Live price and probability tracking
- โ Volume analysis
- โ Market discovery
- โ Custom alerts
- โ Data export
- โ Configuration management
๐ ๏ธ Development
Setup Development Environment
git clone https://github.com/NYTEMODEONLY/polyterm.git
cd polyterm
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
Run Tests
pytest
flake8 polyterm tests
Build Package
python -m build
python -m twine upload dist/*
๐ Documentation
- TUI Guide - Complete Terminal User Interface guide
- API Setup - API configuration and troubleshooting
- Contributing - How to contribute to PolyTerm
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Quick Contribution Steps
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Run tests:
pytest - Commit:
git commit -m "Add your feature" - Push:
git push origin feature/your-feature - Create a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Issues: GitHub Issues
- API Status: PolyMarket Status
- Documentation: See docs/ directory
๐ฏ Roadmap
Completed โ
- โ Live 2025 data integration
- โ Interactive TUI with 8 screens
- โ Volume-based whale detection
- โ Multi-source API aggregation
- โ Comprehensive test suite
- โ PyPI package distribution
- โ Automatic update checking
- โ Version display in TUI
- โ Responsive terminal design
- โ Settings screen with update functionality
Future Enhancements
- ๐ Advanced analytics (correlations, predictions)
- ๐ Market search functionality
- ๐ Config editing UI
- ๐ Real-time trade websocket integration
- ๐ Alternative portfolio data sources
Built with โค๏ธ for the PolyMarket community
Your terminal window to prediction markets ๐
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polyterm-0.1.9.tar.gz.
File metadata
- Download URL: polyterm-0.1.9.tar.gz
- Upload date:
- Size: 69.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57998acc7c2b4df04e605dcaea0ab2f174bc420b805b90cee396ee6ef0802686
|
|
| MD5 |
06f3f542f7abab153b52ffe1748b2752
|
|
| BLAKE2b-256 |
aa336914e1677fb14fe6b685b55c6f3c93bd45b26f42be5d513ba3d6aab58433
|
File details
Details for the file polyterm-0.1.9-py3-none-any.whl.
File metadata
- Download URL: polyterm-0.1.9-py3-none-any.whl
- Upload date:
- Size: 87.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3a23de11859b315ad1f9ee8b9029dfa0bef14d450158c90af1007965f5704f9
|
|
| MD5 |
30fdb2ab5ed4f3bb2ed30fe4350b64d5
|
|
| BLAKE2b-256 |
2ef06d9bb126d174662e167e0e7240014227d4ffd1355655958a5c131ed1d276
|