> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kuru.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDK

> A Python SDK for building market maker bots on the Kuru orderbook protocol.

The `kuru-sdk-py` SDK provides everything you need to build and run market maker bots on [Kuru](https://kuru.io). It handles execution, order lifecycle tracking, real-time market data, and margin management so you can focus on your quoting strategy.

## Features

* **Batch Cancel/Replace** - Atomically cancel and place orders in a single transaction via the MM Entrypoint
* **Order Lifecycle Tracking** - Track orders from creation through fills and cancellations via on-chain events
* **Real-time Orderbook Feed** - WebSocket client for live best bid/ask with auto-reconnection
* **Margin Account Integration** - Deposit, withdraw, and query margin balances
* **EIP-7702 Authorization** - Automatic MM Entrypoint authorization for your EOA
* **Gas Optimization** - EIP-2930 access list support to reduce gas costs

## Requirements

* Python >= 3.10
* Dependencies managed via uv (see `pyproject.toml`)

## Get Started

<CardGroup cols={3}>
  <Card title="Quick Start" icon="rocket" href="/sdk/py-sdk-quickstart">
    Installation, environment setup, and core SDK objects.
  </Card>

  <Card title="Market Making Guide" icon="chart-line" href="/sdk/py-sdk-market-making">
    Build a market making bot step-by-step with the SDK.
  </Card>

  <Card title="Reference" icon="book" href="/sdk/py-sdk-reference">
    Order types, configuration presets, and production guidance.
  </Card>

  <Card title="WebSocket Feeds" icon="signal" href="/sdk/py-sdk-websocket-feeds">
    Real-time orderbook and exchange WebSocket clients.
  </Card>

  <Card title="Historic Data" icon="database" href="/sdk/py-sdk-historic-data">
    Daily L2 orderbook snapshots as Parquet files on S3.
  </Card>
</CardGroup>

## Example

<Card title="Market Making Bot" icon="github" href="https://github.com/Kuru-Labs/mm-example">
  A market making bot for Kuru DEX implementing a skew-based quoting strategy with event-driven order tracking.
</Card>
