Account.Deposits / Account.Withdrawals

Created at 10 Dec 2022, 23:40
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
NC

ncel01

Joined 19.03.2020

Account.Deposits / Account.Withdrawals
10 Dec 2022, 23:40


Hello,

Please make the history of an account deposits/withdrawals available, so there is no need to always adjust the input with this information, nor it is necessary to calculate this from the realized/unrealized P&L:

  • Account.InitialFunds : Returns the initial deposit made to the applicable account
  • Account.Deposits : Returns the sum of all deposits to the applicable account
  • Account.Withdrawals : Returns the sum of all withdrawals to the applicable account

Alternativelly (more detailed):

  • Account.Deposits[0] : The initial deposit made to the account
  • Account.Deposits[n-1] : The last deposit made to the account, where n = Account.Deposits.Length
  • Account.Deposits.Sum() : The sum of all deposits made to the applicable account
  • Same for withdrawals

Remark: Also, Account.Name is missing, I believe.

Thank you.


cTrader Automate
@ncel01