Typed Python client for the DeltaZero deterministic DeFi risk API
Project description
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
python -m pip install deltazero-core
Development from the repository
From the repository root:
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
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()
Project details
Release history Release notifications | RSS feed
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 deltazero_core-0.1.0.tar.gz.
File metadata
- Download URL: deltazero_core-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5ca42209fc09dd8ec63a2b531ec91070b33cfc7695f00e2b81c8687fe08752d
|
|
| MD5 |
6c8ca618b17944e4e03bf558a0686a39
|
|
| BLAKE2b-256 |
e27dd9fb755bdb964d6d7ac4314f12e6fc74592849aa27cad6f1683716581744
|
Provenance
The following attestation bundles were made for deltazero_core-0.1.0.tar.gz:
Publisher:
publish-python-sdk.yml on Teecash96/DeltaZero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltazero_core-0.1.0.tar.gz -
Subject digest:
e5ca42209fc09dd8ec63a2b531ec91070b33cfc7695f00e2b81c8687fe08752d - Sigstore transparency entry: 2179353058
- Sigstore integration time:
-
Permalink:
Teecash96/DeltaZero@8ae43d2ba9d9fb4ded27942189e1a5fe07b77a01 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Teecash96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@8ae43d2ba9d9fb4ded27942189e1a5fe07b77a01 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file deltazero_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deltazero_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a40e2658d1fa88f05fdaf5ed7466ee6e22db537cf7fa05e87f15a74af20cfec
|
|
| MD5 |
68c09c7862cade7eec2af78661c93e26
|
|
| BLAKE2b-256 |
3e9685686a4032b4b657bbee5e7cc8370c335665428f8b576db4f9a131b2581a
|
Provenance
The following attestation bundles were made for deltazero_core-0.1.0-py3-none-any.whl:
Publisher:
publish-python-sdk.yml on Teecash96/DeltaZero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltazero_core-0.1.0-py3-none-any.whl -
Subject digest:
7a40e2658d1fa88f05fdaf5ed7466ee6e22db537cf7fa05e87f15a74af20cfec - Sigstore transparency entry: 2179353126
- Sigstore integration time:
-
Permalink:
Teecash96/DeltaZero@8ae43d2ba9d9fb4ded27942189e1a5fe07b77a01 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Teecash96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@8ae43d2ba9d9fb4ded27942189e1a5fe07b77a01 -
Trigger Event:
workflow_dispatch
-
Statement type: