Error codes / OpenBook V2
OpenBook V2 error codes
Every custom error code published by OpenBook V2, with what it means and what to do about it.
opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb
- 6000 · 0x1770SomeError
The program raised this named error and published no further explanation.
- 6001 · 0x1771InvalidInputNameLength
Name lenght above limit
- 6002 · 0x1772InvalidInputMarketExpired
Market cannot be created as expired
- 6003 · 0x1773InvalidInputMarketFees
Taker fees should be positive and if maker fees are negative, greater or equal to their abs value
- 6004 · 0x1774InvalidInputLots
Lots cannot be negative
- 6005 · 0x1775InvalidInputLotsSize
Lots size above market limits
- 6006 · 0x1776InvalidInputOrdersAmounts
Input amounts above limits
- 6007 · 0x1777InvalidInputCancelSize
Price lots should be greater than zero
- 6008 · 0x1778InvalidInputPriceLots
Expected cancel size should be greater than zero
- 6009 · 0x1779InvalidInputPegLimit
Peg limit should be greater than zero
- 6010 · 0x177aInvalidInputOrderType
The order type is invalid. A taker order must be Market or ImmediateOrCancel
- 6011 · 0x177bInvalidInputOrderId
Order id cannot be zero
- 6012 · 0x177cInvalidInputHeapSlots
Slot above heap limit
- 6013 · 0x177dInvalidOracleTypes
Cannot combine two oracles of different providers
- 6014 · 0x177eInvalidSecondOracle
Cannot configure secondary oracle without primary
- 6015 · 0x177fNoCloseMarketAdmin
This market does not have a `close_market_admin` and thus cannot be closed.
- 6016 · 0x1780InvalidCloseMarketAdmin
The signer of this transaction is not this market's `close_market_admin`.
- 6017 · 0x1781InvalidOpenOrdersAdmin
The `open_orders_admin` required by this market to sign all instructions that creates orders is missing or is not valid
- 6018 · 0x1782InvalidConsumeEventsAdmin
The `consume_events_admin` required by this market to sign all instructions that consume events is missing or is not valid
- 6019 · 0x1783InvalidMarketVault
Provided `market_vault` is invalid
- 6020 · 0x1784IndexerActiveOO
Cannot be closed due to the existence of open orders accounts
- 6021 · 0x1785OraclePegInvalidOracleState
Cannot place a peg order due to invalid oracle state
- 6022 · 0x1786UnknownOracleType
oracle type cannot be determined
- 6023 · 0x1787OracleConfidence
an oracle does not reach the confidence threshold
- 6024 · 0x1788OracleStale
The data this instruction relied on (a quote, price or order) was already out of date when it executed.
- 6025 · 0x1789OrderIdNotFound
Order id not found on the orderbook
- 6026 · 0x178aEventHeapContainsElements
Event heap contains elements and market can't be closed
- 6027 · 0x178bInvalidOrderPostIOC
ImmediateOrCancel is not a PostOrderType
- 6028 · 0x178cInvalidOrderPostMarket
Market is not a PostOrderType
- 6029 · 0x178dWouldSelfTrade
would self trade
- 6030 · 0x178eMarketHasExpired
The Market has already expired.
- 6031 · 0x178fInvalidPriceLots
Price lots should be greater than zero
- 6032 · 0x1790InvalidOraclePrice
Oracle price above market limits
- 6033 · 0x1791MarketHasNotExpired
The Market has not expired yet.
- 6034 · 0x1792NoOwnerOrDelegate
No correct owner or delegate.
- 6035 · 0x1793NoOwner
No correct owner
- 6036 · 0x1794OpenOrdersFull
No free order index in open orders account
- 6037 · 0x1795BookContainsElements
Book contains elements
- 6038 · 0x1796OpenOrdersOrderNotFound
Could not find order in user account
- 6039 · 0x1797InvalidPostAmount
Amount to post above book limits
- 6040 · 0x1798DisabledOraclePeg
Oracle peg orders are not enabled for this market
- 6041 · 0x1799NonEmptyMarket
Cannot close a non-empty market
- 6042 · 0x179aNonEmptyOpenOrdersPosition
Cannot close a non-empty open orders account