Solana error codes › OpenBook V2
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.
| Hex | Code | Error |
|---|---|---|
| 0x1770 | 6000 | SomeError |
| 0x1771 | 6001 | InvalidInputNameLength Name lenght above limit |
| 0x1772 | 6002 | InvalidInputMarketExpired Market cannot be created as expired |
| 0x1773 | 6003 | InvalidInputMarketFees Taker fees should be positive and if maker fees are negative, greater or equal to their abs value |
| 0x1774 | 6004 | InvalidInputLots Lots cannot be negative |
| 0x1775 | 6005 | InvalidInputLotsSize Lots size above market limits |
| 0x1776 | 6006 | InvalidInputOrdersAmounts Input amounts above limits |
| 0x1777 | 6007 | InvalidInputCancelSize Price lots should be greater than zero |
| 0x1778 | 6008 | InvalidInputPriceLots Expected cancel size should be greater than zero |
| 0x1779 | 6009 | InvalidInputPegLimit Peg limit should be greater than zero |
| 0x177a | 6010 | InvalidInputOrderType The order type is invalid. A taker order must be Market or ImmediateOrCancel |
| 0x177b | 6011 | InvalidInputOrderId Order id cannot be zero |
| 0x177c | 6012 | InvalidInputHeapSlots Slot above heap limit |
| 0x177d | 6013 | InvalidOracleTypes Cannot combine two oracles of different providers |
| 0x177e | 6014 | InvalidSecondOracle Cannot configure secondary oracle without primary |
| 0x177f | 6015 | NoCloseMarketAdmin This market does not have a `close_market_admin` and thus cannot be closed. |
| 0x1780 | 6016 | InvalidCloseMarketAdmin The signer of this transaction is not this market's `close_market_admin`. |
| 0x1781 | 6017 | InvalidOpenOrdersAdmin The `open_orders_admin` required by this market to sign all instructions that creates orders is missing or is not valid |
| 0x1782 | 6018 | InvalidConsumeEventsAdmin The `consume_events_admin` required by this market to sign all instructions that consume events is missing or is not valid |
| 0x1783 | 6019 | InvalidMarketVault Provided `market_vault` is invalid |
| 0x1784 | 6020 | IndexerActiveOO Cannot be closed due to the existence of open orders accounts |
| 0x1785 | 6021 | OraclePegInvalidOracleState Cannot place a peg order due to invalid oracle state |
| 0x1786 | 6022 | UnknownOracleType oracle type cannot be determined |
| 0x1787 | 6023 | OracleConfidence an oracle does not reach the confidence threshold |
| 0x1788 | 6024 | OracleStale an oracle is stale |
| 0x1789 | 6025 | OrderIdNotFound Order id not found on the orderbook |
| 0x178a | 6026 | EventHeapContainsElements Event heap contains elements and market can't be closed |
| 0x178b | 6027 | InvalidOrderPostIOC ImmediateOrCancel is not a PostOrderType |
| 0x178c | 6028 | InvalidOrderPostMarket Market is not a PostOrderType |
| 0x178d | 6029 | WouldSelfTrade would self trade |
| 0x178e | 6030 | MarketHasExpired The Market has already expired. |
| 0x178f | 6031 | InvalidPriceLots Price lots should be greater than zero |
| 0x1790 | 6032 | InvalidOraclePrice Oracle price above market limits |
| 0x1791 | 6033 | MarketHasNotExpired The Market has not expired yet. |
| 0x1792 | 6034 | NoOwnerOrDelegate No correct owner or delegate. |
| 0x1793 | 6035 | NoOwner No correct owner |
| 0x1794 | 6036 | OpenOrdersFull No free order index in open orders account |
| 0x1795 | 6037 | BookContainsElements Book contains elements |
| 0x1796 | 6038 | OpenOrdersOrderNotFound Could not find order in user account |
| 0x1797 | 6039 | InvalidPostAmount Amount to post above book limits |
| 0x1798 | 6040 | DisabledOraclePeg Oracle peg orders are not enabled for this market The name points to a feature or pool state that currently blocks this action. |
| 0x1799 | 6041 | NonEmptyMarket Cannot close a non-empty market |
| 0x179a | 6042 | NonEmptyOpenOrdersPosition Cannot close a non-empty open orders account |
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.