Skip to content

Releases: StrobeLabs/perpcity-python-sdk

v0.4.2 -- Initial Public Release

26 Feb 12:54

Choose a tag to compare

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-sdk

Requirements

  • Python >= 3.10