Registry / finance / pmxt
library2.48.6pypypi✓ verified 83d ago

Unified prediction market data API, often called the ccxt for prediction markets. Provides a single interface to multiple prediction market exchanges. Current version: 2.48.6, release cadence: frequent (multiple releases per week).

pip install pmxt
INSTALL
IMPORT
SIG · PMXT
P
pmxt
financepythonv2.48.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pmxt
import pmxt
from pmxt import pmxt
pmxt is the module itself; submodules like pmxt.polymarket are accessed as attributes.

Creates an exchange object for Polkamarkets and fetches ticker and order book data.

import pmxt # Initialize a Polkamarkets exchange object (example) exchange = pmxt.polymarket() # Or use Polymarket exchange # Set API keys via environment variables or directly # import os # exchange.apiKey = os.environ.get('POLYMARKET_API_KEY', '') # exchange.secret = os.environ.get('POLYMARKET_SECRET', '') # Fetch ticker print(exchange.fetch_ticker('BTC/USD')) # Fetch order book print(exchange.fetch_order_book('BTC/USD'))
Debug
Known issues
gotchaThe library uses exchange-specific method names; not all ccxt methods are available. Check each exchange's supported methods.
fix
Refer to the pmxt documentation for supported methods per exchange (e.g., fetch_ticker, fetch_order_book).
affects: all
breakingVersion 2.0+ changed the API from v1: exchange IDs are now lowercase and method signatures may differ. Old code using camelCase methods may break.
fix
Update imports to 'import pmxt' and use lowercase exchange IDs (e.g., 'polymarket' instead of 'Polymarket'). Replace old method names if necessary.
affects: >=2.0.0
gotchaAPI keys for authenticated endpoints must be set as properties on the exchange object after instantiation, not passed to constructor.
fix
Set exchange.apiKey, exchange.secret, and possibly exchange.password after creating the exchange object.
affects: all
Errors
Common errors & fixes
AttributeError: module 'pmxt' has no attribute 'polymarket'
The exchange ID may have changed or is not supported in the installed version. Also, possible typo in the exchange name.
fix
Check the list of supported exchanges via pmxt.exchanges. Use the exact exchange ID (lowercase) as provided by the library.
TypeError: fetch_ticker() missing 1 required positional argument: 'symbol'
In pmxt v2+, some methods require the symbol argument as a string, not optional.
fix
Pass a valid market symbol string to fetch_ticker(), e.g., exchange.fetch_ticker('BTC/USD').
ConnectionError: [Errno -2] Name or service not known
Network issue or incorrect exchange URL; possibly the exchange needs a proxy or VPN.
fix
Check internet connectivity; if behind a corporate firewall, configure proxy via exchange.proxy or environment variables.
Upgrade
Version history
2.48.6latest on PyPI · released Jun 4, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
pmxt — pip install pmxt · libregistry