# Order Validation Rules
When a new
Order is submitted to the Matcher the following conditions are checked:
- The integer part of (
amount * price / 10^8) > 0
- 0 <
- 0 <
currentTime+ 1 minute < expiration <
currentTime+ 30 days (Matcher is syncronized with NTP (opens new window))
signatureis valid with regards to sender's public key
MaxAmount = 10^18
There are a lot of internal checks as well. If check fails, you'll receive an error with detailed description. See the (list of all errors)(https://github.com/wavesplatform/dex/wiki/The-structure-of-errors).
Order is validated based on internal Matcher state:
idshould not exist already.
- Sender's tradable balance should be sufficient to execute the order. See Tradable balance for more information.