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: Manual Install
# Clone and install
git clone https://github.com/NYTEMODEONLY/polyterm.git
cd polyterm
./install.sh
Option 3: Direct from PyPI
pipx install polyterm
That's it! Now you can run PolyTerm from anywhere:
polyterm
๐จ Interactive Terminal Interface (TUI)
PolyTerm features a beautiful interactive menu for easy navigation:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โโโโโโโ โโโโโโโ โโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโ โโโโ
โ โโโโโโโโโโโโโโโโโโโโ โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโ
โ โโโโโโโโโโโ โโโโโโ โโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โโโโโโโ โโโ โโโโโโ โโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โโโ โโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโ โโโ
โ โโโ โโโโโโโ โโโโโโโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโ
โ โ
โ Terminal-Based Monitoring for PolyMarket โ
โ Track. Analyze. Profit. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 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
- Fixes Applied - Complete summary of recent fixes
- Live Data Fix - Live data implementation details
๐ค 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
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.2.tar.gz.
File metadata
- Download URL: polyterm-0.1.2.tar.gz
- Upload date:
- Size: 59.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bbdb8de34aa3e14cbd78b6a9eb54909b0e06bede3ba466a9a3f9900a5d65feb
|
|
| MD5 |
a803fb9bdda0b5a78b69d4d9cac8627a
|
|
| BLAKE2b-256 |
88aab85bb14e8bdca233f67fc01c6434fe9dbf09d4dfdddde8e7cf881322b78d
|
File details
Details for the file polyterm-0.1.2-py3-none-any.whl.
File metadata
- Download URL: polyterm-0.1.2-py3-none-any.whl
- Upload date:
- Size: 77.2 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 |
35bb295894ff1ab3af2cd36f9dab9d53ccfc90ec03d057586a8ea0843aa9055b
|
|
| MD5 |
5cbc313b8235e891fab552aa3916ec77
|
|
| BLAKE2b-256 |
3526f3e8e5453825862c799fb56a6bb9b107cb90cbdb6a189e363b6343db1a21
|