Charge platform trading fee for a Kalshi order. Reuses the same Fireblocks Raw signing + SPL transferChecked logic as /kalshi/charge-fee: the caller passes the fee amount and the user’s Solana wallet address; the backend signs and broadcasts an SPL transfer from the user’s USDC ATA to the platform fee ATA. Kalshi fees are NOT auto-charged — callers MUST invoke this after every successful trade.
Charge the platform trading fee for a Kalshi order via Fireblocks Raw signing + SPLDocumentation Index
Fetch the complete documentation index at: https://docs.aionmarket.com/llms.txt
Use this file to discover all available pages before exploring further.
transferChecked on Solana.
amount (typically 1% of order amount)fromAddress (Solana wallet, USDC ATA owner)transferChecked logic as POST /kalshi/charge-fee — the platform Fireblocks SOL key (already approved as the user’s SPL token delegate) signs an SPL transfer that moves USDC from the user’s USDC ATA to the platform fee ATA.
The endpoint does not recompute the fee from the database; the caller is the source of truth for amount.
POST /kalshi/agent/submit| Field | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | Fee amount in USDC as a decimal string (e.g. "0.10"). |
fromAddress | string | Yes | User’s Solana wallet address (USDC ATA owner). |
BROADCASTED.| Status | Description |
|---|---|
| 400 | amount is required / fromAddress is required |
| 400 | 平台 delegate 地址与用户钱包地址相同 — fromAddress equals the platform vault SOL address |
| 400 | Solana 地址无效 — invalid pubkey |
| 400 | Fireblocks 签名失败 ... BLOCKED_BY_POLICY — Fireblocks TAP rejects Raw signing; configure a Raw Signing rule allowing the SOL vault |
| 400 | Solana 广播失败 — RPC rejection (insufficient delegated allowance, no USDC balance, etc.) |
| 500 | Fireblocks SDK call failed |
POST /kalshi/charge-fee.BLOCKED_BY_POLICY is returned, configure a Transaction Authorization Policy rule in the Fireblocks Console allowing Raw Signing for the SOL vault used by the platform.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.