Skip to main content

Overview

The EntityML Python SDK wraps the EntityML Market Data API and provides typed method groups for:
  • API keys
  • Polymarket market data
  • Kalshi market data
  • Lookup utilities
  • Billing and usage
  • User and system analytics
  • Health checks
SDK repository:

Install

Use one of these install methods:
For CLI + SDK usage from the terminal, see CLI.

Initialize client

Polymarket example

Kalshi example

API keys example

Utilities, billing, and analytics

Error handling

Notes

  • Market data endpoints require an API key.
  • Historical coverage is source-specific.
  • Orderbook data exists for a subset of markets from 2025-09-01 on Polymarket and 2026-02-17 for Kalshi, but coverage is not continuous.
  • Broad Polymarket crypto-related market coverage begins on 2026-02-04. Broad Kalshi crypto-related market coverage begins on 2026-02-25.
  • Broad all-market capture begins on 2026-04-02 for Polymarket and 2026-03-31 for Kalshi, with known April 2026 quality exceptions.
  • Use the Polymarket and Kalshi date-range endpoints to confirm per-market availability.
  • See Data Quality before depending on April 2026 data.