did not correctly merge margin functions, need to use opposite currency in amount calculations.
did not correctly merge margin functions, need to use opposite currency
in amount calculations.

Bosma/BitcoinTrader