sharpearena (Python)
Python distribution of SharpeArena — a leak-free, point-in-time arena for trading
agents. A pyo3 binding over the Rust environment plus a gymnasium-compatible
wrapper and a PrimeIntellect verifiers environment.
from sharpearena import SharpeArenaEnv
env = SharpeArenaEnv(n_symbols=4, n_days=120, seed=7)
obs, info = env.reset()
done = False
while not done:
action = env.action_space.sample() # target-weight vector
obs, reward, terminated, truncated, info = env.step(action)
done = terminated or truncated
The native binding (sharpearena.sharpearena_py.TradingEnv) exchanges the
language-agnostic wire JSON at its boundary: reset() -> str and
step(decision_json) -> (obs_json, reward, done, info_json).
Build from source with maturin: python -m maturin develop.
Metadata
Release files for sharpearena 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sharpearena-0.21.0.tar.gz | 516.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| sharpearena-0.21.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.17+ x86-64 | Details |
| sharpearena-0.21.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
| sharpearena-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64 | Details |
| sharpearena-0.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.17+ x86-64 | Details |
Total release size: 4.6 MB