API for swaps

cTrader Automate

ctdn_voter since: 14 Jun 2019;

  05 Jun 2019, 18:53
API for swaps

it would be nice to have an API in Algo class for swaps.

The following should be available:
1) For nearest swap, per Symbol: nearest DateTime, amount in pips for short and long, type of swap (1day, 3day).
2) For Position: nearest DateTime, amount in pips, amount in account currency, amount in quote currency, type of swap.
3) For symbol: long swap in pips, short swap in pips when 3day swap occurs.

amiscell's avatar

amiscell since: 19 Nov 2013;

  18 Apr 2014, 15:05

Just #3 would do at the minimum

jhtrader's avatar

jhtrader since: 15 Oct 2013;

  20 Jun 2014, 16:44

2) Is it possible to obtain when swaps are going to be billed for an open position? If a position is in a negative state, it may be cheaper to close it just before the swap occurs or at the end of allowed trading range.

hmunz@icloud.com since: 16 Nov 2017;

  19 Nov 2020, 12:31
Same thing for Commissions

As for Swaps there should also be an API to get the Commissions which will be charged on the next opening position