Get an unsigned Kalshi transaction from DFlow. Step 1 of the quote → sign → submit BYOW flow.
Returns an unsigned Solana transaction from DFlow. The agent signs it locally and submits viaDocumentation Index
Fetch the complete documentation index at: https://docs.aionmarket.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /kalshi/agent/submit. Your private key never leaves your machine.
Authorization header.BUY (amount in USDC) and SELL (shares).quoteErrorCode is present, the quote is degraded — no unsigned transaction is available.| Field | Type | Required | Description |
|---|---|---|---|
marketTicker | string | Yes | Kalshi market ticker, e.g. KXHIGHNY-26FEB19-T70 |
side | string | Yes | YES or NO |
action | string | Yes | BUY or SELL |
amount | number | BUY required | Buy amount in USDC (min 0.000001) |
shares | number | SELL required | Sell shares (min 0.000001) |
userPublicKey | string | No | Solana wallet address (overrides agent’s sol_address) |
destinationWallet | string | No | Destination wallet for received tokens |
| Response field | Type | Description |
|---|---|---|
marketTicker | string | Echoed market ticker |
title | string | Market question title |
status | string | Market status (e.g. active, settled) |
side | string | YES or NO |
action | string | BUY or SELL |
yesPrice | string | Current YES price |
noPrice | string | Current NO price |
yesMint | string | YES outcome token mint address |
noMint | string | NO outcome token mint address |
inputMint | string | Input token mint for this trade (USDC or outcome token) |
outputMint | string | Output token mint for this trade (outcome token or USDC) |
scaledAmount | string | Trade amount in atomic units (6 decimals) |
quoteId | string | Server-generated quote ID — pass to /kalshi/agent/submit |
unsignedTransaction | string | Base64-encoded unsigned Solana transaction from DFlow |
expiresAt | number | Quote expiry timestamp in milliseconds |
inAmount | string | DFlow actual input amount (scaled, 6 decimals). Optional |
outAmount | string | DFlow estimated output amount (scaled). Optional |
minOutAmount | string | DFlow minimum output with slippage protection. Optional |
quoteErrorCode | string | Error code when DFlow cannot build transaction. Optional |
quoteErrorMessage | string | Human-readable error message. Optional |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Kalshi market ticker
120"KXHIGHNY-26FEB19-T70"
Trade direction
YES, NO, yes, no Order action
BUY, SELL, buy, sell BUY order amount in USDC (required when action=BUY, min 0.000001)
10
SELL share quantity (required when action=SELL, min 0.000001)
5
User Solana wallet address
128"8Yj7Dfp8oS3wkt2uP12xMz9VfF7ZzBv4qfB8Zbe8vXJ1"
Destination wallet for received tokens
128