Injective | Documentation
InjectiveGithub
Injective | Documentation
Injective | Documentation
  • About Injective
  • Getting Started
    • Wallet
      • Create a wallet
      • Accounts
      • Staking
      • Governance
      • Auction
    • Token Standards
      • INJ coin
      • Token Factory
      • CW20 Standard
    • Transactions
      • Gas and Fees
  • Guides
    • Create a Wallet
    • Bridge
      • From Ethereum
      • Using Wormhole
      • Using IBC
      • From Solana
    • Launch a Token
    • Launch a Market
    • Denom Metadata
    • Get INJ
  • Toolkits
    • injectived
      • Install injectived
      • Using injectived
      • Commands
    • Injective TS SDK
    • Injective Go SDK
    • Injective Python SDK
    • Injective CW SDK
    • Injective Rust
    • The Graph
  • References
  • Glossary
  • Developers
    • Getting Started
      • Guides
        • Testnet Proposals
        • Convert addresses
        • Calculations
          • Min Price Tick Size
          • Min Quantity Tick Size
        • Testnet Faucet Integration
    • Exchange Developers
      • Build a DEX
      • Provider Oracle
    • EVM Developers
      • Your First Smart Contract
      • Guides
        • Testnet Deployment
      • Technical Information
        • Network Information
        • EVM Equivalence
        • MultiVM Token Standard
        • Precompiles
          • Bank Precompile
          • Exchange Precompile
        • ERC20 Module
        • Infrastructure & Tooling
      • EVM Testnet Faucet
      • EVM Testnet Explorer
    • Cosmwasm Developers
      • Your First Smart Contract
      • Guides
        • Local Development
        • Mainnet Deployment
        • Whitelisting deployment address
        • Create your Swap Contract
        • Creating UIs
      • Using Injective Queries and Messages
      • CW20 Adapter
      • Injective Test Tube
    • Modules
      • Injective
        • Auction
          • State
          • Messages
          • EndBlock
          • Events
          • Params
          • Errors
        • Exchange
          • Derivative Markets Concepts
          • Spot Markets Concepts
          • Binary Option Markets Concepts
          • Other Concepts
          • State
          • State Transitions
          • Messages
          • Proposals
          • BeginBlock
          • EndBlock
          • Events
          • Params
          • MsgPrivilegedExecuteContract
          • Errors
        • Insurance
          • State
          • State Transitions
          • Messages
          • EndBlock
          • Events
          • Params
          • Improvements
          • Errors
        • OCR
          • Concepts
          • State
          • Messages
          • Proposals
          • BeginBlock
          • Hooks
          • Events
          • Params
          • Errors
        • Oracle
          • State
          • Keeper
          • Messages
          • Proposals
          • Events
          • Improvements
          • Errors
        • Peggy
          • Definitions
          • Workflow
          • State
          • Messages
          • Slashing
          • EndBlock
          • Events
          • Params
          • Relay Semantics
          • Improvements
          • Errors
        • Permissions
          • Concepts
          • State
          • State Transition
          • Errors
        • TokenFactory
          • Concepts
          • State
          • Messages
          • Events
          • Params
          • Errors
        • WasmX
          • Concepts
          • Data
          • Proposals
          • Messages
          • Params
          • Errors
        • Lanes
        • TxFees
      • Core
        • Auth
        • AuthZ
        • Bank
        • Consensus
        • Crisis
        • Distribution
        • Evidence
        • Feegrant
        • Gov
        • Group
        • Mint
        • NFT
        • Params
        • Slashing
        • Staking
        • Upgrade
        • Circuit
        • Genutils
    • dApps Documentation
  • Nodes
    • Getting Started
      • Interact with a node
      • Running a node
        • Setting up the keyring
        • Join a network
        • Cosmovisor
        • Upgrade your node
    • Validators
      • Mainnet
        • Peggo
        • Canonical Chain Upgrades
          • Upgrade to 10002-rc1
          • Upgrade to 10002-rc2
          • Upgrade to 10003-rc1
          • Upgrade to 10004-rc1
          • Upgrade to 10004-rc1-patch
          • Upgrade to 10005-rc1
          • Upgrade to 10006-rc1
          • Upgrade to 10007-rc1
          • Upgrade to 10008 - Camelot
          • Upgrade to 10009
          • Upgrade to v1.10
          • Upgrade to v1.11
          • Upgrade to v1.12.0 - Volan
          • Upgrade to v1.12.1
          • Upgrade to v1.13.0 - Altaris
          • Upgrade to v1.13.2
          • Upgrade to v1.13.3
          • Upgrade to v1.14.0
          • Upgrade to v1.14.1
          • Upgrade to v1.15.0
      • Testnet
        • Testnet Peggo
    • Public Endpoints
    • Premium Endpoints
    • Injective Indexer Setup
  • Traders
    • Getting Started
    • Documentation
    • API Reference
  • Useful Links
    • Injective 101
    • Injective Hub
    • Injective Explorer
    • Chain API Reference
    • Indexer API Reference
    • Testnet Faucet
