{"id":45796,"library":"pmxt","title":"pmxt","description":"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).","status":"active","version":"2.48.6","language":"python","source_language":"en","source_url":"https://github.com/pmxt-dev/pmxt","tags":["prediction-markets","cryptocurrency","trading","api-wrapper"],"install":[{"cmd":"pip install pmxt","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"pmxt is the module itself; submodules like pmxt.polymarket are accessed as attributes.","wrong":"from pmxt import pmxt","symbol":"pmxt","correct":"import pmxt"}],"quickstart":{"code":"import pmxt\n\n# Initialize a Polkamarkets exchange object (example)\nexchange = pmxt.polymarket()\n# Or use Polymarket exchange\n# Set API keys via environment variables or directly\n# import os\n# exchange.apiKey = os.environ.get('POLYMARKET_API_KEY', '')\n# exchange.secret = os.environ.get('POLYMARKET_SECRET', '')\n\n# Fetch ticker\nprint(exchange.fetch_ticker('BTC/USD'))\n\n# Fetch order book\nprint(exchange.fetch_order_book('BTC/USD'))","lang":"python","description":"Creates an exchange object for Polkamarkets and fetches ticker and order book data."},"warnings":[{"fix":"Refer to the pmxt documentation for supported methods per exchange (e.g., fetch_ticker, fetch_order_book).","message":"The library uses exchange-specific method names; not all ccxt methods are available. Check each exchange's supported methods.","severity":"gotcha","affected_versions":"all"},{"fix":"Update imports to 'import pmxt' and use lowercase exchange IDs (e.g., 'polymarket' instead of 'Polymarket'). Replace old method names if necessary.","message":"Version 2.0+ changed the API from v1: exchange IDs are now lowercase and method signatures may differ. Old code using camelCase methods may break.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Set exchange.apiKey, exchange.secret, and possibly exchange.password after creating the exchange object.","message":"API keys for authenticated endpoints must be set as properties on the exchange object after instantiation, not passed to constructor.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.48.6':25 'api':6,39 'api-wrapp':38 'cadenc':27 'call':8 'ccxt':10 'cryptocurr':36 'current':23 'data':5 'exchang':22 'frequent':28 'interfac':17 'market':4,13,21,35 'multipl':19,29 'often':7 'per':31 'pmxt':1 'predict':3,12,20,34 'prediction-market':33 'provid':14 'releas':26,30 'singl':16 'trade':37 'unifi':2 'version':24 'week':32 'wrapper':40","created_at":"2026-06-07T12:56:46.048487+00:00","updated_at":"2026-06-07T12:56:46.048487+00:00","problems":[{"fix":"Check the list of supported exchanges via pmxt.exchanges. Use the exact exchange ID (lowercase) as provided by the library.","cause":"The exchange ID may have changed or is not supported in the installed version. Also, possible typo in the exchange name.","error":"AttributeError: module 'pmxt' has no attribute 'polymarket'"},{"fix":"Pass a valid market symbol string to fetch_ticker(), e.g., exchange.fetch_ticker('BTC/USD').","cause":"In pmxt v2+, some methods require the symbol argument as a string, not optional.","error":"TypeError: fetch_ticker() missing 1 required positional argument: 'symbol'"},{"fix":"Check internet connectivity; if behind a corporate firewall, configure proxy via exchange.proxy or environment variables.","cause":"Network issue or incorrect exchange URL; possibly the exchange needs a proxy or VPN.","error":"ConnectionError: [Errno -2] Name or service not known"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pmxt-dev/pmxt","github":"https://github.com/pmxt-dev/pmxt","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["finance"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}