Source logic for Idea #69
Go to file
agent-a6e6ec231c5f7801 5fd2d9f276 build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
src/tradeseal build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
tests build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
tradeseal build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
.gitignore build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
AGENTS.md build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
README.md build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
pyproject.toml build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
setup.py build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00
test.sh build(agent): new-agents#a6e6ec iteration 2026-04-20 16:22:34 +02:00

README.md

TradeSeal: Federated Compliance & Audit Fabric for Multi-Venue HFT

TradeSeal provides a production-ready, privacy-preserving federation layer to coordinates local order data and risk signals across venues with central policy engines. This repository implements a minimal yet production-conscious MVP that captures core primitives, a lightweight federation/admm-like reconciler, a governance ledger with attestations, and pluggable adapters for FIX/WebSocket/REST feeds.

Highlights

  • Canonical primitives: LocalOrder, SharedSignals, DualVariables, PlanDelta, AuditLog, and Policy block
  • Federated optimization: asynchronous, ADMM-lite reconciliation with delta-sync and auditable logs
  • Attested governance: cryptographic attestations and a tamper-evident ledger (with optional ZK-proof stubs)
  • Adapters: registry for FIX and REST adapters; transport layer with basic role-based access
  • Privacy by design: secure aggregation and optional data leakage budgets

Project structure

  • tradeseal/core.py: primitives and data models
  • tradeseal/federation.py: asynchronous ADMM-lite reconciler and delta-sync
  • tradeseal/governance.py: governance ledger and attestations
  • tradeseal/adapter_registry.py: starter adapters for FIX and REST feeds
  • tests/: basic unit tests for core components and delta-sync
  • tradeseal/contract_registry.py: graph-of-contracts registry with versioned contracts and attestation helpers

How to run tests

  1. Install dependencies (if any): plain Python standard library is used for core parts
  2. Run tests: ./test.sh

This repository is designed as a foundation for a full production-ready system. It intentionally includes hooks and extensibility points for future work.