Skip to main content
This document lists the error codes used in the module.
ModuleError Codedescription
exchange1failed to validate order
exchange2spot market not found
exchange3spot market exists
exchange4struct field error
exchange5failed to validate market
exchange6subaccount has insufficient deposits
exchange7unrecognized order type
exchange8position quantity insufficient for order
exchange9order hash is not valid
exchange10subaccount id is not valid
exchange11invalid ticker
exchange12invalid base denom
exchange13invalid quote denom
exchange14invalid oracle
exchange15invalid expiry
exchange16invalid price
exchange17invalid quantity
exchange18unsupported oracle type
exchange19order doesnt exist
exchange20spot limit orderbook fill invalid
exchange21perpetual market exists
exchange22expiry futures market exists
exchange23expiry futures market expired
exchange24no liquidity on the orderbook!
exchange25Orderbook liquidity cannot satisfy current worst price
exchange26insufficient margin
exchange27Derivative market not found
exchange28Position not found
exchange29Position direction does not oppose the reduce-only order
exchange30Price Surpasses Bankruptcy Price
exchange31Position not liquidable
exchange32invalid trigger price
exchange33invalid oracle type
exchange34invalid minimum price tick size
exchange35invalid minimum quantity tick size
exchange36invalid minimum order margin
exchange37Exceeds order side count
exchange38Subaccount cannot place a market order when a market order in the same market was already placed in same block
exchange39cannot place a conditional market order when a conditional market order in same relative direction already exists
exchange40An equivalent market launch proposal already exists.
exchange41Invalid Market Status
exchange42base denom cannot be same with quote denom
exchange43oracle base cannot be same with oracle quote
exchange44MakerFeeRate does not match TakerFeeRate requirements
exchange45MaintenanceMarginRatio cannot be greater than InitialMarginRatio
exchange46OracleScaleFactor cannot be greater than MaxOracleScaleFactor
exchange47Spot exchange is not enabled yet
exchange48Derivatives exchange is not enabled yet
exchange49Oracle price delta exceeds threshold
exchange50Invalid hourly interest rate
exchange51Invalid hourly funding rate cap
exchange52Only perpetual markets can update funding parameters
exchange53Invalid trading reward campaign
exchange54Invalid fee discount schedule
exchange55invalid liquidation order
exchange56Unknown error happened for campaign distributions
exchange57Invalid trading reward points update
exchange58Invalid batch msg update
exchange59Post-only order exceeds top of book price
exchange60Order type not supported for given message
exchange61Sender must match dmm account
exchange62already opted out of rewards
exchange63Invalid margin ratio
exchange64Provided funds are below minimum
exchange65Position is below initial margin requirement
exchange66Pool has non-positive total lp token supply
exchange67Passed lp token burn amount is greater than total lp token supply
exchange68unsupported action
exchange69position quantity cannot be negative
exchange70binary options market exists
exchange71binary options market not found
exchange72invalid settlement
exchange73account doesnt exist
exchange74sender should be a market admin
exchange75market is already scheduled to settle
exchange76market not found
exchange77denom decimal cannot be higher than max scale factor
exchange78state is invalid
exchange79transient orders up to cancellation not supported
exchange80invalid trade
exchange81no margin locked in subaccount
exchange82Invalid access level to perform action
exchange83Invalid address
exchange84Invalid argument
exchange85Invalid funds direction
exchange86No funds provided
exchange87Invalid signature
exchange88no funds to unlock
exchange89No msgs provided
exchange90No msg provided
exchange91Invalid amount
exchange92The current feature has been disabled
exchange93Order has too much margin
exchange94Subaccount nonce is invalid
exchange95insufficient funds
exchange96exchange is in post-only mode
exchange97client order id already exists
exchange98client order id is invalid. Max length is 36 chars
exchange99market cannot be settled in emergency mode
exchange100invalid notional
exchange101stale oracle price
exchange102invalid stake grant
exchange103insufficient stake for grant
exchange104invalid permissions
exchange105the decimals specified for the denom is incorrect