Skip to Content
Common Errors

Common Errors

This guide lists common errors you might encounter when using the SDK or API, along with their causes and recommended solutions.

Error Reference

Error SubjectError Messages / CodesDescription & Solution
Insufficient Fundsinsufficient lamports, INSUFFICIENT_BALANCE, BANKRUPTCYCause: Wallet lacks enough SOL for transaction fees or USDC/tokens for the trade.
Solution: Deposit more funds to cover fees and order value.
Session & AuthSESSION_EXPIRED, SESSION_INVALID, Invalid session ID, SIGNATURE_VERIFICATION, SESSION_NOT_FOUNDCause: The trading session key has expired, is invalid, or the signature failed.
Solution: Refresh the session or disconnect and reconnect your wallet to generate a new session.
Order ValidationINVALID_PRICE, INVALID_SIZE, tick size, precisionCause: Price or size does not meet market precision requirements.
Solution: Adjust values to match the market’s tick size and lot size.
Market ConstraintsPOST_ONLY_..., IMMEDIATE_ORDER_GOT_NO_FILLS, FILL_OR_KILLCause: Order constraints (Post-Only, IOC, FOK) could not be satisfied.
Solution: Relax constraints or adjust price/size to ensure execution.
Market StatusMARKET_CLOSED, MARKET_FROZENCause: The market is currently closed or frozen.
Solution: Wait for the market to resume trading.
Position LimitsPOSITION_SIZE_LIMIT, REDUCE_ONLY, position sizeCause: Position limit reached or “Reduce-Only” order would increase position.
Solution: Reduce trade size or ensure the order only closes existing positions.
Stale Datastale, outdated, price changedCause: Market data used for the order is too old.
Solution: Fetch fresh market data and retry the order.
Account HealthUNHEALTHY, OMFCause: Order would put account in an unhealthy state or exceed risk parameters.
Solution: Reduce order size or add more margin to your account.
Order ExecutionORDER_EXECUTION_EMPTYCause: Market has insufficient liquidity to fill the order.
Solution: Try a smaller order size or wait for more orderbook liquidity.
Minimum Sizeminimum size, MIN_SIZECause: Order size is below the minimum required for the market.
Solution: Increase order size to meet the minimum lot size requirement.
Price Bandprice band, outside rangeCause: Order price is outside the allowed price band range.
Solution: Adjust price to be within the market’s price band limits.
Position Order ConflictPOSITION_STATE_ORDER_PRICECause: Market close order plus pending limit orders exceeds current position size.
Solution: Cancel some limit orders or reduce the close amount.
Nord InitializationInvalid public key inputCause: Incorrect app ID when initializing Nord.
Solution: Verify the application ID used during initialization.
Last updated on