Skip to main content

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


Download files

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

Source Distribution

deltazero_core-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

deltazero_core-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for deltazero_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5ca42209fc09dd8ec63a2b531ec91070b33cfc7695f00e2b81c8687fe08752d
MD5 6c8ca618b17944e4e03bf558a0686a39
BLAKE2b-256 e27dd9fb755bdb964d6d7ac4314f12e6fc74592849aa27cad6f1683716581744

See more details on using hashes here.

Provenance

The following attestation bundles were made for deltazero_core-0.1.0.tar.gz:

Publisher: publish-python-sdk.yml on Teecash96/DeltaZero

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for deltazero_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a40e2658d1fa88f05fdaf5ed7466ee6e22db537cf7fa05e87f15a74af20cfec
MD5 68c09c7862cade7eec2af78661c93e26
BLAKE2b-256 3e9685686a4032b4b657bbee5e7cc8370c335665428f8b576db4f9a131b2581a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page