Skip to content

Get accounts#

About#

Returns accounts the user have configured

GET /users/current/configuration/accounts

For more information see Swagger documentation

Headers#

Name Type Required Description
auth-token string Yes authorization token. See Authentication & authorization

Response#

Responses:

  • 200 - Accounts returned successfully. Response schema: Array<Account>
  • 401 - Authorization failed. Response schema: Error

Examples#

Example request:

curl -X GET --header 'Accept: application/json' --header 'auth-token: token' 'https://trading-api-v1.agiliumtrade.agiliumtrade.ai/users/current/configuration/accounts'

Example response:

[
  {
    "_id": "string",
    "name": "string",
    "connectionId": "string",
    "reservedMarginFraction": 0,
    "phoneNumbers": [
      "string"
    ],
    "minTradeAmount": 0,
    "closeOnly": "by-position",
    "stopOutRisk": {
      "value": 0,
      "startTime": "string"
    },
    "riskLimits": [
      {
        "type": "daily",
        "applyTo": "balance",
        "maxRisk": 0,
        "closePositions": true,
        "startTime": "string"
      }
    ],
    "maxLeverage": 0,
    "subscriptions": [
      {
        "strategyId": "string",
        "multiplier": 0,
        "skipPendingOrders": true,
        "closeOnly": "by-strategy",
        "maxTradeRisk": 0,
        "reverse": true,
        "reduceCorrelations": "by-strategy",
        "stopOutRisk": {
          "value": 0,
          "startTime": "string"
        },
        "symbolFilter": {
          "included": [
            "string"
          ],
          "excluded": [
            "string"
          ]
        },
        "newsFilter": {
          "breakingNewsFilter": {
            "priorities": [
              "high"
            ],
            "closePositionTimeGapInMinutes": 0,
            "openPositionFollowingTimeGapInMinutes": 0
          },
          "calendarNewsFilter": {
            "priorities": [
              "election"
            ],
            "closePositionTimeGapInMinutes": 0,
            "openPositionPrecedingTimeGapInMinutes": 0,
            "openPositionFollowingTimeGapInMinutes": 0
          }
        },
        "riskLimits": [
          {
            "type": "daily",
            "applyTo": "balance",
            "maxRisk": 0,
            "closePositions": true,
            "startTime": "string"
          }
        ],
        "maxStopLoss": {
          "value": 0,
          "units": "pips"
        },
        "maxLeverage": 0,
        "symbolMapping": [
          {
            "to": "string",
            "from": "string"
          }
        ],
        "tradeSizeScalingMode": "none"
      }
    ]
  }
]