Trade
Errors

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
FieldTypeDescription
errorobject
error.codestring, one of 39 codes
error.messagestring
error.retryableboolean
error.stagevalidation | auth | read | engine | upload | build | wallet | co_sign | simulation | send | confirmation
error.fieldErrorsoptionalRecord<string, string[]>
error.programErroroptionalobject
error.programError.programIdaddress
error.programError.namestring
error.programError.numberoptionalinteger
error.retryAfterSecondsoptionalinteger
error.requestIdoptionalstring

Codes

CodeHTTPStageRetryMessage
VALIDATION_ERROR400validationnoCheck the highlighted fields.
UNAUTHORIZED401authnoSign in to continue.
ORIGIN_NOT_ALLOWED403validationnoThis origin is not allowed.
NOT_FOUND404readnoNot found.
PROGRAM_UNAVAILABLE409readyesThe Strobe program is not reachable yet.
CONFIGURATION_REQUIRED409readnoThe server is missing configuration for this.
IDEMPOTENCY_CONFLICT409validationnoThat idempotency key was used for another request.
TRANSACTION_EXPIRED409confirmationyesThe transaction expired before it landed. Build it again.
PAYLOAD_TOO_LARGE413validationnoThe request body is too large.
UNSUPPORTED_MEDIA_TYPE415validationnoSend an application/json body.
SIMULATION_FAILED422simulationnoThe transaction failed in simulation.
CHAIN_REFUSED422confirmationnoSolana refused the transaction.
RATE_LIMITED429validationyesToo many requests. Try again shortly.
INTERNAL_ERROR500readyesThe request could not be completed.
UPSTREAM_UNAVAILABLE502readyesA service Strobe depends on is not answering.
INVITE_UNKNOWN404authnoThat invite code does not exist.
INVITE_USED409authnoThat invite code has already been used.
NOT_ADMITTED403authnoThis wallet has not entered Season Zero. Enter with an invite code.
SESSION_INVALID401authnoThis session key is not registered for the wallet. Enable trading again.
SESSION_EXPIRED401authnoThis session key has expired. Enable trading again.
SIGNATURE_INVALID401authnoThe signature does not match the signed message.
REPLAYED_ACTION409authnoThis action was already received, or its nonce is outside the time window.
INSUFFICIENT_MARGIN422enginenoNot enough free margin for this order.
REDUCE_ONLY_WOULD_INCREASE422enginenoA reduce-only order cannot increase the position.
SIZE_BELOW_MINIMUM422validationnoThe size is below the market minimum.
PRICE_OFF_TICK422validationnoThe price is not a multiple of the tick size.
SIZE_OFF_LOT422validationnoThe size is not a multiple of the lot size.
LEVERAGE_OUT_OF_RANGE422validationnoLeverage must be a whole number from 1 to 20.
POST_ONLY_WOULD_CROSS422enginenoA post-only order would have filled immediately, so it was cancelled.
NO_LIQUIDITY422engineyesThere is nothing on the other side of the book to fill against.
NO_POSITION422enginenoThere is no open position in this market.
ORDER_UNKNOWN404enginenoNo open order with that id.
MARKET_UNKNOWN404validationnoNo market with that symbol.
FAUCET_ALREADY_CLAIMED409enginenoTest USDC was already claimed today (UTC). Claim again tomorrow.
FAUCET_DISABLED409enginenoThe test USDC faucet is off.
WITHDRAWALS_DISABLED409enginenoWithdrawals are off.
WITHDRAWAL_EXCEEDS_FREE_MARGIN422enginenoThe amount is more than the free margin.
CHAIN_OFF409buildnoSettlement on Solana is off in Season Zero, so there is nothing to sign.
ENGINE_UNAVAILABLE503engineyesThe matching engine is not reachable. Try again shortly.