Solana error codes › OpenBook V2

OpenBook V2 error codes

43 error codes defined by OpenBook V2 (program ID opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb). In logs they appear as custom program error: 0x… after Program opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb failed.

Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.

HexCodeError
0x17706000SomeError
0x17716001InvalidInputNameLength
Name lenght above limit
0x17726002InvalidInputMarketExpired
Market cannot be created as expired
0x17736003InvalidInputMarketFees
Taker fees should be positive and if maker fees are negative, greater or equal to their abs value
0x17746004InvalidInputLots
Lots cannot be negative
0x17756005InvalidInputLotsSize
Lots size above market limits
0x17766006InvalidInputOrdersAmounts
Input amounts above limits
0x17776007InvalidInputCancelSize
Price lots should be greater than zero
0x17786008InvalidInputPriceLots
Expected cancel size should be greater than zero
0x17796009InvalidInputPegLimit
Peg limit should be greater than zero
0x177a6010InvalidInputOrderType
The order type is invalid. A taker order must be Market or ImmediateOrCancel
0x177b6011InvalidInputOrderId
Order id cannot be zero
0x177c6012InvalidInputHeapSlots
Slot above heap limit
0x177d6013InvalidOracleTypes
Cannot combine two oracles of different providers
0x177e6014InvalidSecondOracle
Cannot configure secondary oracle without primary
0x177f6015NoCloseMarketAdmin
This market does not have a `close_market_admin` and thus cannot be closed.
0x17806016InvalidCloseMarketAdmin
The signer of this transaction is not this market's `close_market_admin`.
0x17816017InvalidOpenOrdersAdmin
The `open_orders_admin` required by this market to sign all instructions that creates orders is missing or is not valid
0x17826018InvalidConsumeEventsAdmin
The `consume_events_admin` required by this market to sign all instructions that consume events is missing or is not valid
0x17836019InvalidMarketVault
Provided `market_vault` is invalid
0x17846020IndexerActiveOO
Cannot be closed due to the existence of open orders accounts
0x17856021OraclePegInvalidOracleState
Cannot place a peg order due to invalid oracle state
0x17866022UnknownOracleType
oracle type cannot be determined
0x17876023OracleConfidence
an oracle does not reach the confidence threshold
0x17886024OracleStale
an oracle is stale
0x17896025OrderIdNotFound
Order id not found on the orderbook
0x178a6026EventHeapContainsElements
Event heap contains elements and market can't be closed
0x178b6027InvalidOrderPostIOC
ImmediateOrCancel is not a PostOrderType
0x178c6028InvalidOrderPostMarket
Market is not a PostOrderType
0x178d6029WouldSelfTrade
would self trade
0x178e6030MarketHasExpired
The Market has already expired.
0x178f6031InvalidPriceLots
Price lots should be greater than zero
0x17906032InvalidOraclePrice
Oracle price above market limits
0x17916033MarketHasNotExpired
The Market has not expired yet.
0x17926034NoOwnerOrDelegate
No correct owner or delegate.
0x17936035NoOwner
No correct owner
0x17946036OpenOrdersFull
No free order index in open orders account
0x17956037BookContainsElements
Book contains elements
0x17966038OpenOrdersOrderNotFound
Could not find order in user account
0x17976039InvalidPostAmount
Amount to post above book limits
0x17986040DisabledOraclePeg
Oracle peg orders are not enabled for this market
The name points to a feature or pool state that currently blocks this action.
0x17996041NonEmptyMarket
Cannot close a non-empty market
0x179a6042NonEmptyOpenOrdersPosition
Cannot close a non-empty open orders account

Decode an error

Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.

Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.

Source: solana-idls@1.2.1. Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.