Metadata-Version: 2.4
Name: deltazero-core
Version: 0.1.0
Summary: Typed Python client for the DeltaZero deterministic DeFi risk API
Author: Akanbi Labs
License-Expression: MIT
Project-URL: Homepage, https://delta-zero-alpha.vercel.app
Project-URL: Documentation, https://github.com/Teecash96/DeltaZero#source-distributed-sdks
Project-URL: Repository, https://github.com/Teecash96/DeltaZero
Project-URL: Issues, https://github.com/Teecash96/DeltaZero/issues
Keywords: defi,risk,delta-neutral,okx,x402
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# DeltaZero Python SDK

Typed SDK package for the live DeltaZero API.

This package is a thin client around the deployed DeltaZero API. It does not duplicate backend logic and does not add authentication.

## Installation

```bash
python -m pip install deltazero-core
```

## Development from the repository

From the repository root:

```bash
cd sdk/python
python -m pytest
```

To use the package in another local project, point your Python environment at this folder while the repository is checked out locally.

## API

```python
from deltazero import DeltaZeroClient

client = DeltaZeroClient(base_url="https://deltazero-production.up.railway.app")

report = client.build_strategy({
    "asset": "SOL",
    "capital_usd": 5000,
    "risk_tolerance": "medium",
    "target_style": "neutral_yield",
    "long_yield_apy": 14,
    "short_funding_apy": 3,
    "fee_drag_apy": 1,
})
```

Supported methods:

- `build_strategy()`
- `audit_position()`
- `stress_test()`
- `audit_wallet()`
