Skip to content

Calculate trading commissions#

Overview#

In CopyFactory you can calculate trading commisssions you would like to charge from your users for copying trades from master to subscriber accounts.

CopyFactory supports following commission schemes:

  • fixed fee per period of time
  • fixed fee per lot copied
  • fixed fee per lot won
  • percent of amount traded
  • percent of amount won
  • profit sharing based on high-water mark

By default CopyFactory will not calculate commissions. If you want to enable this feature then you can specify an optional commissionScheme setting. This setting can be specified on any of the following entities:

  • strategy
  • portfolio strategy

The calculated commissions are available via history API:

Setting schema is available in CommissionScheme document.

Example (strategy)#

{
  "name": "Strategy",
  ...
  {
    "type": "flat-fee",
    "billingPeriod": "week",
    "commissionRate": 50
  },
  ...
}

Example (portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  {
    "type": "flat-fee",
    "billingPeriod": "week",
    "commissionRate": 50
  },
  ...
}