Skip to content

mikoshik/poly_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Polymarket Real-Time CLI Monitor

A high-performance terminal interface for real-time monitoring of Polymarket prediction markets, synchronized with live prices from Binance.


🚀 Getting Started

📦 Installation

Ensure you have uv installed. Then, synchronize dependencies and set up the environment:

uv sync

🏃 Running the Application

To start the CLI monitor, simply run:

python main.py

🛠 How to Use

Follow these steps to configure your monitoring session:

  1. Select Category: When prompted, enter 1 for the Crypto category (currently the only supported domain).
  2. Get Event URL: Go to Polymarket and navigate to the Cryptocurrency section.

    [!IMPORTANT]
    Only the Cryptocurrency category is supported. Ensure your URL looks like:
    https://polymarket.com/event/will-bitcoin-hit-100k-in-2024

  3. Enter Symbol: Specify the cryptocurrency symbol you want to track against the market (e.g., BTC, ETH). This will pull live price data from Binance.
  4. Select Market: If the event contains multiple markets (e.g., different price targets), the CLI will list them. Enter the corresponding number to start monitoring.

🔄 Current Workflow

The CLI provides a "glass-morphism" inspired terminal view that updates in real-time:

  • Dual WebSocket Streams: Connects simultaneously to Polymarket CLOB and Binance for sub-millisecond updates.
  • Order Book Tracking: Displays the latest Bid and Ask prices for both YES and NO outcomes.
  • Live Price Overlay: Monitors the underlying asset price (e.g., BTC/USDT) directly in the UI.
  • Dynamic Fee Calculation: Automatically calculates and displays potential trading fees based on real-time market state.
  • Flicker-Free Interface: Uses a high-speed refresh loop to ensure the terminal remains readable and responsive.

⚠️ Requirements

  • Python 3.10+
  • uv Package Manager
  • Active Internet Connection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages