Install
MM_PRIVATE_KEY. Set MM_BASE_URL to the endpoint from Spire and MM_MASTER_ADDRESS to the master that owns your inventory.
Approve an API wallet
Direct signing with your master needs no delegation. To create a hot API wallet, constructExchange with your master key, then call:
agent_private_key in your secret manager without logging it. Reconstruct Exchange with that key and the same account_address. Approving another key under quoting retires the previous key. Approval delegates signing; it does not grant maker access. See API wallets and signing.
Place an order
Choose a current, non-marketable price and size on the market grid. Prices are USDC per WETH; sizes are WETH. The SDK uses spot symbolWETH/USDC:
Alo rejects an order that would cross the current book. Every subsequent order() adds another order; it does not remove this one. The scheduled deadline applies to all orders owned by the master and bounds newly published curves. An already published curve keeps its previous expiry.
Modify and cancel
Protect and reconcile
tid, and reconcile after reconnect. See fill reporting.
A runnable command-line version is available as examples-maker.py. It manages individual orders using the same SDK calls.