Kalshi Submit
Submit a locally signed Kalshi transaction to Solana RPC. Step 3 of the quote → sign → submit BYOW flow.
mk_kalshi_order. Also writes to mk_ai_agent_strategy_log and updates mk_ai_agent.sol_address. Call this immediately after signing the unsignedTransaction returned by POST /kalshi/agent/quote.
Notes
- Agent-only endpoint. Requires Bearer API key in
Authorizationheader. - Signature must be produced on client/agent side.
- Server does not store or process private keys.
- Transaction is broadcast directly to Solana mainnet RPC.
- Order status is tracked via DFlow
order-statusAPI in a background cron. - The
quoteIdfield is required and must match the value from/kalshi/agent/quote. - Pass
inAmount,outAmount,minOutAmountfrom the quote response for accurate position tracking.
Request fields
Example
- curl
- Python SDK
Response
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Kalshi market ticker
120"KXHIGHNY-26FEB19-T70"
Trade direction
YES, NO, yes, no Order action
BUY, SELL, buy, sell Signing Solana wallet address
128"8Yj7Dfp8oS3wkt2uP12xMz9VfF7ZzBv4qfB8Zbe8vXJ1"
Base64-encoded signed Solana transaction
Quote ID returned by /kalshi/agent/quote
100BUY order amount in USDC (required when action=BUY)
SELL share quantity (required when action=SELL)
Destination wallet for received tokens
128DFlow actual input amount (scaled integer) — from /kalshi/agent/quote
30DFlow estimated output amount (scaled integer) — from /kalshi/agent/quote
30DFlow minimum output amount (scaled integer) — from /kalshi/agent/quote
30Skill identifier
100Strategy source tag
100Strategy reasoning text (max 1000 chars)
1000