Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Java Trading API Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 07-23-2009, 01:54 PM
Registered User
 
Join Date: Jul 2009
Posts: 1
10SigFX is an unknown quantity at this point
ClientTester login problem

Hi, I'm just getting started with the Java API and I have a problem logging in to the FXCM servers using my demo account. Here is the error message I keep getting when I try to run the ClientTester program using the required parameters ( MyuserID, Mypassword, DEMO, host) like what is used in the example Test batch file. I get the same error message when I try to run the test batch files too. Thanks, Roy

client: start logging in
com.fxcm.GenericException: ConectionManager.getHostDescriptor: Hosts Descriptor "DEMO" is not found.
at com.fxcm.messaging.util.HostReader.read(HostReader .java:95)
at com.fxcm.messaging.util.UniversalUserSession.loadS tationDescriptor(UniversalUserSession.java:413)
at com.fxcm.internal.transport.FXCMGateway.login(FXCM Gateway.java:269)
at ClientTester.main(ClientTester.java:196)

Process completed.
Reply With Quote
  #2 (permalink)  
Old 07-23-2009, 01:54 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
try Demo, it is case sensitive
Reply With Quote
  #3 (permalink)  
Old 08-25-2009, 02:02 AM
Member
 
Join Date: Aug 2009
Posts: 5
willis11of12 is an unknown quantity at this point
I just downloaded the java sdk software and I am using Eclipse. I have done very little programing in the past and still consider myself a newbie. Anyway, I looked at this ClientTester.java file and see that I need four arguments to connect. I have a demo account, and in the process of funding a live account, but I don't know if my demo account is API enabled or not, nor do I know what to put down for the server number. If someone could please tell me what to put in for these args I would appreciate that very much.
Thanks in advance!
Reply With Quote
  #4 (permalink)  
Old 08-25-2009, 04:23 AM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Your demo account should be enabled for Java Trading API.

