Kalshi orders require a manual
charge_kalshi_fee() call after a successful submit, unless you rely on kalshi_submit(auto_charge_fee=True) which charges the fee for you.Fee Overview
Kalshi Fee Charging
Fee Calculation
orderAmount— the total USDC amount of the order
How to Charge
Prerequisites
- Solana wallet holds sufficient USDC (order amount + fee).
- SPL token approval granted to the platform Fireblocks SOL delegate.
- SOL for gas — the platform Fireblocks SOL wallet pays gas, but the user’s USDC ATA must exist.
Request Body — POST /aiagent/charge-fee/kalshi/trade-fee
Response
Agent Commission
Agents that execute trades earn a 10% commission on collected fees:- Platform collects 1% fee → agent receives 0.1% of trade notional.
- Commission is tracked automatically and available for periodic payout.
- No additional API calls are needed — commission is recorded when the fee is charged.