Skip to main content

Official Python SDK for the EntityML Market Data API.

Project description

entityml

Official Python SDK for the EntityML Market Data API.

Install

pip install entityml

Usage

from entityml import EntityMLClient

client = EntityMLClient(api_key="YOUR_API_KEY")

health = client.system.health()
markets = client.polymarket.list_markets(prefix="0x8213", limit=10)
date_range = client.polymarket.get_market_date_range(
    condition_id="0x0008043c3ed513ecff7ee64380fc943dc73eb3dfb6674f281149efe4769f7515",
)
data = client.polymarket.get_market_data(
    condition_id="0x0008043c3ed513ecff7ee64380fc943dc73eb3dfb6674f281149efe4769f7515",
    date="2026-02-13",
)
summary = client.polymarket.get_orderbook_summary(
    condition_id="0x0008043c3ed513ecff7ee64380fc943dc73eb3dfb6674f281149efe4769f7515",
    asset_id="97684905927345553455494278582909124912046930226695064344571162061840768197777",
    date="2026-02-13",
    resolution=60,
)
kalshi_data = client.kalshi.get_market_data(
    ticker="KXBTC-26FEB2606-B60125",
    date="2026-02-26",
)

CLI

The CLI ships in the same package:

export ENTITY_API_KEY="YOUR_API_KEY"

entityml health
entityml polymarket market-data \
  --condition-id 0x0008043c3ed513ecff7ee64380fc943dc73eb3dfb6674f281149efe4769f7515 \
  --date 2026-02-13

The legacy poly-storage command is still installed as a compatibility alias.

Endpoint groups

  • client.polymarket: list markets, date ranges, daily data, timestamp ranges, and orderbook summaries.
  • client.kalshi: list markets, date ranges, daily data, timestamp ranges, and orderbook summaries.
  • client.lookup: Polymarket slug lookup.
  • client.api_keys: create, list, delete, last-used, and name lookup.
  • client.billing: checkout, portal, subscription status, usage, and raw Stripe webhook forwarding.
  • client.analytics: user request counts, recent requests, system stats, and popular markets.
  • client.system: health and monitoring status.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entityml-0.3.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entityml-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file entityml-0.3.0.tar.gz.

File metadata

  • Download URL: entityml-0.3.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for entityml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f78be2b5821701362b36eeb9932772f583f885b435a4ba6d924d27ef82922015
MD5 fa4be2df9f8b4b32bd5ccbc62ebcf6f1
BLAKE2b-256 6ab2e2891432be5954d628738ea8bbd1fcf47e0a8ff4e072b77387ddd8509564

See more details on using hashes here.

Provenance

The following attestation bundles were made for entityml-0.3.0.tar.gz:

Publisher: publish.yml on anaygupta2004/entityml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file entityml-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: entityml-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for entityml-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab7881c2895bd6e84a86b58c1f87a3c93b459e009e0661421e838ca8ca74b95
MD5 1774b5f02f5ff96c281fb90bd4d2dd89
BLAKE2b-256 bc66e2bb73676b088a195656efb4f5c794247a78be351424d208f836768fa6cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for entityml-0.3.0-py3-none-any.whl:

Publisher: publish.yml on anaygupta2004/entityml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page