Skip to content

Strategy list#

About#

Strategy list model. Contains strategy list limited by pagination options and summary count of matched records.

Fields#

Name Type Required Description
count integer Yes Number of strategies matching query in total
items Array<Strategy> Yes Strategy list filtered by query

Example#

{
  "count": 1,
  "items": [
    {
      "_id": "AeRF",
      "name": "Test strategy",
      "description": "Some useful description about your strategy",
      "skipPendingOrders": true,
      "accountId": "105646d8-8c97-4d4d-9b74-413bd66cd4ed",
      "commissionScheme": {
        "type": "flat-fee",
        "billingPeriod": "week",
        "commissionRate": 1
      },
      "platformCommissionRate": 1,
      "maxTradeRisk": 0.4,
      "reverse": true,
      "reduceCorrelations": "by-strategy",
      "stopOutRisk": {
        "absoluteValue": 0.05,
        "relativeValue": 0.4,
        "startTime": "2020-08-24T00:00:00.000Z"
      },
      "symbolFilter": {
        "included": [
          "EURUSD"
        ]
      },
      "newsFilter": {
        "calendarNewsFilter": {
          "priorities": [
            "election"
          ],
          "closePositionTimeGapInMinutes": 10,
          "openPositionPrecedingTimeGapInMinutes": 20,
          "openPositionFollowingTimeGapInMinutes": 20
        }
      },
      "riskLimits": [
        {
          "type": "day",
          "applyTo": "balance-difference",
          "maxAbsoluteRisk": 0.05,
          "maxRelativeRisk": 0.4,
          "closePositions": true,
          "startTime": "2020-08-24T00:00:00.000Z"
        }
      ],
      "maxStopLoss": {
        "value": 150,
        "units": "pips"
      },
      "maxLeverage": 50,
      "symbolMapping": [
        {
          "to": "EURUSD",
          "from": "EURUSD.m"
        }
      ],
      "tradeSizeScaling": {
        "mode": "none"
      },
      "magicFilter": {
        "included": [
          "1000-2000"
        ]
      },
      "drawdownFilter": {
        "maxDrawdown": 0.4,
        "action": "include"
      },
      "timeSettings": {
        "lifetimeInHours": 10,
        "openingIntervalInMinutes": 10
      }
    }
  ]
}

Usages#