<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DailyFX Forum - Price Engine Client SDK Support</title>
		<link>http://forexforums.dailyfx.com</link>
		<description />
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 16:45:29 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forexforums.dailyfx.com/images/dfx2009/misc/rss.jpg</url>
			<title>DailyFX Forum - Price Engine Client SDK Support</title>
			<link>http://forexforums.dailyfx.com</link>
		</image>
		<item>
			<title>adaptor class</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/116532-adaptor-class.html</link>
			<pubDate>Mon, 26 Oct 2009 00:02:06 GMT</pubDate>
			<description>is there any examples of adaptor class for price...</description>
			<content:encoded><![CDATA[<div>is there any examples of adaptor class for price engine client, I am I newbie to c++ network programming. is this the way to use class no mention of it in listener.cpp? I am confused!</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>bernesbyj</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/116532-adaptor-class.html</guid>
		</item>
		<item>
			<title>Getting wrong bidHigh price?</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/113888-getting-wrong-bidhigh-price.html</link>
			<pubDate>Wed, 21 Oct 2009 05:18:02 GMT</pubDate>
			<description>We recently met a strange phenomenon in receiving...</description>
			<content:encoded><![CDATA[<div>We recently met a strange phenomenon in receiving bidHigh price with PEC SDK.<br />
<br />
By comparing the application provided by FXCM, we use TICKALL for subscribe type rather than ALL to receive bidHgh price.<br />
<br />
The subscribing code is:<br />
<br />
    <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mdr.setFXCMTimingInterval(FXCMTimingIntervalFactory.TICK);<br />
&nbsp; &nbsp; mdr.setSubscriptionRequestType(SubscriptionRequestTypeFactory.SUBSCRIBE);<br />
&nbsp; &nbsp; mdr.setMDEntryTypeSet(MarketDataRequest.MDENTRYTYPESET_TICKALL);</code><hr />
</div><br />
But what we observed with bigHigh is very strange.<br />
Take 2009-10-20(TPE) as example, the bidHigh of USD/CHF we received is:<br />
<br />
    00:00:08(TPE) receive 16:00:06(GMT) bidHigh=1.022799<br />
    ... (no bidHigh update)<br />
    05:00:00(TPE) receive 21:00:00(GMT) bidHigh=1.011080<br />
    ... (bidHgh update normally)<br />
    06:21:44(TPE) receive 22:21:44(GMT) bidHigh=1.012459<br />
    06:21:46(TPE) receive 22:21:45(GMT) bidHigh=1.012049<br />
    06:21:53(TPE) receive 22:21:52(GMT) bidHigh=1.012459<br />
    06:21:53(TPE) receive 22:21:52(GMT) bidHigh=1.012089<br />
    ... (no more bidHigh update received)<br />
<br />
    restart our program at 11:51(TPE)<br />
    11:51:14(TPE) receive 3:51:05(GMT) bidHigh=1.012459<br />
<br />
<br />
From the above observation, we found:<br />
<br />
   1. the bidHigh price is not keeping updated, although Bid and Ask are continuously updated at the mean time.<br />
   2. the udpated bigHigh could be even smaller than last bidHigh! (this is weird)<br />
<br />
This is really troubling us in developing a reliable FXCM forex quoting app.<br />
Can anyone have any suggestion on this issue?<br />
It will be very appreciated.<br />
<br />
Youholder</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>Youholder</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/113888-getting-wrong-bidhigh-price.html</guid>
		</item>
		<item>
			<title>credentials and terminal for production access</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/113058-credentials-terminal-production-access.html</link>
			<pubDate>Mon, 19 Oct 2009 20:03:13 GMT</pubDate>
			<description>Hi, 
 
I have credentials for the trading API...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have credentials for the trading API with 'terminal=real'. <br />
The application I wrote needs also an access to the price engine.<br />
Do I need other credentials? What 'terminal' should I use?<br />
<br />
Thanks in advance,<br />
Yuval.</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>yuvalaviel</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/113058-credentials-terminal-production-access.html</guid>
		</item>
		<item>
			<title>PEC loadStationDescriptor always returns false</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/105657-pec-loadstationdescriptor-always-returns-false.html</link>
			<pubDate>Fri, 25 Sep 2009 17:53:47 GMT</pubDate>
			<description>Hi! 
I created simple console solution in VS2008...</description>
			<content:encoded><![CDATA[<div>Hi!<br />
I created simple console solution in VS2008 and copied these lines of code from your example (which btw works):<br />
<br />
	<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if (!ConnectionManagerEx::init(true)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionManagerEx::setDebug(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionManagerEx::setNoReconnectAttempts(10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionManagerEx::setNoReloginAttempts(10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionManagerEx::setAsync(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionManagerEx::setSecurePreferable(false);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; IUserSession* _session = ConnectionManagerEx::createUserSession(&quot;http://www.fxcorporate.com/Hosts.jsp&quot;, &quot;develop&quot;, &quot;PriceServer&quot;, &quot;test1&quot;, &quot;password1&quot;, NULL);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool result = _session-&gt;loadStationDescriptor();</code><hr />
</div>result is always FALSE.<br />
<br />
Please help!!!<br />
<br />
Below is debug trace:<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt3">
			<hr />
			
				HostReader::setHttpTimeout. 180000<br />
UniversalUserSession::loadStationDescriptor.....<br />
HostReader::read from Host develop<br />
    HostReader::getHttpContent. Start<br />
    HostReader::getHttpContent. InternetConnect. Host=www.fxcorporate.com<br />
    HostReader::getHttpContent. InternetConnect. Port=80. Done<br />
    HostReader::getHttpContent. Use method POST<br />
    HostReader::getHttpContent. HttpOpenRequest. URL=/Hosts.jsp?ID=376546500&amp;PN=develop&amp;SN=<br />
    HostReader::getHttpContent. Set HTTP timeout = 180000<br />
    HostReader::getHttpContent. HttpSendRequest<br />
    HostReader::getHttpContent. InternetQueryDataAvailable Start.<br />
    HostReader::getHttpContent. InternetQueryDataAvailable End. Number of available bytes 1252<br />
    HostReader::getHttpContent. InternetReadFile Start. Number of bytes to read1252<br />
    HostReader::getHttpContent. InternetReadFile End. Number of bytes received 1252<br />
    HostReader::getHttpContent. InternetQueryDataAvailable Start.<br />
    HostReader::getHttpContent. InternetQueryDataAvailable End. Number of available bytes 0<br />
    HostReader::getHttpContent. Response received<br />
    HostReader::getHttpContent. HttpQueryInfo Status Code=200<br />
    HostReader::getHttpContent. Finish. Return 1252 bytes<br />
HostReader::read from Host. Done UniversalUserSession::loadStationDescriptor done.....<br />
UniversalUserSession::loadStationDescriptor something wrong up there<br />
<br />
<br />
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>creoman</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/105657-pec-loadstationdescriptor-always-returns-false.html</guid>
		</item>
		<item>
			<title>Subscribe mode with FXCMTimingInterval?</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/96886-subscribe-mode-fxcmtiminginterval.html</link>
			<pubDate>Fri, 21 Aug 2009 16:42:41 GMT</pubDate>
			<description>Is there a way to subscribe for hourly updates? 
...</description>
			<content:encoded><![CDATA[<div>Is there a way to subscribe for hourly updates?<br />
<br />
I used <br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt3">
			<hr />
			
				marketDataRequest.setSubscriptionRequestType(Subsc  riptionRequestTypeFactory.SUBSCRIBE);<br />
marketDataRequest.setFXCMTimingInterval(FXCMTiming  IntervalFactory.HOUR1);
			
			<hr />
		</td>
	</tr>
	</table>
</div>and I still get tick updates.  <br />
<br />
I'd like to subscribe to updates using a timing interval rather than request updates manually when the interval ends.<br />
<br />
Thanks --Joachim</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>joachimm</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/96886-subscribe-mode-fxcmtiminginterval.html</guid>
		</item>
		<item>
			<title>Getting Historical Data Appears to be all Jackedup...</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/95685-getting-historical-data-appears-all-jackedup.html</link>
			<pubDate>Mon, 17 Aug 2009 17:37:09 GMT</pubDate>
			<description>Please correct me if I am wrong (and I sure hope...</description>
			<content:encoded><![CDATA[<div>Please correct me if I am wrong (and I sure hope I am) but it appears that when the trade sever is ask for historical data the server returns the <b>last </b>300 bars (closest to the ending date). Thus, if the server was ask for daily bars starting from 1/1/2000 and ending on 1/1/2008; the server will return 300 daily bars, (starting sometime around 10/1/2007) and ending on 1/1/2008 (or is it only up to 12/31/2007?)<br />
<br />
Anyway, if this example is true, then it seems to me that the way the server returns historical data is ASS BACKWARDS and a pain in the backside to work with!!! <br />
<br />
It would appear to me that if I asked for information starting from 1/1/2000 and ending on 1/1/2008 that I would get (if not all the data) at least N items starting at the beginning (in this case; 1/1/2000)! Thus I would expect to get something like this: <br />
<br />
1/1/2000 to (1/1/2000 + 300 items, thus somewhere around 3/1/2001) then I could ask the server for the next data chunk with a start date of 3/2/2001 and keep my end date of 1/1/2008 the same. By following this method it makes it easy to save the data to memory or to disk.<br />
 <br />
  After reading the blogs and seeing the amount of time the Fxcm support team must waste on this one issue, I suspect that I’m not the only one who thinks the “Get Historical Data” function is all jacked up (it is probably a bug that can't be fixed due to backwards compatibility). However, regardless of <i>why </i>the function is the way it is today; can we get a new (extended) version of this function that <b>will</b> return data chunks starting from the starting date? – Please!!</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>Kaboo</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/95685-getting-historical-data-appears-all-jackedup.html</guid>
		</item>
		<item>
			<title>DateTime Time Resolution...</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/95581-datetime-time-resolution.html</link>
			<pubDate>Mon, 17 Aug 2009 03:32:30 GMT</pubDate>
			<description>For tick data, what is the time resolution of the...</description>
			<content:encoded><![CDATA[<div>For tick data, what is the time resolution of the time stamp? Do we get, for example: 5:23:45.3692 pm or just 5:23:45 pm?<br />
<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>Kaboo</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/95581-datetime-time-resolution.html</guid>
		</item>
		<item>
			<title>Discrepancies</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/90464-discrepancies.html</link>
			<pubDate>Mon, 27 Jul 2009 19:59:26 GMT</pubDate>
			<description>We have a primary site and a backup site...</description>
			<content:encoded><![CDATA[<div>We have a primary site and a backup site connecting into FXCM for data.  <br />
For each symbol we then track the number of updates and we can see that there is a difference between the primary site instance and our backup site instance. We put a sequence number on our messages so we know we are not dropping data on our side. From what we can tell it looks like that within the Java API when we make a request for data we noticed the port it connects to at FXCM changes - indicating it reconnected to FXCM. <br />
Is this normal and expected behavior? Why would it reconnect and can we prevent it. We think while it is reconnecting we are losing data and that is why the counts are off.  Any help would be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>ticker</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/90464-discrepancies.html</guid>
		</item>
		<item>
			<title>Data Discrepancies</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/88013-data-discrepancies.html</link>
			<pubDate>Thu, 16 Jul 2009 15:03:47 GMT</pubDate>
			<description>Hello, we use the Java Price Engine Client API to...</description>
			<content:encoded><![CDATA[<div>Hello, we use the Java Price Engine Client API to receive the FXCM real-time price updates and have noticed our Java client applications, one instance running at our primary site and one running at are secondary site are not receiving the exact same number of update messages. I can see with netstat the client application is reconnecting with the price server every few minutes. Is the behavior expected or could this be causing me to lose real time updates?<br />
<br />
Here is the output from netstat<br />
Fri Jul 10 13:43:29 CDT 2009<br />
tkr@ticker-commodity3-live:~&gt; netstat -t | grep nyfiobridge<br />
tcp        0      0 ticker-commodity3:39723 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:39724 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:39725 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55062 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55063 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55061 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55058 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55059 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55064 nyfiobridge.fx:www-http TIME_WAIT   <br />
tcp        0      0 ticker-commodity3:55065 nyfiobridge.fx:www-http ESTABLISHED <br />
tkr@ticker-commodity3-live:~&gt; date<br />
Fri Jul 10 13:44:18 CDT 2009<br />
tkr@ticker-commodity3-live:~&gt; netstat -t | grep nyfiobridge<br />
tcp        0      0 ticker-commodity3:39724 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:39725 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55062 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55063 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55061 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55058 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55059 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55066 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55067 nyfiobridge.fx:www-http ESTABLISHED <br />
tcp        0      0 ticker-commodity3:55065 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tkr@ticker-commodity3-live:~&gt; date<br />
Fri Jul 10 13:44:44 CDT 2009<br />
tkr@ticker-commodity3-live:~&gt; netstat -t | grep nyfiobridge<br />
tcp        0      0 ticker-commodity3:39725 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55062 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55063 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55061 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55058 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55059 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55068 nyfiobridge.fx:www-http ESTABLISHED <br />
tcp        0      0 ticker-commodity3:55066 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55067 nyfiobridge.fx:www-http CLOSE_WAIT  <br />
tcp        0      0 ticker-commodity3:55065 nyfiobridge.fx:www-http CLOSE_WAIT</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>ticker</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/88013-data-discrepancies.html</guid>
		</item>
		<item>
			<title>Proxying PEC MarketDataRequests</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/81575-proxying-pec-marketdatarequests.html</link>
			<pubDate>Thu, 11 Jun 2009 19:42:07 GMT</pubDate>
			<description>I have a question regarding the relationship...</description>
			<content:encoded><![CDATA[<div>I have a question regarding the relationship between an IUserSession, TradingSessionStatus and MarketDataRequests. <br />
<br />
I am writing a server that accepts multiple client connections and proxies client MarketDataRequest's through a single IUserSession. <br />
<br />
The workflow so far is: Client connects, create IUserMessageListener, call IUserSession.setMessageListener(newListenerClient)  , create TradingSessionStatusRequest, session.send(tssr), on IUserMessageListener.update register new TradingSessionStatus and create new MarketDataRequest (can this same clientTSS be used for future MDR's from that client?), session.send, wait for IUserMessageListener.update, write message to client connection.<br />
<br />
I am confused about if I should be issuing multiple TradingSessionStatusRequests, one for each client, expecting to get back separate TradingSessionStatus's which would then be used to issue individual MarketDataRequest's? <br />
<br />
It seems like each call to setMessageListener should result eventually result in a new TradingSessionStatus returned to the listener? Or do I have to send out a TSSR after setMessageListener so that listener will receive an update callback?<br />
<br />
Any help is much appreciated. Thanks.</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>meyeraj</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/81575-proxying-pec-marketdatarequests.html</guid>
		</item>
		<item>
			<title>Targetting x64</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/80745-targetting-x64.html</link>
			<pubDate>Mon, 08 Jun 2009 16:02:38 GMT</pubDate>
			<description>Are x64 builds available for fix.lib and...</description>
			<content:encoded><![CDATA[<div>Are x64 builds available for fix.lib and fxmsg.lib? Are x64 builds available for fxmsg.dll, pdas.dll and zlib.dll? Is it possible to target x64 either directly or indirectly?</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>ManyLeaves</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/80745-targetting-x64.html</guid>
		</item>
		<item>
			<title>Historical Data Transimission- End notification C++ API</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/74384-historical-data-transimission-end-notification-c-api.html</link>
			<pubDate>Sat, 02 May 2009 15:02:56 GMT</pubDate>
			<description>Having requested a period of historical data,...</description>
			<content:encoded><![CDATA[<div>Having requested a period of historical data, what flags does one look for when the server notifies the client that (A) all data has been delivered or (B) Max amount of records have been sent ie 300. <br />
Where are the ISession::(flag) definitions defined, there meaning and number of.</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>Quantic</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/74384-historical-data-transimission-end-notification-c-api.html</guid>
		</item>
		<item>
			<title>Discrepancy between PEC and Marketscope prices</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/73784-discrepancy-between-pec-marketscope-prices.html</link>
			<pubDate>Tue, 28 Apr 2009 12:42:21 GMT</pubDate>
			<description>Hi, 
 
I noticed that the prices given by PEC and...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I noticed that the prices given by PEC and those given by Marketscope 2.0 differ.<br />
The difference ranges between +1.4 pip and -1.2 pip.<br />
This is true for all time intervals.<br />
Most often however, the difference is exactly 0.9 pip.<br />
<br />
I am looking at the Ask price. <br />
Below is the query code.<br />
<br />
Why is that and how can it be resolved?<br />
Thanks,<br />
Yuval.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">&nbsp;&nbsp;</span><span style="color: #007700">private&nbsp;</span><span style="color: #0000BB">void&nbsp;askForCandles</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;aNumPeriods</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//prepare&nbsp;MarketDataRequest<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MarketDataRequest&nbsp;mdr&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MarketDataRequest</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setFXCMTimingInterval</span><span style="color: #007700">(</span><span style="color: #0000BB">FXCM_INTERVAL</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setMDEntryTypeSet</span><span style="color: #007700">(</span><span style="color: #0000BB">MarketDataRequest</span><span style="color: #007700">.</span><span style="color: #0000BB">MDENTRYTYPESET_ASKEXTRA</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setSubscriptionRequestType</span><span style="color: #007700">(</span><span style="color: #0000BB">SubscriptionRequestTypeFactory</span><span style="color: #007700">.</span><span style="color: #0000BB">SNAPSHOT</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setTradingSessionID</span><span style="color: #007700">(</span><span style="color: #0000BB">cUserSession</span><span style="color: #007700">.</span><span style="color: #0000BB">getTradingSession</span><span style="color: #007700">().</span><span style="color: #0000BB">getID</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setTradingSessionSubID</span><span style="color: #007700">(</span><span style="color: #0000BB">cUserSession</span><span style="color: #007700">.</span><span style="color: #0000BB">getTradingSession</span><span style="color: #007700">().</span><span style="color: #0000BB">getSubID</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setFXCMNoSnapshot</span><span style="color: #007700">(</span><span style="color: #0000BB">aNumPeriods</span><span style="color: #007700">+</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">setMDReqID</span><span style="color: #007700">(</span><span style="color: #0000BB">cUserSession</span><span style="color: #007700">.</span><span style="color: #0000BB">getNextRequestID</span><span style="color: #007700">());<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">ccys&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cCcyPair</span><span style="color: #007700">.</span><span style="color: #0000BB">split</span><span style="color: #007700">(</span><span style="color: #DD0000">";"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</span><span style="color: #0000BB">int&nbsp;i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">ccys</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">logger</span><span style="color: #007700">.</span><span style="color: #0000BB">trace</span><span style="color: #007700">(</span><span style="color: #DD0000">"CCY&#91;"&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #DD0000">"&#93;="&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">ccys</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Instrument&nbsp;instr&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cTss</span><span style="color: #007700">.</span><span style="color: #0000BB">getSecurity</span><span style="color: #007700">(</span><span style="color: #0000BB">ccys</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">instr&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">addRelatedSymbol</span><span style="color: #007700">(</span><span style="color: #0000BB">instr</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">IMessage&nbsp;msg&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mdr</span><span style="color: #007700">.</span><span style="color: #0000BB">toMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">null</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ConnectionManagerEx</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessageFactory</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;status&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cUserSession</span><span style="color: #007700">.</span><span style="color: #0000BB">send</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">Exception&nbsp;e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>yuvalaviel</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/73784-discrepancy-between-pec-marketscope-prices.html</guid>
		</item>
		<item>
			<title>Unstable Connection</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/71375-unstable-connection.html</link>
			<pubDate>Fri, 10 Apr 2009 14:58:19 GMT</pubDate>
			<description>My subscription to market data seems to lose...</description>
			<content:encoded><![CDATA[<div>My subscription to market data seems to lose connection often. Can you tell if I'm doing something wrong from the following message. <br />
<br />
StatusListener. About to reset subscription<br />
StatusListener. need to restore subscription<br />
FXCM Timing Inverval: 2<br />
ID: FXCM<br />
USB ID: PriceServer<br />
History Count: 1<br />
NextRequestId:1238809385007PriceServer40587-3<br />
MDR Message: MarketDataRequest{mMDReqID='1238809385007PriceServ  er40587-2', mSubscriptionRequestType=SubscriptionRequestType:S  ubscribe (1), mMDEntryTypeSet=3, mNoRelatedSym=[TradingSecurity --- begin superclass toString Instrument{mFXCMSymPrecision=3, mFXCMSymID=10, mSymbol='EUR/JPY', mTouchTime=0, mFXCMSymPointSize=0.0010, mFXCMSymSortOrder=10} --- end superclass toString {mCurrency='EUR', mRoundLot=100000.0, mFXCMSymInterestBuy=0.0, mFXCMSymInterestSell=0.0, mFXCMSymMarginRatio=0.0, mFXCMSubscriptionStatus='null'}], mTradingSessionID='FXCM', mTradingSessionSubID='PriceServer', mFXCMTimingInterval=FXCMTimingInterval:5 Min (2), mFXCMStartDate=null, mFXCMStartTime=null, mFXCMEndDate=null, mFXCMEndTime=null, mFXCMNoSnapshot=1, mResponseFormat='null', mMakingTime=1239352016760}<br />
java.lang.NullPointerException<br />
	at com.fxcm.fix.pretrade.MarketDataRequest.toMessage(  MarketDataRequest.java:579)<br />
	at com.fxcm.fix.pretrade.MarketDataRequest.toMessage(  MarketDataRequest.java:545)<br />
	at .FxcmPriceSession.createSubscriptionRequestMessage  (FxcmPriceSession.java:333)<br />
	at<br />
.FxcmPriceSession$2.update(FxcmPriceSession.java:2  73)<br />
	at com.fxcm.messaging.util.UniversalUserSession.sendS  tatusUpdate(UniversalUserSession.java:963)<br />
	at com.fxcm.messaging.util.UniversalUserSession$Relog  ger.run(UniversalUserSession.java:1128)<br />
	at java.lang.Thread.run(Unknown Source)<br />
client: inc status msg = Connecting to the Server...<br />
<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>fxfoley</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/71375-unstable-connection.html</guid>
		</item>
		<item>
			<title>PEC just returns between UTC  21:00 Sunday and 20:00 Friday?</title>
			<link>http://forexforums.dailyfx.com/price-engine-client-sdk-support/71196-pec-just-returns-between-utc-21-00-sunday-20-00-friday.html</link>
			<pubDate>Thu, 09 Apr 2009 06:31:47 GMT</pubDate>
			<description>well, the trading time is  from 5:15 PM ET Sunday...</description>
			<content:encoded><![CDATA[<div>well, the trading time is  from 5:15 PM ET Sunday afternoon through 4:00 PM ET Friday afternoon. <br />
But using pec java sdk, i just got price data from UTC  21:00 Sunday to 20:00 Friday. <br />
why was that ?<br />
Thanks for your help ~</div>

]]></content:encoded>
			<category domain="http://forexforums.dailyfx.com/price-engine-client-sdk-support/">Price Engine Client SDK Support</category>
			<dc:creator>imported_Simeon</dc:creator>
			<guid isPermaLink="true">http://forexforums.dailyfx.com/price-engine-client-sdk-support/71196-pec-just-returns-between-utc-21-00-sunday-20-00-friday.html</guid>
		</item>
	</channel>
</rss>
