Dukascopy
 
 
Wiki JStore Search Login

Calculate commissions and overnight swaps
 Post subject: Calculate commissions and overnight swaps Post rating: 0   New post Posted: Tue 21 Sep, 2010, 14:16 

User rating: 0
Joined: Tue 21 Sep, 2010, 12:52
Posts: 6
Are there any methods to get the total commissions and overnight swaps of an order when I close it? Thanks for any suggestions.


 
 Post subject: Re: How to calculate commissions and overnight swaps? Post rating: 0   New post Posted: Wed 06 Oct, 2010, 10:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There are no such methods currently. They will be added later.


 
 Post subject: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Sun 17 Oct, 2010, 16:19 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
As suggested by this post, it would be good for data analysis if we can have a method to get the commission and overnight swaps (separately please) on both an opened and closed order.


 
 Post subject: Re: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Mon 18 Oct, 2010, 09:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The total commissions are being returned in the current API. The overnights will be added later.


 
 Post subject: Re: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Mon 18 Oct, 2010, 13:19 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
Support wrote:
The total commissions are being returned in the current API.
Couldn't find this one. Which class, which method? That is, how to get the commission in account currency for a particular order that is either open (filled) or closed?


 
 Post subject: Re: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Wed 08 Dec, 2010, 16:56 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
Support wrote:
The total commissions are being returned in the current API. The overnights will be added later.


I couldn't find this too.

Just to clarify this, I'm referring to commission and swap per order. Preferably as methods in IOrder. So that we can fetch these data in our own performance analysis.


 
 Post subject: Re: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Tue 08 Mar, 2011, 04:12 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
I understand these information are available in the portfolio report in the web. But that's for actual traded positions. I would like these data available in the API so that I can export data in backtesting for performance analysis.


 
 Post subject: Re: DDSJFX-181 Total commissions and overnight swaps Post rating: 0   New post Posted: Fri 10 Jun, 2011, 12:10 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
[quantisan] wrote:
I understand these information are available in the portfolio report in the web. But that's for actual traded positions. I would like these data available in the API so that I can export data in backtesting for performance analysis.


I cannot find any method that returns commission.


 
 Post subject: Re: APICLIENT-27 calculate commissions and overnight swaps Post rating: 0   New post Posted: Mon 24 Sep, 2012, 22:05 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hi,

Regarding commision... what about
IOrder.getCommission() 

and
IOrder.getCommissionInUSD();

don't they work good enough?

regards,
Kurak


 
 Post subject: Re: Calculate commissions and overnight swaps Post rating: 0   New post Posted: Thu 12 Dec, 2013, 22:54 

User rating: 0
Joined: Thu 12 Dec, 2013, 09:24
Posts: 21
Location: Ukraine, Kyiv
How can I convert commision into pips in order to modify SL and TP?


 
 Post subject: Re: Calculate commissions and overnight swaps Post rating: 1   New post Posted: Fri 13 Dec, 2013, 07:51 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
docotor wrote:
How can I convert commision into pips in order to modify SL and TP?
Some methods of the JFUtils interface convert the cost of one pip for particular instrument to specified currency. But you need reversal convertion.
So look for some examples here https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=50311


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com