ion with TWS</span>
session = TWS.Session.getInstance();

<span class="comment">% create local buffer for account summary events</span>
[buf,lh] = TWS.initBufferForEvent(TWS.Events.ACCOUNTSUMMARY);

<span class="comment">% list of account attributes to querey</span>
attrkeys = [                               <span class="keyword">...</span>
            <span class="string">'AccountType'</span>                 ,<span class="keyword">...</span>
            <span class="string">'NetLiquidation'</span>         