Open-source project
pmxt-dev/pmxt avatar
pmxt-dev/pmxt

pmxt hosts the API for prediction markets, and only three venues accept hosted writes

CCXT for prediction markets. PMXT is a unified API for trading on Polymarket, Kalshi, and more.

2,219 stars282 forksTypeScriptMIT

At a glance

What is it?
pmxt is a ccxt-style unified API over prediction markets such as Polymarket, Kalshi and Limitless, shipped as a hosted service, Python and TypeScript SDKs, a CLI and an MCP server. This article covers what the hosted key does, where writes work, the self-host route and the credential variables it needs.
Who is it for?
Use pmxt if you want one client for reading several prediction markets and need hosted trading on Polymarket, Opinion or Limitless. Choose the self-hosted server if you want your keys to stay on your machine, and expect to supply venue-native credentials for every exchange.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 56 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • pmxt-dev/pmxt2,219 ★ · +54
Star history
Repository2026-10-082026-11-25
pmxt-dev/pmxt2.2k2.2k

54 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Hosted writes work on three venues, and reads span a much longer list

pmxt describes itself as the ccxt for prediction markets. The hosted service gives unified access to prediction-market data and supports hosted trading on Polymarket, Opinion and Limitless, which the project calls the writes available today. The supported exchange list is longer: Polymarket, Polymarket US, Kalshi, Limitless, Probable, Baozi, Opinion, Metaculus, Smarkets, Hyperliquid, Gemini Titan, SuiBets, Rain and Hunch.

That gap matters before you design a bot. A venue on the list is not necessarily a venue you can place orders on through the hosted API. The README says self-hosting covers venue-native writes such as Kalshi where supported, and it points to core/COMPLIANCE.md for a feature support table. The repository also carries a feature-status.csv file.

The pitch is a single interface in place of different APIs, data formats and conventions on each platform. The hosted path has you get a key from pmxt.dev/dashboard, construct a client and trade, while PMXT handles custody, signing infrastructure and on-chain settlement. Custody is the sentence to read twice: with hosted trading, part of the chain of control sits with a third party.

Reads need an API key and a wallet address, and trading adds a private key

The quickstart separates the two cases. For reads, only pmxt_api_key and wallet_address are required. For trading you also pass private_key, and the SDK automatically wraps it into an EIP-712 signer. The Python client is constructed as pmxt.Polymarket with those keyword arguments, and then calls such as fetch_positions(), fetch_balance() and fetch_markets(query="nba") return data. A trading client adds private_key and calls create_order with market_id, outcome_id, side, order_type and an amount.

The TypeScript SDK uses camelCase names for the same things: pmxtApiKey, walletAddress and privateKey, with fetchPositions(), fetchBalance() and createOrder({ marketId, outcomeId, ... }). Import style has two forms. A named import brings the class directly, import { Polymarket } from "pmxtjs", and a default import gives the namespaced form, import pmxt from "pmxtjs".

Because trading takes a raw private key as a constructor argument, where that value comes from decides your risk. Keep it in an environment variable or a secrets store, not in a source file. The example key strings in the quickstart are placeholders such as 0xYourPrivateKey.

Five install paths exist, from pip to a source checkout

The requirements are Node.js 18 or newer on your PATH, even for the Python SDK, plus Python 3.8 or newer for the Python package. Each client has its own command:

bash
pip install pmxt
bash
npm install pmxtjs

The CLI installs globally and has an auth check:

bash
npm install -g @pmxt/cli
pmxt polymarket markets --query Trump --limit 5
pmxt polymarket fetchMarkets --query Trump --limit 5
pmxt auth status

Running from source is a clone and two npm commands:

bash
git clone https://github.com/pmxt-dev/pmxt.git
cd pmxt
npm install
npm run dev

