We need to query stock quotes (in the first step) from banking servers.
An example programme "apidemo" is available from the bank. In apidemo all requires funcionallity is already present. apidemo java programme connects through Trade Workstartion (TWS) or API Gateway to banking servers.
So here Add REST Service to apidemo
and Made apidemo automatically connect to TWS or API Gateway and provide connection status via REST Service (for nagios check query), provide possibility to query stock quotes via REST service from PHP (with json or XML).