For the input parameters, the following should be used:
Login ID
Password
Terminal ("Demo" for demo accounts)
Server (http://www.fxcorporate.com/Hosts.jsp)

Let us know if you have further questions.
Reply With Quote
  #5 (permalink)  
Old 08-25-2009, 04:36 PM
Member
 
Join Date: Aug 2009
Posts: 5
willis11of12 is an unknown quantity at this point
I was able to get it to run, though perhaps not properly as the print out made little sense to me. Can give me a step by step process to properly install the java api software via Eclipse or some other way so that I know I am using the proper set up?

PS This is an example of the print out I got the one way I set things up that allowed me to run the program (Most set ups didn't work for me, hence the reason I want to make sure I set it up properly):

2009/08/25 16:29:33:515 EDT [DEBUG] Communicator - <<< inc Message type=U55
SID=U100D6_EBSwAELmp2G71ejv1YaDhAFUMd2Fxe3COTzhMiy fsSjK3sG0NHxadtlFl
9028=25
9057=SRV.RR.U100D6
112=U100D6_EBSwAELmp2G71ejv1YaDhAFUMd2Fxe3COTzhMiy fsSjK3sG0NHxadtlFl-5
9035=TOPIC.RR.U100D6
9032=SRV.RR.U100D6.1251053232517
9033=BUS.RR
625=U100D6
336=FXCM
9016=list
--------
1: 9018=246833;9017=TraderID;
2: 9018=0
1;372186500;;;-1.82;.62;Y;0;0;EUR/USD;EUR;1;5;.0001;1;.00009;-.00009;.004271;T;
2;367302777;;;.75;-2.6;Y;0;0;USD/JPY;USD;1;3;.01;2;.009;-.009;.003;T;
3;367303103;;;-.27;-.14;Y;0;0;GBP/USD;GBP;1;5;.0001;3;.00009;-.00009;.005595;T;
4;367303033;;;.72;-1.75;Y;0;0;USD/CHF;USD;1;5;.0001;4;.00009;-.00009;.003;T;
5;367303049;;;-.31;-.5;Y;0;0;EUR/CHF;EUR;1;5;.0001;5;.00007;-.00007;.008542;T;
6;367302973;;;3.67;-8.3;Y;0;0;AUD/USD;AUD;1;5;.0001;6;.00007;-.00007;.003553;T;
7;367302955;;;.06;-.96;Y;0;0;USD/CAD;USD;1;5;.0001;7;.00007;-.00007;.0038;T;
8;367303065;;;2.41;-5.67;Y;0;0;NZD/USD;NZD;1;5;.0001;8;.00007;-.00007;.003374;T;
9;367303039;;;-2.23;.7;Y;0;0;EUR/GBP;EUR;1;5;.0001;9;.00007;-.00007;.009112;T;
10;367303045;;;-.14;-1.34;Y;0;0;EUR/JPY;EUR;1;3;.01;10;.007;-.007;.008542;T;
11;367303105;;;1.15;-3.8;Y;0;0;GBP/JPY;GBP;1;3;.01;11;.012;-.012;.010532;T;
12;367303007;;;-.14;-.28;Y;0;0;CHF/JPY;CHF;1;3;.01;12;.007;-.007;.00564;T;
13;367303106;;;.99;-2.81;Y;0;0;GBP/CHF;GBP;1;5;.0001;13;.00007;-.00007;.010532;T;
14;367303080;;;-15.32;6.39;Y;0;0;EUR/AUD;EUR;1;5;.0001;14;.00007;-.00007;.010393;T;
15;368012130;;;.53;0;Y;0;0;EUR/CAD;EUR;1;5;.0001;15;.00007;-.00007;.004271;T;
16;367302979;;;4;-9.01;Y;0;0;AUD/CAD;AUD;1;5;.0001;16;.00007;-.00007;.002479;T;
17;367303085;;;4.27;-10.07;Y;0;0;AUD/JPY;AUD;1;3;.01;17;.012;-.012;.006032;T;
18;367302961;;;.14;-.84;Y;0;0;CAD/JPY;CAD;1;3;.01;18;.012;-.012;.0044;T;
19;368365690;;;2.41;-6.34;Y;0;0;NZD/JPY;NZD;1;3;.01;19;.012;-.012;.005399;T;
22;368140935;;;-16.03;6.92;Y;0;0;GBP/AUD;GBP;1;5;.0001;22;.00012;-.00012;.012671;T;
28;368365679;;;1.01;-3.46;Y;0;0;AUD/NZD;AUD;1;5;.0001;28;.00007;-.00007;.007685;T;
;
;9017=DAS;
3: 9018=U100D6_EBSwAELmp2G71ejv1YaDhAFUMd2Fxe3COTzhMi yfsSjK3sG0NHxadtlFl-5;9017=QID;
4: 9018=U100D6_EBSwAELmp2G71ejv1YaDhAFUMd2Fxe3COTzhMi yfsSjK3sG0NHxadtlFl;9017=SID;
--------


2009/08/25 16:29:33:515 EDT [DEBUG] UniversalUserSession - processSynchronousRequest.response = FXCMResponse msTestReqID=U100D6_EBSwAELmp2G71ejv1YaDhAFUMd2Fxe3 COTzhMiyfsSjK3sG0NHxadtlFl-5,msTradingSessionID=FXCM,msTradingSessionSubID=U1 00D6,msFXCMCommandID=25,mParams={ TraderID=246833;DAS=0

...

client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
client: inc status msg = Request sent.
client: inc status msg = Sending request...
Reply With Quote
  #6 (permalink)  
Old 09-14-2009, 04:45 AM
Member
 
Join Date: Aug 2009
Posts: 5
willis11of12 is an unknown quantity at this point
Also, can you point me to any explanation of the example codes?
Reply With Quote
  #7 (permalink)  
Old 09-23-2009, 07:17 AM
Luke Quinn's Avatar
FXCM Programmer
 
Join Date: Aug 2008
Posts: 37
Luke Quinn is an unknown quantity at this point
Quote:
Originally Posted by willis11of12 View Post
Also, can you point me to any explanation of the example codes?
Willis11of12,

All documentation available is part of the original download. We do hope to have something much more extensive and encompassing available in the coming year. I would agree that the documentation and developer community is much smaller for our Java API than it is for Order2Go. To give you some color, this api is built for speed, not ease of use, so it may be challenging for someone who does not have a ton of programming experience as you stated in a previous post. To put it in perspective, we recently hired a developer with years of Java experience, it took him about a month to get comfortable using this interface. For someone who is less experienced, this may take longer. One of our Sales guys is going through the process of mastering Java and the Java API. He recommends the following links.


http://people.reed.edu/~jerry/121/ma...learnsjava.pdf

Stanford School of Engineering - Stanford Engineering Everywhere

If you find that this is all taking too long for your solution, of course keep in mind that you can always hire one of our consultants to provide you with a turn key solution. You can reach out to them at consulting@fxcm.com.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #8 (permalink)  
Old 09-24-2009, 10:29 AM
Member
 
Join Date: Aug 2009
Posts: 5
willis11of12 is an unknown quantity at this point
Thank you for the perspective Luke. Would you mind telling me what steps I need to do to setup the java sdk in Eclipse?
Reply With Quote
  #9 (permalink)  
Old 11-02-2009, 05:36 PM
Registered User
 
Join Date: Nov 2009
Posts: 1
cool_engg22 is an unknown quantity at this point
Problems in ClientTester.java

Hello,
I have JAVA Trading APIs.I need to run ClientTester.java program.I am using NetBeans IDE.Can any of you please tell me the procedure how to run ClientTester.java program?what should be the output of this program?
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 09:13 AM.
Copyright ©2009 Daily FX. All Rights Reserved.