Python SDK
Status: Coming soon. The official Python SDK is under development. Use web3.py + REST API directly in the meantime.
Planned
Section titled “Planned”pip install predix-sdkfrom predix import PrediXClient
client = PrediXClient(chain="beta") # "beta" | "production"
# Marketsmarkets = await client.markets.list(status="active")market = await client.markets.get(1)
# Tradingquote = await client.trade.quote("buy_yes", market_id=1, usdc_amount=100)tx = await client.trade.buy_yes(market_id=1, usdc_amount=100, slippage_bps=50)
# Portfoliopositions = await client.portfolio.get("0x...")Current alternative
Section titled “Current alternative”Use web3.py directly with Router contract:
-> API reference - REST endpoints via requests