Consistency check
tradeAmount and tradeQuantity both filled or both empty (message 5)
Symptom
The receiver rejects the order functionally (feedback statusType 0) or executes an unintended quantity.
Cause
The manual lays down exactly one of the two per order instruction (section 6.3.2, explained in section 4.3.5); filling both is not allowed. Both empty is allowed only on the order of a switch that does not steer: that can be the switchfrom or the switchto order, and per switch pair exactly one order carries an amount or quantity. The schema does not enforce this.
Fix
Fill per transaction either an amount or a quantity; in a switch let one order steer and leave the other empty. The WTP Data Lab validator tests both rules, per order and per switch pair.
Wrong and right
Wrong
{ "buySellId": "buy", "tradeAmount": 250000.00, "tradeQuantity": 1000 }Right
{ "buySellId": "buy", "tradeAmount": 250000.00 }Check your own message for this and all other errors with the free validator: schema, code lists and consistency checks in one report. Validate a message
