Releases: StrobeLabs/perpcity-python-sdk
Releases · StrobeLabs/perpcity-python-sdk
v0.4.2 -- Initial Public Release
Initial public release of the PerpCity Python SDK.
Features
- PerpCityContext -- Core context for RPC connection, wallet, and contract addresses
- Position management -- Open/close taker and maker positions, adjust margin and notional
- Market data -- Fetch perp data (mark price, fees, bounds, liquidity)
- Token approvals -- USDC approval flow for perp manager
- Pure math -- Tick/price conversions, sqrt price math, PnL calculations, liquidation checks
- Integration tests -- Full test suite against Anvil with mock contract deployment
- CI -- Lint (Ruff), unit tests (pytest), integration tests
Installation
pip install perpcity-sdkRequirements
- Python >= 3.10