Would it not be the following:
Opening:
Cash is debited at SMV
Liabilities credited for SMV
Cash credited for margin requirement whatever this is
Assets debited for margin requirement whatever this is
Unwind
would be the opposite with a fifth transaction being equity plug