Banking Transaction cost rules

BankingTransactionCostRule fires when a banking transaction (a CAMT entry or SEPA transaction) is booked. In addition to the Shared API, these rules get the transaction amount.

transaction

A number representing the amount of the banking transaction being processed. Unlike the order/trade globals, transaction is a plain value, not an object with methods.

Examples

-- 1% of the transaction amount
return transaction * 0.01
-- 0.5%, but at least 1.00 and capped at 25.00
local fee = transaction * 0.005
return math.min(25, math.max(1, fee))
-- No fee below 100, flat 2.00 above
if transaction < 100 then
  return 0
end
return 2

Back to top

© 2026 Pengine.