Powered by GitBook
On this page
Edit on GitHub
Export as PDF
  1. Developers
  2. Modules
  3. Injective
  4. Exchange

Errors

This document lists the error codes used in the module.

Module
Error Code
description

exchange

1

failed to validate order

exchange

2

spot market not found

exchange

3

spot market exists

exchange

4

struct field error

exchange

5

failed to validate market

exchange

6

subaccount has insufficient deposits

exchange

7

unrecognized order type

exchange

8

position quantity insufficient for order

exchange

9

order hash is not valid

exchange

10

subaccount id is not valid

exchange

11

invalid ticker

exchange

12

invalid base denom

exchange

13

invalid quote denom

exchange

14

invalid oracle

exchange

15

invalid expiry

exchange

16

invalid price

exchange

17

invalid quantity

exchange

18

unsupported oracle type

exchange

19

order doesnt exist

exchange

20

spot limit orderbook fill invalid

exchange

21

perpetual market exists

exchange

22

expiry futures market exists

exchange

23

expiry futures market expired

exchange

24

no liquidity on the orderbook!

exchange

25

Orderbook liquidity cannot satisfy current worst price

exchange

26

insufficient margin

exchange

27

Derivative market not found

exchange

28

Position not found

exchange

29

Position direction does not oppose the reduce-only order

exchange

30

Price Surpasses Bankruptcy Price

exchange

31

Position not liquidable

exchange

32

invalid trigger price

exchange

33

invalid oracle type

exchange

34

invalid minimum price tick size

exchange

35

invalid minimum quantity tick size

exchange

36

invalid minimum order margin

exchange

37

Exceeds order side count

exchange

38

Subaccount cannot place a market order when a market order in the same market was already placed in same block

exchange

39

cannot place a conditional market order when a conditional market order in same relative direction already exists

exchange

40

An equivalent market launch proposal already exists.

exchange

41

Invalid Market Status

exchange

42

base denom cannot be same with quote denom

exchange

43

oracle base cannot be same with oracle quote

exchange

44

MakerFeeRate does not match TakerFeeRate requirements

exchange

45

MaintenanceMarginRatio cannot be greater than InitialMarginRatio

exchange

46

OracleScaleFactor cannot be greater than MaxOracleScaleFactor

exchange

47

Spot exchange is not enabled yet

exchange

48

Derivatives exchange is not enabled yet

exchange

49

Oracle price delta exceeds threshold

exchange

50

Invalid hourly interest rate

exchange

51

Invalid hourly funding rate cap

exchange

52

Only perpetual markets can update funding parameters

exchange

53

Invalid trading reward campaign

exchange

54

Invalid fee discount schedule

exchange

55

invalid liquidation order

exchange

56

Unknown error happened for campaign distributions

exchange

57

Invalid trading reward points update

exchange

58

Invalid batch msg update

exchange

59

Post-only order exceeds top of book price

exchange

60

Order type not supported for given message

exchange

61

Sender must match dmm account

exchange

62

already opted out of rewards

exchange

63

Invalid margin ratio

exchange

64

Provided funds are below minimum

exchange

65

Position is below initial margin requirement

exchange

66

Pool has non-positive total lp token supply

exchange

67

Passed lp token burn amount is greater than total lp token supply

exchange

68

unsupported action

exchange

69

position quantity cannot be negative

exchange

70

binary options market exists

exchange

71

binary options market not found

exchange

72

invalid settlement

exchange

73

account doesnt exist

exchange

74

sender should be a market admin

exchange

75

market is already scheduled to settle

exchange

76

market not found

exchange

77

denom decimal cannot be higher than max scale factor

exchange

78

state is invalid

exchange

79

transient orders up to cancellation not supported

exchange

80

invalid trade

exchange

81

no margin locked in subaccount

exchange

82

Invalid access level to perform action

exchange

83

Invalid address

exchange

84

Invalid argument

exchange

85

Invalid funds direction

exchange

86

No funds provided

exchange

87

Invalid signature

exchange

88

no funds to unlock

exchange

89

No msgs provided

exchange

90

No msg provided

exchange

91

Invalid amount

exchange

92

The current feature has been disabled

exchange

93

Order has too much margin

exchange

94

Subaccount nonce is invalid

exchange

95

insufficient funds

exchange

96

exchange is in post-only mode

exchange

97

client order id already exists

exchange

98

client order id is invalid. Max length is 36 chars

exchange

99

market cannot be settled in emergency mode

exchange

100

invalid notional

exchange

101

stale oracle price

exchange

102

invalid stake grant

exchange

103

insufficient stake for grant

exchange

104

invalid permissions

exchange

105

the decimals specified for the denom is incorrect

PreviousMsgPrivilegedExecuteContractNextInsurance

Last updated 3 months ago