{
  "openapi": "3.0.1",
  "info": {
    "title": "✨MQL5 / MT5 EA Fraud Auditor, Monte Carlo & .set Generator",
    "description": "✅ Detect toxic MT5/MQL5 Expert Advisors before they blow your account ($0.02/strategy). ✅ Audits MQL4/MQL5 source code for SL=0 unlimited risk, martingale multipliers, phantom unused inputs & lookahead bias, runs 2,500x Monte Carlo, and outputs a .set file.",
    "version": "0.0",
    "x-build-id": "Heg8oGxavHOFkjyp3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/invaluable_rondeau~mql5-mt5-ea-fraud-propfirm-set-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-invaluable_rondeau-mql5-mt5-ea-fraud-propfirm-set-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/invaluable_rondeau~mql5-mt5-ea-fraud-propfirm-set-auditor/runs": {
      "post": {
        "operationId": "runs-sync-invaluable_rondeau-mql5-mt5-ea-fraud-propfirm-set-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/invaluable_rondeau~mql5-mt5-ea-fraud-propfirm-set-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-invaluable_rondeau-mql5-mt5-ea-fraud-propfirm-set-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "strategies"
        ],
        "properties": {
          "strategies": {
            "title": "MT5 / MQL5 / TradingView Strategies to Audit (Batch)",
            "type": "array",
            "description": "Batch of EA or strategy backtest profiles (trade returns, parameter trials, symbol, spread, lot sizing, and optional MQL5 code snippets) to audit for Martingale/Grid fraud, overfitting (DSR/PBO), FTMO Prop-Firm drawdown breach risk, and annual broker spread bleed.",
            "default": [
              {
                "strategyId": "XAUUSD_London_Breakout_EA",
                "symbol": "XAUUSD",
                "currentBrokerSpreadPips": 2.2,
                "lotSize": 0.5,
                "monthlyTrades": 110,
                "parameterTrials": 18,
                "hasHardStopLoss": true,
                "maxLotMultiplier": 1,
                "returns": [
                  0.014,
                  -0.006,
                  0.019,
                  0.011,
                  -0.005,
                  0.022,
                  0.009,
                  -0.004,
                  0.016,
                  0.013,
                  -0.007,
                  0.018,
                  0.012,
                  -0.003,
                  0.015,
                  0.01,
                  -0.005,
                  0.021,
                  0.008,
                  0.014,
                  -0.006,
                  0.017,
                  0.011,
                  0.013
                ]
              },
              {
                "strategyId": "EURUSD_Asian_Session_Scalper_EA",
                "symbol": "EURUSD",
                "currentBrokerSpreadPips": 1.6,
                "lotSize": 1,
                "monthlyTrades": 160,
                "parameterTrials": 24,
                "hasHardStopLoss": true,
                "maxLotMultiplier": 1,
                "returns": [
                  0.008,
                  0.006,
                  -0.004,
                  0.009,
                  0.007,
                  -0.003,
                  0.011,
                  0.005,
                  -0.004,
                  0.008,
                  0.006,
                  0.007,
                  -0.005,
                  0.009,
                  0.008,
                  -0.002,
                  0.007,
                  0.006,
                  0.008,
                  -0.004,
                  0.01,
                  0.005,
                  0.007,
                  0.006
                ]
              },
              {
                "strategyId": "USDJPY_Martingale_Grid_Suspect_EA",
                "symbol": "USDJPY",
                "currentBrokerSpreadPips": 1.8,
                "lotSize": 0.3,
                "monthlyTrades": 140,
                "parameterTrials": 250,
                "hasHardStopLoss": false,
                "maxLotMultiplier": 2,
                "returns": [
                  0.005,
                  0.005,
                  0.006,
                  0.004,
                  0.005,
                  -0.068,
                  0.006,
                  0.005,
                  0.005,
                  0.004,
                  -0.082,
                  0.006,
                  0.005,
                  0.005,
                  0.004,
                  0.006,
                  -0.075,
                  0.005,
                  0.005,
                  0.006,
                  0.004,
                  0.005,
                  0.005,
                  -0.091
                ]
              },
              {
                "strategyId": "NAS100_NY_Open_PropFirm_EA",
                "symbol": "NAS100",
                "currentBrokerSpreadPips": 2.4,
                "lotSize": 0.4,
                "monthlyTrades": 85,
                "parameterTrials": 12,
                "hasHardStopLoss": true,
                "maxLotMultiplier": 1,
                "returns": [
                  0.018,
                  -0.008,
                  0.024,
                  0.015,
                  -0.007,
                  0.021,
                  0.012,
                  -0.006,
                  0.019,
                  0.016,
                  -0.009,
                  0.022,
                  0.014,
                  -0.005,
                  0.017,
                  0.013,
                  -0.007,
                  0.023,
                  0.011,
                  0.018,
                  -0.006,
                  0.02,
                  0.014,
                  0.015
                ]
              },
              {
                "strategyId": "GBPUSD_London_MeanReversion_EA",
                "symbol": "GBPUSD",
                "currentBrokerSpreadPips": 1.9,
                "lotSize": 0.6,
                "monthlyTrades": 95,
                "parameterTrials": 35,
                "hasHardStopLoss": true,
                "maxLotMultiplier": 1.15,
                "returns": [
                  0.011,
                  -0.005,
                  0.013,
                  0.009,
                  -0.006,
                  0.015,
                  0.008,
                  -0.004,
                  0.012,
                  0.01,
                  -0.005,
                  0.014,
                  0.009,
                  -0.004,
                  0.011,
                  0.008,
                  -0.005,
                  0.013,
                  0.007,
                  0.011,
                  -0.005,
                  0.012,
                  0.009,
                  0.01
                ]
              }
            ]
          },
          "monteCarloIterations": {
            "title": "Monte Carlo Block-Bootstrap Paths",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "Number of Monte Carlo equity paths to simulate per strategy for 95%/99% Max Drawdown and Prop-Firm daily/total breach probability.",
            "default": 2500
          },
          "propFirmMaxTotalDrawdownPct": {
            "title": "Prop-Firm Max Total Drawdown Limit (%)",
            "type": "number",
            "description": "Total drawdown limit (e.g., 10% for FTMO / standard Prop-Firm challenges).",
            "default": 10
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}