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

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 08-16-2009, 05:58 PM
snt snt is offline
Member
 
Join Date: May 2009
Posts: 5
snt is an unknown quantity at this point
Column CONVERT_RATE

Hi,

The below mentioned row is from the table closed_trade_list. Could somebody please explain why the conversion rate in the last column is 1. Shouldn't it be 0.0105xxx as the USD/JPY is traded in JPY and the conversion rate from JPY to USD should apply for converting the p/l? The full report is attached in the zip.

<row>
<column name="ID1">2</column>
<column name="Q2">20461016</column>
<column name="W3">903736</column>
<column name="E4">USD</column>
<column name="R5">10000</column>
<column name="T6">59316598</column>
<column name="Y7" />
<column name="U8">1</column>
<column name="I9">USD</column>
<column name="O10">07/30/2009 07:10:17</column>
<column name="P11">95.129</column>
<column name="A12">07/30/2009 06:47:58</column>
<column name="S13">95.071</column>
<column name="D14">-6.1</column>
<column name="F15">0</column>
<column name="G16">0</column>
<column name="H17">0</column>
<column name="J18">-6.1</column>
<column name="K19">10000</column>
<column name="L20">2</column>
<column name="INTR21">0</column>
<column name="PNL22">-6.1</column>
<column name="COMM23">0</column>
<column name="ADJ24">0</column>
<column name="Q25">JPY</column>
<column name="Q26">USD</column>
<column name="Q27">3</column>
<column name="Q28">Mkt</column>
<column name="Q29">C</column>
<column name="Q32">d3905940001</column>
<column name="Q33">d3905940001</column>
<column name="Q34">2009-07-30</column>
<column name="CONVERT_RATE">1</column>
</row>

Thanks
Attached Files
File Type: zip 00903736.zip (3.7 KB, 2 views)

Last edited by snt; 08-18-2009 at 10:46 AM..
Reply With Quote
  #2 (permalink)  
Old 08-18-2009, 06:02 PM
snt snt is offline
Member
 
Join Date: May 2009
Posts: 5
snt is an unknown quantity at this point
Guys,

It appears that the conversion rates reported in xml reports are wrong. Earlier I referred data from closed_trade_list. I further studied the reports and here are few of the example that I am referring from table open_floating_positions (first 2 are correct while last 2 are not):

EUR/GBP Short, 10K, 0.85291/0.85400, p/l -18.05, conv rate 1.655905. Calculation: 10000*(0.85291-0.854)*1.655905 = -18.05

EUR/USD Long, 10K, 1.43709/1.41334, p/l -237.50, conv rate 1. Calculation: 10000*(1.41334-1.43709)*1 = -237.50

USD/JPY Long, 30K, 94.504/94.660, p/l 49.44, conv rate 1. Calcuation: 30000*(94.66-94.504)*1 = 4680.00

USD/CHF Long, 30K, 1.07801/1.07531, p/l -75.33, conv rate 1. Calculation: 30000*(1.07531-1.07801)*1 = -81

Could somebody comment?

Thanks
Reply With Quote
  #3 (permalink)  
Old 08-19-2009, 11:02 AM
Registered User
 
Join Date: Aug 2009
Posts: 2
fxsv is an unknown quantity at this point
Hi,

It seems to be a real error in case when 'Account currency' == 'First currency in pair'.

Btw, why you need CONVERT_RATE value, it's kind of redundant information, you can always calculate it back from open/close rate and pnl.

Thanks
Reply With Quote
  #4 (permalink)  
Old 08-19-2009, 11:51 AM
snt snt is offline
Member
 
Join Date: May 2009
Posts: 5
snt is an unknown quantity at this point
Not only when 'Account currency' == 'First currency in pair', but it occurs on other crosses as well, for example on EUR/JPY cross, the conversion rate is reported as 94.6601.

We can calculate it from the pnl, but that will give a conversion rate based on the rounded pnl. That may differ at 4th or 5th or 6th decimal place (depending on situation) from the original conversion rate.

For backoffice record keeping, I was looking for the original conversion rate that was applied at the time of conversion/trade. But now I will have to calculate it as the conversion rates are not correct.

Thanks
Reply With Quote
Reply

Tags
conversion rate

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:19 AM.
Copyright ©2009 Daily FX. All Rights Reserved.