Confirmation matching pairs each booked trade with a confirmation that agrees on key fields (security, side, counterparty, trade date, account holder) and then compares the other fields; a matching tolerance is the largest difference in a compared field that still counts as agreement. A pair within every tolerance is matched; a pair outside some is a partial match, reported with the fields that differ; a trade with no candidate is unmatched.
fig_posttrade.py.