Installation
Configuration
The SDK uses two files: a config.toml for all non-secret settings, and a .env for your private key.
.env — secrets only:
config.toml — everything else:
Never commit your .env file to version control. Add it to .gitignore.
Core Concepts
Kuru market making interacts with three on-chain components:
Key SDK Objects
The SDK provides three main objects:
KuruClient - The main facade for execution, event listeners, and orderbook streaming.
User - Deposits/withdrawals, approvals, and EIP-7702 authorization.
Order - Your local representation of a limit order or cancel.
Create a Client
Use ConfigManager to load configuration from config.toml with sensible defaults:
load_all_configs() automatically loads config.toml, fetches the market’s on-chain params, and sets price_precision, size_precision, tick_size, and token addresses/decimals/symbols. No extra flags needed.
Fund Margin
Orders are backed by margin balances. Deposit base and/or quote before quoting:
If you quote both sides, keep both base and quote margin funded; otherwise your orders will revert.
Next Steps
Now that you have a client and funded margin, follow the Market Making Guide to build your bot.