Error Classes
code property:
| Error | Code | When |
|---|---|---|
ValidationError | VALIDATION_ERROR | Invalid params, wrong amount/size combo, price out of range |
AuthError | AUTH_ERROR | Missing API key, missing wallet/signer in SDK config |
NetworkError | NETWORK_ERROR | HTTP errors, timeouts, server errors, 409 conflicts |
SigningError | SIGNING_ERROR | Wallet rejected signature, missing signing method |
NotSupportedError | NOT_SUPPORTED | Operation unavailable for venue (e.g., Kalshi limit orders) |
Handling Errors
Retryable vs Non-Retryable
| Error | Retryable? | Action |
|---|---|---|
NetworkError | Yes | Retry with same idempotency key |
ValidationError | No | Fix input parameters |
AuthError | No | Fix API key or wallet setup |
SigningError | No | User must approve signature |
NotSupportedError | No | Operation not available |
