Skip to content

Filter trades by side (buy or sell)#

Overview#

In CopyFactory you can optionally filter out unwanted trades by side (buy or sell).

By default CopyFactory will not apply a the side filter. However, if you want to enable this feature then you can specify an optional allowedSides setting. This setting can be specified on any of the following entities:

  • strategy
  • member of a portfolio strategy
  • portfolio strategy
  • subscription
  • subscriber

CopyFactory will apply intersection of all settings in the subscription chain.

Example (allow buy deals only)#

"allowedSides": ["buy"]

Example (allow sell deals only)#

"allowedSides": ["sell"]

Example (strategy)#

{
  "name": "Strategy",
  ...
  "allowedSides": ["sell"],
  ...
}

Example (member of a portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "members": [
    {
      ...
      "allowedSides": ["sell"],
      ...
    },
    ...
  ],
  ...
}

Example (portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "allowedSides": ["sell"],
  ...
}

Example (subscription)#

{
  "name": "Subscriber",
  ...
  "subscriptions": [
    {
      ...
      "allowedSides": ["sell"],
      ...
    },
    ...
  ],
  ...
}

Example (subscriber)#

{
  "name": "Subscriber",
  ...
  "allowedSides": ["sell"],
  ...
}