Go Back   DailyFX Forex Forum | FX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Price Engine Client SDK Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 02-13-2009, 10:14 AM
Junior Member
 
Join Date: Nov 2008
Posts: 3
kiramo is on a distinguished road
Question Report Exception

I work with Price Engine API and send a DataMakerRequest with a FXCMTimingIntervalFactory.toCode(1), but the server response the follow exception message:

[WARN] [ com.fxcm.messaging.util.CommunicationException ] socket closedcom.fxcm.messaging.util.CommunicationExcepti on: socket closed
at com.fxcm.messaging.util.pdas.communicator.http.Htt pCommunicator.httpSend(HttpCommunicator.java:306)
at com.fxcm.messaging.util.pdas.communicator.http.Htt pCommunicator.trnSend(HttpCommunicator.java:124)
at com.fxcm.messaging.util.pdas.communicator.Communic ator.request(Communicator.java:429)
at com.fxcm.messaging.util.pdas.communicator.Communic ator.run(Communicator.java:302)
at java.lang.Thread.run(Unknown Source)

I don't know why, please can you help me?
Reply With Quote
  #2 (permalink)  
Old 02-15-2009, 05:09 PM
Moderator
 
Join Date: Jan 2006
Posts: 2,005
FXCM Help is on a distinguished road
Can you confirm that you are properly logged in? Can you pull up a tradingsessionid. And can you show us the code you are using to build and submit the marketdatarequest
Reply With Quote
  #3 (permalink)  
Old 02-16-2009, 04:47 PM
Junior Member
 
Join Date: Nov 2008
Posts: 3
kiramo is on a distinguished road
Unhappy

I'm loggin with user=test1, password=password1, but I prepared a Property object:

Properties properties = new Properties();
properties.setProperty("ProxyServer", "127.0.0.1");
properties.setProperty("ProxyPort", "8008");
properties.setProperty("ProxyUserID", "test1");
properties.setProperty("ProxyPassword", "password1");

ConnectionManagerEx.init(properties);

This is my MarketDataRequest:
MarketDataRequest mdr = new MarketDataRequest();
mdr.setFXCMTimingInterval(interval);
mdr.setMDEntryTypeSet(mdEntry);
mdr.setSubscriptionRequestType(subscription);
mdr.setTradingSessionID(cUserSession.getTradingSes sion().getID());
mdr.setTradingSessionSubID(cUserSession.getTrading Session().getSubID());
mdr.setFXCMNoSnapshot(0);

mdr.setMDReqID(cUserSession.getNextRequestID());

mdr.setFXCMStartTime(timeStart);
mdr.setFXCMStartDate(dateStart);
mdr.setFXCMEndTime(timeEnd);
mdr.setFXCMEndDate(dateEnd);

where:

interval = FXCMTimingIntervalFactory.toCode(1);
subscription = SubscriptionRequestTypeFactory.SNAPSHOT;
mdEntry = MarketDataRequest.MDENTRYTYPESET_ALL;

I used example.java with this values and the server response

[WARN] [ com.fxcm.messaging.util.CommunicationException ] socket closedcom.fxcm.messaging.util.CommunicationExcepti on: socket closed
at com.fxcm.messaging.util.pdas.communicator.http.Htt pCommunicator.httpSend(HttpCommunicator.java:306)
at com.fxcm.messaging.util.pdas.communicator.http.Htt pCommunicator.trnSend(HttpCommunicator.java:124)
at com.fxcm.messaging.util.pdas.communicator.Communic ator.request(Communicator.java:429)
at com.fxcm.messaging.util.pdas.communicator.Communic ator.run(Communicator.java:302)
at java.lang.Thread.run(Unknown Source)

I don't undertand because a try with
interval = FXCMTimingIntervalFactory.toCode(2);
interval = FXCMTimingIntervalFactory.toCode(3);
...

and not recived this message. Please help me
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.

All times are GMT -5. The time now is 08:15 PM.
Copyright ©2009 Daily FX. All Rights Reserved.