demo-real-usage.py- Real demo using actual PMXT data (requires running server)demo-usage.py- Mock demo using sample data (no dependencies)
- Ensure PMXT server is running:
pmxt-serverOr auto-start it in your code (the SDK does this automatically if pmxt-core is installed).
cd /Users/samueltinnerholm/Documents/GitHub/pmxt/sdks/python
python demo-real-usage.py- Connects to Polymarket
- Fetches ~100 markets
- Filters for Oscars 2026 / Best Picture markets
- Wraps them in
MarketList - Uses
market_list.match('One Battle')to find a specific market - Demonstrates array operations (indexing, filtering, etc.)
=== Real PMXT MarketList.match() Demo ===
Fetching markets from Polymarket...
Fetched X markets
--- Filtering for Oscars 2026 markets ---
Found Y relevant markets
Sample markets:
1. Oscars 2026: Best Picture Winner - Dune Part Two
2. Oscars 2026: Best Picture Winner - One Battle
3. ...
--- Using market_list.match('One Battle') ---
✓ Found: Oscars 2026: Best Picture Winner - One Battle
Market ID: 0x456
Volume 24h: $30,000
Liquidity: $15,000
...
If the server isn't available, you can run the mock demo which uses sample data:
python demo-usage.pyThis doesn't require any running services and demonstrates the exact same functionality.