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

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 04-07-2008, 05:21 PM
70T 70T is offline
Member
 
Join Date: Mar 2008
Posts: 5
70T is on a distinguished road
how to catch datas with the api

I'm trying to use the api for getting some datas like equity, day P&L... but I don't understand how to do it.

Actually, I need to get the equity and the Closed Trades P&L every minute and then to write theese figures on a file or on a blog.

Can someone help me? I'm a new be in this domain...
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:36 AM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
If you are looking to retrieve that information that often, it would be better to retrieve the current values from a trading API like Order2Go. The Report API is not intended to be queried that often as each request will be an individually treated incident.

With Order2Go, you will have real-time updating objects that have this information in them that you can read from as often as you like.
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 03:52 AM
Junior Member
 
Join Date: Mar 2007
Posts: 3
rpchost is on a distinguished road
Create order code bug

Dear FXCm

I am facing a bug, when I try to create an order, sometimes the order is created twice. for example:

I create the order using the folowing command
oTradeDesk1.OpenTrade acct, Me.cmbCurrency.Text, isBuy, CLng(Lots), Rate, QuoteID, 0, Stops, Limit, Trail, OrderID, Dealer

sometimes and not all time the command is executed twice and I see in the opened posotions table 2 identical entries.

Is that a bug or I am using the code in wrong way.

Best Regards
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 03:57 AM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Do both entries have different ticket numbers?

Were you trying to place more than 1 lot and the order got splitted into two orders due to market volatility?
Reply With Quote
  #5 (permalink)  
Old 04-21-2008, 06:43 PM
70T 70T is offline
Member
 
Join Date: Mar 2008
Posts: 5
70T is on a distinguished road
Dear Administrator,

I'd like to know if it is possible to get the complete report by excel, i mean if there is a code in vba which make the same as if i click on 'report' in fxcm trading station? (after choosing the dates obviously).

Thanks for your help
Reply With Quote
  #6 (permalink)  
Old 04-22-2008, 12:43 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
You are able to do this through the GetReportURL function in Order2Go. Using this function, you are able to specify the dates, account and the report to be XLS if you wish.
Reply With Quote
  #7 (permalink)  
Old 04-23-2008, 07:15 PM
70T 70T is offline
Member
 
Join Date: Mar 2008
Posts: 5
70T is on a distinguished road
I used the GetReportURL and it works I get the URL but I don't know how to download the CombinedAccountStatement file in the same workbooks. Actually I need to click on a button and make appear the CombinedAccountStatement file on the sheet, is it possible?
Thanks
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 06:49 PM.
Copyright ©2009 Daily FX. All Rights Reserved.