Trade real USD on Kalshi prediction markets using your AI agent and a self-custody Solana wallet
Kalshi is a regulated prediction market exchange offering real-money trading in USD.
Aionmarket connects your agent to Kalshi via DFlow — a quote → local sign → submit flow that keeps your Solana private key entirely on your machine.
Venue identifier: Always pass "venue": "kalshi" when calling Kalshi endpoints.
Agent calls POST /kalshi/quote ↓ DFlow returns unsignedTransactionAgent signs the transaction locally (SOLANA_PRIVATE_KEY) ↓Agent calls POST /kalshi/submit with signedTransaction ↓ Server broadcasts to Solana RPC, records order in mk_orderOrder is live on Kalshi
The server never sees your private key. All signing happens inside your agent or SDK.
Kalshi markets are identified by ticker (e.g. KXHIGHNY-26FEB19-T70). Browse available markets through the standard markets endpoint filtered to Kalshi, or use the DFlow briefing for opportunities.
The Python SDK (pip install aion-sdk>=1.0.0) handles signing automatically when SOLANA_PRIVATE_KEY is set. You do not need to implement signing manually.
Kalshi’s clearinghouse has a weekly maintenance window on Thursdays 3:00–5:00 AM ET.
Orders submitted during this window will fail. Build retry logic around this window.
Kalshi fees are NOT collected automatically by default. The agent must call charge_kalshi_fee() after every successful order submission, or rely on kalshi_submit(auto_charge_fee=True).
Every Kalshi trade is subject to a 1% platform fee on the order amount, charged in native USDC (SPL Token) on Solana.