{
  "openapi": "3.1.0",
  "x-stoplight": {
    "id": "nnqf0uslff3v1"
  },
  "info": {
    "title": "MarginLevels",
    "version": "3.0",
    "description": "Margin call and Stop Out levels endpoints",
    "contact": {
      "name": "API Support",
      "url": "https://b2btech.atlassian.net/"
    }
  },
  "servers": [
    {
      "url": "[ts-host]"
    }
  ],
  "paths": {
    "/frontoffice/api/v3/margin-levels": {
      "parameters": [],
      "get": {
        "summary": "",
        "operationId": "get-frontoffice-api-margin-levels",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMarginLevelsModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "description": "<p><b>Required operations:</b><br/>trading-ui</p>",
        "tags": [
          "margin-levels"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "GetMarginLevelsModel": {
        "title": "GetMarginLevelsModel",
        "x-stoplight": {
          "id": "tl8o55buz3hpq"
        },
        "type": "object",
        "properties": {
          "marginCallLevel": {
            "$ref": "#/components/schemas/StringDecimal",
            "x-stoplight": {
              "id": "6akcdbwp3z9ha"
            },
            "minimum": 0.0
          },
          "stopOutLevel": {
            "$ref": "#/components/schemas/StringDecimal",
            "x-stoplight": {
              "id": "6akcdbwp3z9ha"
            },
            "minimum": 0.0
          }
        },
        "examples": [
          {
            "marginCallLevel": "0.8",
            "stopOutLevel": "0.3"
          }
        ]
      },
      "StringDecimal": {
        "title": "StringDecimal",
        "x-stoplight": {
          "id": "qjk2k8xpjwxgw"
        },
        "type": "string",
        "pattern": "^\\d+(\\.\\d+){0,1}",
        "examples": [
          "0.002",
          "10.015",
          "0.000001"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "margin-levels"
    }
  ]
}