HTTP status: 400 · Title: “Amount too large”Documentation Index
Fetch the complete documentation index at: https://docs.kash.bot/llms.txt
Use this file to discover all available pages before exploring further.
When it fires
amount exceeds MAX_USDC_PER_TRADE. This is a defence-in-depth check distinct from your key’s per-trade and daily spending limits — it catches obvious mistakes regardless of your tier.
Why it happens
The most common cause is a decimal-place mistake: passing1000000000000000000 (“1 USDC in 18-decimal atomic units”) instead of 1 (“1 USDC in human units”). The public API takes amounts in human units (the same string a person would type), not 18-decimal atomic units.
How to fix
- Pass
amountas a string of the human-unit USDC value:"100","0.50","2500". - If you have an atomic value, divide by 10^6 (USDC is 6 decimals on-chain, but our API normalises to “USDC the user thinks about”).
- For sustained high-value flows above
MAX_USDC_PER_TRADE, request a tier upgrade — your key’sper_trade_limit_usdccan be raised, but the absolute cap is a platform-level safety net.
Related codes
SPENDING_LIMIT_EXCEEDED— your key’s per-trade or daily limit, separate from the platform capVALIDATION_FAILED— generic validation failure