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",
    start_timestamp=1770940800000,
    end_timestamp=1770944399999,
    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.1.tar.gz (8.8 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.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: entityml-0.3.1.tar.gz
  • Upload date:
  • Size: 8.8 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.1.tar.gz
Algorithm Hash digest
SHA256 9a7ba1e12775207724019aeed530efaad4ed664e1f9652c8da5a9458649896f9
MD5 ae4e087bff2aa38e265192d5d440a27d
BLAKE2b-256 3c7f83555dc9877a380cd354ab6a6bce839f69a299bd54aa057c9510ca169599

See more details on using hashes here.

Provenance

The following attestation bundles were made for entityml-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: entityml-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a3f536ff91c468e040d172a3d65b588b8a3018285d0fa9bfd051c38c7a357af
MD5 8fd42e14bbadb502fa4a17c6033955fd
BLAKE2b-256 c0fe662aabe6ab292afa952c1fec60bcb1927a9b903b7f5a90019692f35290bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for entityml-0.3.1-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