string">'Leverage'</span>                     <span class="keyword">...</span>
           ];

<span class="comment">% establish connection with TWS</span>
session.eClientSocket.eConnect(<span class="string">'127.0.0.1'</span>,7496,0);
</pre><h2>Make request for account summary<a name="2"></a></h2><pre class="codeinput"><span class="comment">% request account attributes</span>
session.eClientSocket.reqAccountSummary(0,<span class="string">'All'</span>,attrkeys);  pause(1);
</pre><h2>Processing Account Summar