Skip to main content

TradePose Models

TradePose Models contains independently versioned Pydantic and Polars contracts shared by the public TradePose Client and private TradePose systems. It keeps serialized strategy, execution, result, and market-data shapes consistent across those boundaries.

Installation

Ordinary users should install only tradepose-client:

uv add tradepose-client

Do not install or manually pin tradepose-models directly. The Client dependency constraints select a compatible Models version for its public API and wire contracts.

If a package resolver reports a Models conflict, upgrade tradepose-client instead of guessing a Models version:

uv lock --upgrade-package tradepose-client
uv sync

Direct installation is intended only for maintainers of systems that implement the shared TradePose contracts.

Canonical research Workloads

Maintainers can import the closed research execution contract from tradepose_models.research. Workload and TaskSourceBinding use only the exact current typed schema and carry no schema-version field. They require the canonical-json-v1 and research-execution-v1 capability revisions; unknown, missing, legacy schema-version, and extra fields fail closed. Use canonical_workload_bytes() and canonical_task_source_binding_bytes() for transport, the typed ref helpers for content identity, and binding_requirements() to derive source roles solely from the Workload's MarketDataSpec.

Use validate_research_result_frame() at Python artifact boundaries to verify a typed ResearchTaskRequest, its kind-required Workload/Indicator manifests, exact physical Polars schema and nullability, indicator Struct fields, and canonical Policy row order. The validator intentionally does not cast: accepting a convertible dtype would hide a Worker wire-schema violation. Perform any desired data conversion only after canonical artifact admission, outside this contract check.

For trades, all 45 Core columns are mandatory in their producer order and retain their exact dtype through Parquet, including empty and all-null scenarios. The Worker adds only a non-null trailing policy_ref. Missing, extra, reordered, physical Null, or castable-but-wrong columns are rejected without compatibility fallback.

MarketDataSpec contains the complete direct/resampled source lineage and normalized indicator computation DAG. market_data_spec_from_compiled_graph() is the sole narrow projection from the validated authoring graph; it verifies every physical computation identity and preserves typed dependencies, selected multi-output fields, shift, and publication alignment. It is not a second runtime contract.

This package does not compile authoring sources, resolve catalogs, admit Tasks, or execute Workloads. Those remain separate service boundaries.

Task and expression compatibility

Models 2.11.1 includes immutable Task snapshots and closed failure projections for business_commit_unconfirmed and saved_result_publication_failed. Deploy matching Gateway/Worker task notification and snapshot contracts together. Expanded native Polars expression support also requires a matching Worker; package installation does not update server services or translate older schemas.

Runtime requirements

  • Python 3.13 or newer
  • Pydantic 2.12.1 or newer
  • Polars 1.33.1

Models is Alpha software. Its version is independent from the Client version, and contract-breaking changes may require a coordinated Client upgrade.

Support and license

Download files

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

Source Distribution

tradepose_models-2.11.1.tar.gz (192.2 kB view details)

Uploaded Source

Built Distribution

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

tradepose_models-2.11.1-py3-none-any.whl (184.3 kB view details)

Uploaded Python 3

File details

Details for the file tradepose_models-2.11.1.tar.gz.

File metadata

  • Download URL: tradepose_models-2.11.1.tar.gz
  • Upload date:
  • Size: 192.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for tradepose_models-2.11.1.tar.gz
Algorithm Hash digest
SHA256 e65effe13569fb6df9cd92571d1fd242f7b942bbe825cc74beaafb160ff2bb76
MD5 645f00652d56a0d90b3581876f37542f
BLAKE2b-256 3c5a32865507093531dd17efb6e50dfef51d3aa46dac335db307c1700278422e

See more details on using hashes here.

File details

Details for the file tradepose_models-2.11.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tradepose_models-2.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b4b1856efa6ff668f9b90d1d99c9addff893f443fe12a25097205a5bd13cf1
MD5 17ee48a7a949dc5b4ef3649effbaf987
BLAKE2b-256 837b538c65964bec73a7a8195ba50f84c10aa61b57377963b3241a1577353c70

See more details on using hashes here.

Release history Release notifications | RSS feed

2.15.0

2 files

2.14.0

2 files

2.13.0

2 files

2.12.0

2 files

This release

2.11.1 This release

2 files

2.11.0

2 files

2.10.0

2 files

2.9.1

2 files

2.9.0

2 files

2.8.0

2 files

2.7.3

2 files

2.7.2

2 files

2.7.1

2 files

2.7.0

2 files

2.6.0

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.7.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page