A margin refers to the percentage amount on an adjustable rate mortgage that is added to the index rate when calculating the payment of the borrower.

It is also sometimes call the spread.

For example, if the interest rate of a loan is at COFI + 2%, the margin is the 2% added.

It has no reference whatsoever to margin in the world of financial trading.