The dev script uses concurrently to rebuild pmxt-core in watch mode while starting its server. The repository is an npm workspace with core and sdks/* as members, and the test script runs ./scripts/verify-all.sh. A generate script rebuilds the SDKs from the core definitions, which is why the Python and TypeScript clients mirror each other.

The Node requirement for the Python package suggests the SDK talks to a local Node process in self-hosted mode, though the README does not spell out that architecture. ARCHITECTURE.md in the repository root is the place to confirm.

An MCP server lets Claude and Cursor call the same API

The project is described as MCP-native, with a page at pmxt.dev/mcp. Start the MCP server with this command:

bash
npx -y @pmxt/mcp

The server forwards tool calls to a PMXT API. For the hosted API, set `PMXT_API_KEY` in the MCP client’s environment. For local use, start the PMXT core server separately. The MCP server defaults to `http://localhost:3847` when no key is set.

Setup for Claude, Cursor and other MCP-compatible clients lives in a separate repository, pmxt-dev/pmxt-mcp.

An agent that can place trades through an MCP tool changes the risk picture. A hosted key plus a private_key in the agent's environment means a prompt that goes wrong can move money. The project's README says nothing about spending limits, confirmation steps or read-only modes for the MCP server, so verify those in the pmxt-mcp repository before giving an agent write access. A read-only wallet_address plus pmxt_api_key setup is the conservative way to start, since reads do not need a private key.

The CLI has a similar shape. pmxt auth status checks credentials, and the market commands take a venue name, a method, a query and a limit. That makes the CLI a quick way to confirm your key works before wiring up an SDK or an agent.

Self-hosting trades the hosted key for one environment variable per venue

The README presents the MIT-licensed local server as the self-hosted option: your keys, your machine, no PMXT in the loop. The cost is credential management, and .env.example shows its scale. Polymarket needs POLYMARKET_PRIVATE_KEY, plus a CLOB API key, secret and passphrase, with an optional funder address and a signature type that defaults to gnosis-safe. Polymarket US has a key id and secret key. Kalshi takes KALSHI_API_KEY and an RSA private key given as base64 or a file path.

Limitless and Probable each need a private key, API key, secret and passphrase. Baozi, Opinion, Hyperliquid and others take private keys or wallet addresses of their own. Metaculus uses an API token. Smarkets wants an account email and password, which is the one entry here that is a login rather than a key.

One file therefore holds secrets for many unrelated exchanges. Treat it like any credentials file: do not commit it, and load only the variables for venues you use. The project's own package.json pins viem to 2.48.4 through an overrides entry, which applies to the monorepo and does not constrain your application.

Dome API users get a codemod, and the README ties it to an acquisition

A section is devoted to migrating from Dome API. The README calls pmxt a drop-in replacement for DomeAPI's Polymarket and Kalshi workflows, and it says pmxt also exposes its broader venue catalog where current capabilities exist. The note on the replacement mentions teams migrating after the Polymarket acquisition. One command rewrites a codebase automatically:

bash
# Automatically migrate your codebase
npx dome-to-pmxt ./src

A detailed migration guide and API comparison are on the project website at pmxt.dev/dome-api-alternative, and the repository has a MIGRATION.md.

A codemod changes call sites and does not change behavior you did not test. Run the converted code against read endpoints first and compare results with what Dome returned. The phrase drop-in replacement is the project's own claim, qualified by where current capabilities exist, so a method with no equivalent on a given venue is a gap you find by running it.

The repository also contains ROADMAP.md, changelog.md and CONTRIBUTING.md, and a fifa.py script at the top level with no explanation in the README.

Version numbers climb quickly, and the latest releases are all from one July day

The three newest releases are v2.54.0, v2.53.1 and v2.53.0, published within about twenty minutes of one another on 18 July 2026. The tags carry an f suffix, such as v2.54.0f. The repository does not explain the suffix. The last push to the repository was on 30 September 2026, and it is not archived.

The license is MIT, the language is TypeScript, and the homepage is pmxt.dev. A Discord server and a DOI badge link to a Zenodo record, so the project is meant to be cited as well as used. The Zenodo DOI is 10.5281/zenodo.19111315.

The root package.json depends on pmxtjs ^2.17.1 even though the monorepo itself carries a much higher release tag. Do not infer the SDK version from the repository tag. Check the version npm reports for pmxtjs, and for pmxt on PyPI, before pinning, because the repository tags and the published package versions are separate numbers.

Editorial conclusion

Use pmxt if you want one client for reading several prediction markets and need hosted trading on Polymarket, Opinion or Limitless. Choose the self-hosted server if you want your keys to stay on your machine, and expect to supply venue-native credentials for every exchange. Before sending a real order, read core/COMPLIANCE.md for the feature matrix, and treat the private_key parameter as the point where you hand signing authority to the SDK.

Frequently asked questions

Is pmxt open source?

Yes. The repository is MIT licensed and includes Python and TypeScript SDKs plus a local server for self-hosting. A hosted API with an API key from pmxt.dev/dashboard is also offered.

Which exchanges does pmxt support?

The list includes Polymarket, Polymarket US, Kalshi, Limitless, Probable, Baozi, Opinion, Metaculus, Smarkets, Hyperliquid, Gemini Titan, SuiBets, Rain and Hunch. Hosted writes work on Polymarket, Opinion and Limitless.

How do I install the pmxt Python SDK?

Run pip install pmxt. Node.js 18 or newer must be on your PATH, and the Python SDK needs Python 3.8 or newer.

Official sources

  1. License: MIT
  2. pmxt-dev/pmxt on GitHub
  3. Project website
  4. README
  5. Releases

Was this useful?