<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>City Flex - Flex in the City (of London)</title>
	<atom:link href="http://merlin.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://merlin.co.uk/blog</link>
	<description>Adventures in Flex, C#, Java &#38; Clouds</description>
	<pubDate>Mon, 09 Feb 2009 14:33:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to get Bloomberg data into a Flex client</title>
		<link>http://merlin.co.uk/blog/?p=4</link>
		<comments>http://merlin.co.uk/blog/?p=4#comments</comments>
		<pubDate>Sun, 08 Feb 2009 16:11:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Bloomberg]]></category>

		<category><![CDATA[C#]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://merlin.co.uk/blog/?p=4</guid>
		<description><![CDATA[One of the most interesting challenges I&#8217;ve had recently is the need to get data from a Bloomberg terminal on a trader&#8217;s desk into a Flex client. To make this magic happen, we need a couple of components:

An Adapter that connects to bloomberg and listens on a socket for a request from the Flex Client
A [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most interesting challenges I&#8217;ve had recently is the need to get data from a Bloomberg terminal on a trader&#8217;s desk into a Flex client. To make this magic happen, we need a couple of components:</p>
<ol>
<li>An Adapter that connects to bloomberg and listens on a socket for a request from the Flex Client</li>
<li>A Flex connector that runs in the Flex application, makes a socket connection to the adapter, listens for data and passes it back to the application for presentation.</li>
</ol>
<p>The structure looks something like this.</p>
<p><img src="http://merlin.co.uk/blog/wp-content/uploads/2009/02/bloomberg-client-and-adapter.gif" alt="bloomberg-client-and-adapter" title="bloomberg-client-and-adapter" width="500" height="220" class="aligncenter size-full wp-image-31" /></p>
<h3>Example</h3>
<p>To get this example to work you need Bloomberg running on gthe PC. Without this there is no data for the adapter to work on!</p>
<h4>Step 1 - Install the Adapter</h4>
<p>The Adapter is built in C# and packaged as a ClickOnce application <a href="http://www.merlin.co.uk/blog/merlinbloombergadapter/publish.htm">here</a>.</p>
<h4>Step 2 - Run the Adapter</h4>
<p>When you&#8217;ve installed it and executed it, you&#8217;ll see the console start up and a message indicating that it is listening on localhost port 2705. The important thing here is that none of the Bloomberg data leaves the workstation and the terms of the licence are therefore not broken</p>
<h4>Step 3 - Check the connection is good</h4>
<p>Once this is running, refresh this page and have a look at the Flex application below. It&#8217;s very straightforward. It simply takes a Bloomberg Ticker such as VOD LN Equity and returns the ISIN, Name, Bid &#038; Ask.</p>
<p>The indicator light shows whether it has made a connection to the Adapter and whether it is receiving data. Red is bad. It indicates that a connection has not yet been made. Yellow is better, it shows that a connection has been made to the Adapter and that it&#8217;s waiting for data. Green is good. This indicates that data has been received.</p>
<h4>Step 4 - Tap in a Ticker</h4>
<p>When you&#8217;ve got the Yellow light, tap in a Ticker such as <em>IBM US Equity</em> and click on the refresh button. The ISIN, Name, Bid &#038; Ask prices will instantly be populated thus proving the connection</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="550" height="125"><param name="movie" value="CityFlexBloombergClient.swf"/></object><br />
<embed type="application/x-shockwave-flash" data="CityFlexBloombergClient.swf" width="550" height="125" /></p>
<h4>Step 4 - Understand what&#8217;s happened</h4>
]]></content:encoded>
			<wfw:commentRss>http://merlin.co.uk/blog/?feed=rss2&amp;p=4</wfw:commentRss>
		</item>
	</channel>
</rss>
