# Matcher Fee
The fixed full transaction fee right now is 0.003 waves for one order, whether buying or selling, regardless of the amount of the future deal. The exchange transaction contains two separate fields for Matcher's fee, which goes from buyer's order and seller's order. An order can be fully executed by some transaction, in this case, all matcher fee from it is included in that transaction.
If the order is partially executed by some deal-transaction, the matcher fee is included in that transaction proportionally to the executed amount, i.e.
executedAmount * orderMatcherFee / orderAmount.
The remaining matcher fee for this order will be included in other transactions until the order's full execution.
# Example
There are 3 different orders (Figure 2): two buy orders and one sell. For each full order, a user has to pay exactly 0.003 Waves of a fee, and this fee will be written off as the order is executed. In our example:
the Order1 is fully matched with a 70% part of Order3 by Transaction1 and matcher's fee for this transaction is equal to 0.003 + 0.0021 - 0.003 = 0.0021 waves since Matcher pay to miners transaction fee which also equals 0.003 Waves.
The 50% of Order2 matches with 30% part of Order3 by Transaction2 and matcher's fee for this transaction is equal to 0.0009 + 0.0015 - 0.003 = -0.0006 waves.
Thus, the fee that the matcher gets from users for these transactions is 0.0021 - 0.0006 = 0.0015 waves. And the fee that the matcher pays to miners is 0.006 waves.
Figure 2: Example of matcher's fee work, TX1 - Transaction1, TX2 - Transaction2, Ord1 - Order1, Ord2 - Order2, Ord3 - Order3
# Summary:
period | matcher's fee | miner's fee | left for the matcher |
---|---|---|---|
last month | 681.42336675 waves | 569.721 waves | 16.39% |
all time | 3476.01418346 waves | 2824.771 waves | 18.74% |
To sum up, for all time the matcher keeps only 18.74% of fees and everything else it pays to miners for placing transactions in blocks (data for 8.02.2018).