explaingit

kazelad/prediction-market-trade-sdk

Analysis updated 2026-05-18

142TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

pmxt is an SDK giving one consistent API to read data from and trade on multiple prediction market platforms like Polymarket, Kalshi, and Limitless.

Mindmap

mindmap
  root((prediction-market-trade-sdk))
    What it does
      Unified prediction market API
      Reads market data
      Places trades
    Tech stack
      TypeScript
      Python
      MCP
    Use cases
      Trading bots
      Market research
      AI agent trading
    Audience
      Developers
      Quant traders
    Options
      Hosted API
      Self hosted server
      CLI tool

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a trading bot that places trades across multiple prediction market venues through one unified API.

USE CASE 2

Pull market data and prices from platforms like Polymarket, Kalshi, and Metaculus for research or analysis.

USE CASE 3

Connect an AI assistant such as Claude or Cursor to prediction markets using the built-in MCP support.

USE CASE 4

Migrate an existing Dome API integration to pmxt using the automatic code conversion tool.

What is it built with?

TypeScriptPythonNode.jsMCP

How does it compare?

kazelad/prediction-market-trade-sdkagutinbaigo28/trading-backtest-kitalinebm17/finance-api-tool
Stars142142142
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/54/52/5
Audiencedeveloperdeveloperdata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires either a hosted pmxt API key or self-hosted venue credentials to place real trades.

Permissive open-source license, use freely including for commercial purposes, with attribution.

In plain English

This project, called pmxt, is a software development kit that gives developers one consistent way to read data from and trade on prediction markets. Prediction markets are platforms where people bet on the outcome of future events, such as elections or sports results, and this project connects to many of them, including Polymarket, Kalshi, Limitless, Opinion, Metaculus, and several others, each of which normally has its own different API and data format. Instead of learning each platform's API separately, a developer can use pmxt's single interface to fetch market data across venues, and for a smaller set of supported platforms, place trades as well. There are two main ways to use it. The hosted option means signing up for an API key through the pmxt dashboard, where the service handles account custody, transaction signing, and settling trades on the blockchain on the developer's behalf. The self-hosted option means running the open source server yourself, using your own credentials and private keys, with no dependency on the pmxt hosted service. The project offers software libraries for both Python and TypeScript, plus a command line tool and a plain HTTP interface for any other programming language. It also supports the Model Context Protocol, so AI coding assistants like Claude or Cursor can query and trade on prediction markets directly. For teams migrating from a similar tool called Dome API, pmxt includes an automatic code conversion tool to help move existing code over. Installing it requires Node.js version 18 or higher, or Python 3.8 or higher, depending on which SDK is used. The project is released under the MIT license, and is aimed at developers building trading bots, market research tools, or AI agents that need programmatic access to prediction market data.

Copy-paste prompts

Prompt 1
Show me how to install the pmxt Python SDK and fetch market data from Polymarket for a search query.
Prompt 2
Write a Node.js script using pmxtjs to place a trade on a prediction market using my hosted API key.
Prompt 3
Explain the difference between the hosted and self-hosted options for using pmxt.
Prompt 4
How do I set up the pmxt MCP server so Claude or Cursor can query prediction markets directly?
Prompt 5
Walk me through migrating a Dome API integration to pmxt using the dome-to-pmxt tool.

Frequently asked questions

What is prediction-market-trade-sdk?

pmxt is an SDK giving one consistent API to read data from and trade on multiple prediction market platforms like Polymarket, Kalshi, and Limitless.

What language is prediction-market-trade-sdk written in?

Mainly TypeScript. The stack also includes TypeScript, Python, Node.js.

What license does prediction-market-trade-sdk use?

Permissive open-source license, use freely including for commercial purposes, with attribution.

How hard is prediction-market-trade-sdk to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is prediction-market-trade-sdk for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.