When it fires
The request body, path or query parameters failed validation: a field is missing, has the wrong type, or is out of range.Why it happens
- A required field is missing or
null. - A field has the wrong type, for example
amountsent as a number instead of a string. Amounts are strings so they keep full precision. - A field violates a constraint (UUID format, enum value, length, or a USDC amount with more than 6 decimal places).
How to fix
- The
detailfield names the first offending field and the constraint it broke. - Check the request schema in the Endpoint reference or the OpenAPI document at
https://api.kash.bot/v1/openapi.json. - The TypeScript SDK validates some request bodies before sending and raises
KashValidationErrorclient-side; server-side validation failures surface as the same class.
Example
Related codes
AMOUNT_TOO_LARGE—amountexceeds the platform-wide per-trade ceilingOUTCOME_INDEX_INVALID—outcomeIndexis out of range for the market