Skip to main content

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.

Python 3.8+ License: MIT Live Data PyPI

๐Ÿš€ 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 u for 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

  1. Version Check: Compares current vs latest version
  2. Method Detection: Finds pipx or pip automatically
  3. Download & Install: Updates to latest version
  4. Verification: Confirms successful update
  5. 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

  1. Launch PolyTerm: polyterm
  2. Select "2. ๐Ÿ”ด Live Monitor"
  3. Choose monitoring mode and target
  4. 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):

  1. Launch PolyTerm: polyterm
  2. Go to Settings (option 7)
  3. Select "๐Ÿ”„ Update PolyTerm" (option 6)
  4. 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 1 through 7 for features
  • Letters: m (monitor), w (whales), a (analytics), p (portfolio), e (export), s (settings)
  • Help: Press h or ?
  • 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

  1. No Individual Trade Data: PolyMarket APIs don't expose individual trades

    • Workaround: Volume-based whale detection
  2. No Portfolio History: Subgraph API removed

    • Impact: Portfolio tracking unavailable
    • Workaround: None available (requires on-chain access)
  3. 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

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribution Steps

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes
  4. Run tests: pytest
  5. Commit: git commit -m "Add your feature"
  6. Push: git push origin feature/your-feature
  7. Create a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ†˜ Support

๐ŸŽฏ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyterm-0.2.1.tar.gz (69.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polyterm-0.2.1-py3-none-any.whl (87.5 kB view details)

Uploaded Python 3

File details

Details for the file polyterm-0.2.1.tar.gz.

File metadata

  • Download URL: polyterm-0.2.1.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for polyterm-0.2.1.tar.gz
Algorithm Hash digest
SHA256 12c43057bbe211ac6616b004264f84fe7466b98e3ee9ae5eb6e6925a2fe4aea2
MD5 b950232e5d5d5a23e5546061155d60f3
BLAKE2b-256 ec8fa9d5f59ee1adc992d74cd37b43dbb4dbcf8a56b957f9e4e5fca520d00870

See more details on using hashes here.

File details

Details for the file polyterm-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: polyterm-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 87.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for polyterm-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8663bdcec34bd72089326d549f8f7000df0f4c9d0a14e16be8f0d91671564d78
MD5 3ea9cb97acba6d622e2b4fb1bd72ec09
BLAKE2b-256 5675a23b35a0aa2917fa28b04d40ccba3715b5b5f1ae96481c19e9e8cba9480d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page