• User Guide
    • Security Notes
      Security Notes
    • Online/Desktop Apps
      • Account Management
        • Create Account
          Create Account
        • Sign in to Account
          Sign in to Account
        • Recover Account
          Recover Account
        • Find Out Your Waves.Exchange Address
          Find Out Your Waves.Exchange Address
        • Create Personal Alias
          Create Personal Alias
        • Import From Waves Keeper
          Import From Waves Keeper
        • Use Ledger Nano Devices With Waves.Exchange
          Use Ledger Nano Devices With Waves.Exchange
        Account Management
      • Asset Management
        • Transfer Cryptocurrency
          • Transactions Tab
            Transactions Tab
          Transfer Cryptocurrency
        • Buy Cryptocurrency with a Bank Card
          • How to Use Advanced Cash
            How to Use Advanced Cash
          Buy Cryptocurrency with a Bank Card
        • Neutrino Governance
          Neutrino Governance
        • Stake Asset
          • OTC Service
            OTC Service
          • Swap WAVES/USDN
            Swap WAVES/USDN
          • How to Get USDN (Quick Guide)
            How to Get USDN (Quick Guide)
          • How to Get USDT (Quick Guide)
            How to Get USDT (Quick Guide)
          Stake Asset
        • Swap DeFo
          Swap DeFo
        • Neutrino Pools
          Neutrino Pools
        • Create Asset
          Create Asset
        • Distribute Asset
          Distribute Asset
        • Reissue Asset
          Reissue Asset
        • Change Reissuable to Not Reissuable
          Change Reissuable to Not Reissuable
        • Burn Asset
          Burn Asset
        • Sponsored Transaction
          Sponsored Transaction
        • Sponsored Fee
          Sponsored Fee
        Asset Management
      • Advanced Features
        • Script Transaction
          Script Transaction
        • JSON Confirmation
          JSON Confirmation
        Advanced Features
      • Start Trading on Waves.Exchange
        Start Trading on Waves.Exchange
      • Leverage
        Leverage
      Online/Desktop Apps
    • Mobile Apps
      • Account Management
        • Create Account
          Create Account
        • Sign in to Account
          Sign in to Account
        • Recover Account
          Recover Account
        • Find Out Your Waves.Exchange Address
          Find Out Your Waves.Exchange Address
        • Create Personal Alias
          Create Personal Alias
        Account Management
      • Asset Management
        • Transfer Cryptocyrrency
          Transfer Cryptocyrrency
        • Buy Cryptocurrency with a Bank Card
          Buy Cryptocurrency with a Bank Card
        • Stake WAVES
          Stake WAVES
        • Stake USDN
          Stake USDN
        • Burn Asset
          Burn Asset
        Asset Management
      • Start Trading on Waves.Exchange
        Start Trading on Waves.Exchange
      Mobile Apps
    User Guide
  • API and Library
    • CCXT
      CCXT
    • Fees
      Fees
    • Payment API
      Payment API
    • Web Auth API
      Web Auth API
    • Gateway API
      • Access Token
        • Get Access Token in Waves.Exchange App
          Get Access Token in Waves.Exchange App
        • POST /v1/oauth2/token
          POST /v1/oauth2/token
        Access Token
      • Deposit
        • GET /v1/deposit/addresses/{currency}
          GET /v1/deposit/addresses/{currency}
        • GET /v1/deposit/currencies
          GET /v1/deposit/currencies
        • GET /v1/deposit/currencies/{currency}
          GET /v1/deposit/currencies/{currency}
        • Terms of Deposit
          Terms of Deposit
        Deposit
      • Withdraw
        • GET /v1/withdraw/addresses/{currency}/{address}
          GET /v1/withdraw/addresses/{currency}/{address}
        • GET /v1/withdraw/currencies
          GET /v1/withdraw/currencies
        • GET /v1/withdraw/currencies/{currency}
          GET /v1/withdraw/currencies/{currency}
        • Terms of Withdrawal
          Terms of Withdrawal
        Withdraw
      • Movements History
        Movements History
      • Platforms List
        Platforms List
      • Crosschain Supply Consistency
        Crosschain Supply Consistency
      • Error Codes
        Error Codes
      Gateway API
    • Matcher
      • Waves.Exchange Protocol
        Waves.Exchange Protocol
      • Matcher Fee
        Matcher Fee
      • Install Matcher on Ubuntu From Deb-package
        Install Matcher on Ubuntu From Deb-package
      • Matcher Settings
        Matcher Settings
      • Matcher API
        • Order Validation
          Order Validation
        • Exchange Transation Validation
          Exchange Transation Validation
        Matcher API
      Matcher
    API and Library
  • Glossary
    Glossary
      • English
      • Русский
      On this page

          # ExchangeTransaction validation rules

          1. amount should be > 0 and < MaxAmount
          2. price should be > 0 and < MaxAmount
          3. buyMatcherFee should be > 0 and < MaxAmount
          4. sellMatcherFee should be > 0 and < MaxAmount
          5. fee should be > MinTransactionFee (100000 Wavelets) and < MaxAmount
          6. buyOrder should have OrderType.BUY
          7. sellOrder should have OrderType.SELL
          8. buyOrder should be valid according to Order validation rules and be not expired
          9. sellOrder should be valid according to Order validation rules and be not expired
          10. Both orders should have same Matcher
          11. Both orders should have same AssetPair
          12. price should be not worse than prices in buyOrder and sellOrder
          13. amount should not exceed amounts in buyOrder and sellOrder
          14. signature should be valid with regards to Matcher's public key.
          15. For buy order version 3: total buyMatcherFee on all transactions corresponding to a buy order should not exceed a matcherFee specified in the order; total sellMatcherFee on all transactions corresponding to a sell order should not exceed a matcherFee specified in the order.
            For orders version 1 and 2: buyMatcherFee and sellMatcherFee should not exceed matcherFee in corresponding orders proportionally to the executed amount.
          Order Validation
          Glossary
          Order Validation
          Glossary