Attribute · financialTransaction.trade
tradeQuantity
financialTransaction.trade.tradeQuantity
From the standard
- Description (EN)Positief aantal te verhandelen stukken (units) van de transactie; richting volgt uit buySellId
- Typenumber · multipleOf 0.000001
- Example value102
In messages
| Message | V/O |
|---|---|
| 00541 · Trade instruction | Optional |
| 00542 · Order confirmation | Optional |
Errors and fixes
- tradeAmount and tradeQuantity both filled or both empty (message 5)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.
- tradeAmount or tradeQuantity negativeAmounts and quantities are always positive; the direction is in buySellId.
- tradeQuantity × tradePrice is not tradeAmount (message 6)Compute the amount from quantity and price and round to cents; book costs and interest in commissionAmount and interestAmount, not in tradeAmount. The validator allows a difference of half a cent plus half a millionth per unit, because the price is rounded at six decimals. SIVI's own sample computes 102 × 98.04 = 10000.08.
