Skip to main content

Collective intelligence skills for trading agents

Project description

zero-skills

Collective intelligence skills for trading agents. Built by ZERO.

Install

pip install zero-skills

Quick start

from zero_skills import RegimeDetector, ConvictionSizer, ExitEngine, ZeroNetwork

# Detect market regime from price history
detector = RegimeDetector()
regime = detector.classify("BTC", closes)
# => Regime(name='trending', confidence='high')

# Size positions by conviction
sizer = ConvictionSizer(equity=1000.0)
size = sizer.compute(consensus=0.85, regime=regime.name)
# => 187.50

# Check exit signals
engine = ExitEngine()
result = engine.check(
    position={"entry_price": 100, "direction": "LONG", "entry_regime": "trending"},
    market_data={"price": 112, "atr": 2.5, "hurst": 0.65},
    regime="trending",
)
# => {"should_exit": False, "reason": "hold"}

# Connect to zero network
net = ZeroNetwork(token="your-agent-token")
await net.activate(wallet="0x...")
await net.report_decision(coin="BTC", direction="LONG", action="entry", regime="trending")
await net.heartbeat(equity=1000.0, positions=[])

Immune system

from zero_skills import ImmuneProtocol, Check

immune = ImmuneProtocol()
immune.register_check(Check(
    name="equity_above_zero",
    check=lambda: get_equity() > 0,
    fix=lambda: close_all_positions(),
))
result = await immune.run_cycle()
# => CycleResult(checks_run=1, checks_passed=1, saves=0)

Modules

Module Class Purpose
regime RegimeDetector Hurst + DFA regime classification
conviction ConvictionSizer Conviction-based position sizing
exits ExitEngine Trailing stop + regime exit + profit target
immune ImmuneProtocol Self-healing check/fix framework
network ZeroNetwork HTTP client for zero API
score ScoreTracker Score and rank tracking

More

getzero.dev/skills

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

zero_skills-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

zero_skills-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file zero_skills-0.1.0.tar.gz.

File metadata

  • Download URL: zero_skills-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for zero_skills-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce74335bdd26a784567526524c2a8c068b3ebd5ee11d7e27e69fdb834aababab
MD5 c2b6a1a687fe09360e585a2c1e47470a
BLAKE2b-256 7c74417354626285e63b60383302f1bbb404c084c3393d779e1fc33672c20db9

See more details on using hashes here.

File details

Details for the file zero_skills-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zero_skills-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for zero_skills-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ec7505e789e68dd04395c261605f1d83441553ff76f9669ae1e1d8c0c5a4f09
MD5 1da38a0b1ea3c7c524fc19437f90e7a9
BLAKE2b-256 5a1d63c8bf066528bb88ad9d493d898f4b903abcb149bc8a01f42203e32eb1fd

See more details on using hashes here.

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