pmxtjs
v0.3.1
Published
pmxt is a unified prediction market data API. The ccxt for prediction markets.
Readme
pmxt 
The ccxt for prediction markets. A unified API for accessing prediction market data across multiple exchanges.
Why pmxt?
Different prediction market platforms have different APIs, data formats, and conventions. pmxt provides a single, consistent interface to work with all of them.
Quick Example
Get the current price for any market in seconds:
import pmxt from 'pmxtjs';
async function main() {
const poly = new pmxt.polymarket();
const [market] = await poly.searchMarkets('Trump');
console.log(`${market.title} - ${market.outcomes[0].label}: ${marketoutcomes[0].price * 100}%`);
}
main();Installation
npm install pmxtjsSupported Exchanges
- Polymarket
- Kalshi
Documentation
See the API Reference for detailed documentation and more examples.
Examples
Check out the examples directory for more use cases:
- Market search
- Order book data
- Historical prices
- Event price tracking
- Recent trades
