API
Errors
Every error code with its HTTP status, stage and message.
A failed REST call answers its HTTP status with the error envelope, and a refused WebSocket action answers a reject with the same error object. Branch on code. retryable says whether sending the same request again can succeed, and stage names the step of the flow that failed.
Error envelope
| Field | Type | Description |
|---|---|---|
error | object | |
error.code | string, one of 39 codes | |
error.message | string | |
error.retryable | boolean | |
error.stage | validation | auth | read | engine | upload | build | wallet | co_sign | simulation | send | confirmation | |
error.fieldErrorsoptional | Record<string, string[]> | |
error.programErroroptional | object | |
error.programError.programId | address | |
error.programError.name | string | |
error.programError.numberoptional | integer | |
error.retryAfterSecondsoptional | integer | |
error.requestIdoptional | string |
Codes
| Code | HTTP | Stage | Retry | Message |
|---|---|---|---|---|
VALIDATION_ERROR | 400 | validation | no | Check the highlighted fields. |
UNAUTHORIZED | 401 | auth | no | Sign in to continue. |
ORIGIN_NOT_ALLOWED | 403 | validation | no | This origin is not allowed. |
NOT_FOUND | 404 | read | no | Not found. |
PROGRAM_UNAVAILABLE | 409 | read | yes | The Strobe program is not reachable yet. |
CONFIGURATION_REQUIRED | 409 | read | no | The server is missing configuration for this. |
IDEMPOTENCY_CONFLICT | 409 | validation | no | That idempotency key was used for another request. |
TRANSACTION_EXPIRED | 409 | confirmation | yes | The transaction expired before it landed. Build it again. |
PAYLOAD_TOO_LARGE | 413 | validation | no | The request body is too large. |
UNSUPPORTED_MEDIA_TYPE | 415 | validation | no | Send an application/json body. |
SIMULATION_FAILED | 422 | simulation | no | The transaction failed in simulation. |
CHAIN_REFUSED | 422 | confirmation | no | Solana refused the transaction. |
RATE_LIMITED | 429 | validation | yes | Too many requests. Try again shortly. |
INTERNAL_ERROR | 500 | read | yes | The request could not be completed. |
UPSTREAM_UNAVAILABLE | 502 | read | yes | A service Strobe depends on is not answering. |
INVITE_UNKNOWN | 404 | auth | no | That invite code does not exist. |
INVITE_USED | 409 | auth | no | That invite code has already been used. |
NOT_ADMITTED | 403 | auth | no | This wallet has not entered Season Zero. Enter with an invite code. |
SESSION_INVALID | 401 | auth | no | This session key is not registered for the wallet. Enable trading again. |
SESSION_EXPIRED | 401 | auth | no | This session key has expired. Enable trading again. |
SIGNATURE_INVALID | 401 | auth | no | The signature does not match the signed message. |
REPLAYED_ACTION | 409 | auth | no | This action was already received, or its nonce is outside the time window. |
INSUFFICIENT_MARGIN | 422 | engine | no | Not enough free margin for this order. |
REDUCE_ONLY_WOULD_INCREASE | 422 | engine | no | A reduce-only order cannot increase the position. |
SIZE_BELOW_MINIMUM | 422 | validation | no | The size is below the market minimum. |
PRICE_OFF_TICK | 422 | validation | no | The price is not a multiple of the tick size. |
SIZE_OFF_LOT | 422 | validation | no | The size is not a multiple of the lot size. |
LEVERAGE_OUT_OF_RANGE | 422 | validation | no | Leverage must be a whole number from 1 to 20. |
POST_ONLY_WOULD_CROSS | 422 | engine | no | A post-only order would have filled immediately, so it was cancelled. |
NO_LIQUIDITY | 422 | engine | yes | There is nothing on the other side of the book to fill against. |
NO_POSITION | 422 | engine | no | There is no open position in this market. |
ORDER_UNKNOWN | 404 | engine | no | No open order with that id. |
MARKET_UNKNOWN | 404 | validation | no | No market with that symbol. |
FAUCET_ALREADY_CLAIMED | 409 | engine | no | Test USDC was already claimed today (UTC). Claim again tomorrow. |
FAUCET_DISABLED | 409 | engine | no | The test USDC faucet is off. |
WITHDRAWALS_DISABLED | 409 | engine | no | Withdrawals are off. |
WITHDRAWAL_EXCEEDS_FREE_MARGIN | 422 | engine | no | The amount is more than the free margin. |
CHAIN_OFF | 409 | build | no | Settlement on Solana is off in Season Zero, so there is nothing to sign. |
ENGINE_UNAVAILABLE | 503 | engine | yes | The matching engine is not reachable. Try again shortly. |