TradePose Models
Client 3.8.0 is paired with Models 2.13.0. Installation and migration details are
provided in the Client package’s docs/MIGRATION_3_8.md. Analyzer is installed locally
from the same release source and is not published to PyPI.
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==3.8.0' 'tradepose-models==2.13.0'
Models 2.13.0 is an Alpha minor-breaking release paired with Client 3.8.0. Client 3.7.0 permits this version in its dependency range but expects earlier public interfaces: preserve its lock or explicitly pin Models 2.12.0 until upgrading the pair.
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 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.
Billing and resource contracts
Plans require research_ingest_per_minute and task_slots. monthly_quota,
max_concurrent_tasks, subscription usage_limit, and usage limit/remaining/percentage
fields are removed. Usage telemetry remains. Models validates format, semantics and
forbidden capabilities; server policy owns bounded resource refusals. Gzip changes
transport/storage representation without changing computation identity.
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
- Homepage: tradepose.com
- Support: admin@tradepose.com
- Status: Alpha
- License: MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tradepose_models-2.13.0.tar.gz.
File metadata
- Download URL: tradepose_models-2.13.0.tar.gz
- Upload date:
- Size: 224.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9969237f908ddd3b472c860f6edd0f3243c9f1b6714062193fe44166c9981b
|
|
| MD5 |
87bc8b18a7db14abbce3a18f1a963f3e
|
|
| BLAKE2b-256 |
92670b1b93881e770007f9c5e40e018a5dd9a3895f82d29aafe09534aa7c7177
|
File details
Details for the file tradepose_models-2.13.0-py3-none-any.whl.
File metadata
- Download URL: tradepose_models-2.13.0-py3-none-any.whl
- Upload date:
- Size: 212.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a562eba2c2fecb92d75b6b6320d18e5aa89c5a4f8922cafd70aa5e30e62137
|
|
| MD5 |
d00cce05f07ef963505a7720aa763143
|
|
| BLAKE2b-256 |
3f7fd366f482d5d04cf0aa86d097c68c2503f006624a6ab84b32e94795035056
|