• APIs and Libraries
    APIs and Libraries
  • Connect WX Network wallet
    Connect WX Network wallet
  • CCXT
    CCXT
  • Fees
    Fees
  • Matcher
    • WX Network Protocol
      WX Network 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 WebSocket API
      • Errors and Debugging
        Errors and Debugging
      • Common Streams
        Common Streams
      Matcher WebSocket API
    Matcher
  • Gateway API
    • Access Token
      • Get Access Token in WX Network App
        Get Access Token in WX Network App
      • POST /v1/oauth2/token
        POST /v1/oauth2/token
      Access Token
    • Deposit
      • [Deprecated] GET /v1/deposit/addresses/{currency}
        [Deprecated] GET /v1/deposit/addresses/{currency}
      • GET /v1/deposit/addresses/{currency}/{platform}
        GET /v1/deposit/addresses/{currency}/{platform}
      • GET /v1/deposit/currencies
        GET /v1/deposit/currencies
      • [Deprecated] GET /v1/deposit/currencies/{currency}
        [Deprecated] GET /v1/deposit/currencies/{currency}
      • GET /v1/deposit/currencies/{currency}/{platform}
        GET /v1/deposit/currencies/{currency}/{platform}
      • Terms of Deposit
        Terms of Deposit
      Deposit
    • Withdraw
      • [Deprecated] GET /v1/withdraw/addresses/{currency}/{address}
        [Deprecated] GET /v1/withdraw/addresses/{currency}/{address}
      • GET /v1/withdraw/addresses/{currency}/{address}/{platform}
        GET /v1/withdraw/addresses/{currency}/{address}/{platform}
      • GET /v1/withdraw/currencies
        GET /v1/withdraw/currencies
      • [Deprecated] GET /v1/withdraw/currencies/{currency}
        [Deprecated] GET /v1/withdraw/currencies/{currency}
      • GET /v1/withdraw/currencies/{currency}/{platform}
        GET /v1/withdraw/currencies/{currency}/{platform}
      • Terms of Withdrawal
        Terms of Withdrawal
      Withdraw
    • Movements History
      Movements History
    • Platforms List
      Platforms List
    • Error Codes
      Error Codes
    Gateway API
  • Get Trades
    Get Trades
  • Staking Annual Percentage Yield API
    Staking Annual Percentage Yield API
  • Payment API
    Payment API
  • Web Auth API
    Web Auth API
  • WX Token Protocol
    WX Token Protocol
  • 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
          Matcher WebSocket API
          Order Validation
          Matcher WebSocket API