PRUVIQ · Schema

ValidateRequest

OOS validation + Monte Carlo request.

CryptocurrencyBacktestingFinanceOpen Data

Properties

Name Type Description
record_provenance boolean Capture actual engine/input hashes for a fresh registry-strategy execution; bypass result cache, retain compute limits
registry object
strategy string Strategy ID (ignored when `entry` is provided — custom-conditions mode)
direction object
sl_pct number
tp_pct number
max_bars integer
market_type string
top_n object Number of coins (null = top 50)
symbols object
oos_pct number OOS split %
mc_runs integer Monte Carlo runs
start_date object Backtest start date (YYYY-MM-DD)
end_date object Backtest end date (YYYY-MM-DD)
timeframe string Candle timeframe: 1H, 2H, 4H, 6H, 12H, 1D, 1W
avoid_hours object UTC hours to avoid entering trades (0-23). null = use strategy default
avoid_months object Months to avoid entering trades (1-12). null = no month filter
min_vol_regime object Minimum ATR ratio (current ATR / 14-period ATR MA) to allow entry. e.g., 0.7 = skip low-volatility periods. null = no filter
name object Custom strategy display name (custom-conditions mode only)
indicators object Indicator configs for custom-conditions mode: {'bb': {'period': 20}, 'ema': {}, ...}
entry object Entry conditions tree: {'type': 'AND', 'conditions': [...]}. Presence switches validation to custom-conditions mode (strategy field ignored).
exit_conditions object Optional exit-signal conditions tree (custom-conditions mode only), same shape as entry.
tp_source string Exit mode (custom-conditions mode only): custom_pct = fixed TP/SL; trailing = trailing stop (tp_pct is the trail distance)
trailing_pct object Trailing stop distance % (custom-conditions mode only). If null and tp_source=trailing, uses tp_pct.
View JSON Schema on GitHub

JSON Schema

pruviq-com-validate-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pruviq-com/json-schema/pruviq-com-validate-request-schema.json",
  "title": "ValidateRequest",
  "description": "OOS validation + Monte Carlo request.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pruviq-com-openapi.json#/components/schemas/ValidateRequest",
  "properties": {
    "record_provenance": {
      "type": "boolean",
      "title": "Record Provenance",
      "description": "Capture actual engine/input hashes for a fresh registry-strategy execution; bypass result cache, retain compute limits",
      "default": false
    },
    "registry": {
      "anyOf": [
        {
          "$ref": "#/$defs/CompletedRegistryValidationInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "strategy": {
      "type": "string",
      "title": "Strategy",
      "description": "Strategy ID (ignored when `entry` is provided — custom-conditions mode)",
      "default": "bb-squeeze"
    },
    "direction": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Direction"
    },
    "sl_pct": {
      "type": "number",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Sl Pct",
      "default": 10.0
    },
    "tp_pct": {
      "type": "number",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Tp Pct",
      "default": 8.0
    },
    "max_bars": {
      "type": "integer",
      "maximum": 168.0,
      "minimum": 1.0,
      "title": "Max Bars",
      "default": 48
    },
    "market_type": {
      "type": "string",
      "enum": [
        "futures",
        "spot"
      ],
      "title": "Market Type",
      "default": "futures"
    },
    "top_n": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 535.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Top N",
      "description": "Number of coins (null = top 50)"
    },
    "symbols": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Symbols"
    },
    "oos_pct": {
      "type": "number",
      "maximum": 50.0,
      "minimum": 10.0,
      "title": "Oos Pct",
      "description": "OOS split %",
      "default": 30.0
    },
    "mc_runs": {
      "type": "integer",
      "maximum": 5000.0,
      "minimum": 100.0,
      "title": "Mc Runs",
      "description": "Monte Carlo runs",
      "default": 1000
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date",
      "description": "Backtest start date (YYYY-MM-DD)"
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date",
      "description": "Backtest end date (YYYY-MM-DD)"
    },
    "timeframe": {
      "type": "string",
      "enum": [
        "1H",
        "2H",
        "4H",
        "6H",
        "12H",
        "1D",
        "1W"
      ],
      "title": "Timeframe",
      "description": "Candle timeframe: 1H, 2H, 4H, 6H, 12H, 1D, 1W",
      "default": "1H"
    },
    "avoid_hours": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avoid Hours",
      "description": "UTC hours to avoid entering trades (0-23). null = use strategy default"
    },
    "avoid_months": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avoid Months",
      "description": "Months to avoid entering trades (1-12). null = no month filter"
    },
    "min_vol_regime": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Vol Regime",
      "description": "Minimum ATR ratio (current ATR / 14-period ATR MA) to allow entry. e.g., 0.7 = skip low-volatility periods. null = no filter"
    },
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Custom strategy display name (custom-conditions mode only)"
    },
    "indicators": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Indicators",
      "description": "Indicator configs for custom-conditions mode: {'bb': {'period': 20}, 'ema': {}, ...}"
    },
    "entry": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry",
      "description": "Entry conditions tree: {'type': 'AND', 'conditions': [...]}. Presence switches validation to custom-conditions mode (strategy field ignored)."
    },
    "exit_conditions": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exit Conditions",
      "description": "Optional exit-signal conditions tree (custom-conditions mode only), same shape as entry."
    },
    "tp_source": {
      "type": "string",
      "enum": [
        "custom_pct",
        "trailing"
      ],
      "title": "Tp Source",
      "description": "Exit mode (custom-conditions mode only): custom_pct = fixed TP/SL; trailing = trailing stop (tp_pct is the trail distance)",
      "default": "custom_pct"
    },
    "trailing_pct": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 50.0,
          "minimum": 0.5
        },
        {
          "type": "null"
        }
      ],
      "title": "Trailing Pct",
      "description": "Trailing stop distance % (custom-conditions mode only). If null and tp_source=trailing, uses tp_pct."
    }
  },
  "type": "object",
  "$defs": {
    "CompletedRegistryValidationInput": {
      "properties": {
        "request": {
          "$ref": "#/$defs/SimulationRequest"
        },
        "resolved_strategy": {
          "type": "string",
          "minLength": 1,
          "title": "Resolved Strategy"
        },
        "slippage_pct_per_side": {
          "additionalProperties": {
            "type": "number",
            "exclusiveMaximum": 1.0,
            "minimum": 0.0
          },
          "type": "object",
          "title": "Slippage Pct Per Side"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "request",
        "resolved_strategy",
        "slippage_pct_per_side"
      ],
      "title": "CompletedRegistryValidationInput",
      "description": "Effective inputs recorded by a completed registry execution, not a replay receipt."
    },
    "SimulationRequest": {
      "properties": {
        "record_provenance": {
          "type": "boolean",
          "title": "Record Provenance",
          "description": "Capture actual engine/input hashes for a fresh registry-strategy execution; bypass result cache, retain compute limits",
          "default": false
        },
        "strategy": {
          "type": "string",
          "title": "Strategy",
          "description": "Strategy ID",
          "default": "bb-squeeze"
        },
        "direction": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Direction",
          "description": "long | short | both (null = use strategy default)"
        },
        "sl_pct": {
          "type": "number",
          "maximum": 50.0,
          "minimum": 1.0,
          "title": "Sl Pct",
          "description": "Stop Loss %",
          "default": 10.0
        },
        "tp_pct": {
          "type": "number",
          "maximum": 50.0,
          "minimum": 1.0,
          "title": "Tp Pct",
          "description": "Take Profit %",
          "default": 8.0
        },
        "max_bars": {
          "type": "integer",
          "maximum": 168.0,
          "minimum": 1.0,
          "title": "Max Bars",
          "description": "Max holding period (bars)",
          "default": 48
        },
        "market_type": {
          "type": "string",
          "enum": [
            "futures",
            "spot"
          ],
          "title": "Market Type",
          "description": "spot | futures",
          "default": "futures"
        },
        "symbols": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Symbols",
          "description": "Specific symbols (null = use top_n)"
        },
        "symbol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Symbol",
          "description": "Single-symbol alias for `symbols`. Auto-mapped (prevents silent ignore of a singular field)."
        },
        "top_n": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 535.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Top N",
          "description": "Number of coins (null = top 50)"
        },
        "include_stablecoins": {
          "type": "boolean",
          "title": "Include Stablecoins",
          "description": "Include stablecoins (USDC, DAI…) in the top_n universe. Default false — ~0 volatility → empty backtests. Ignored when `symbols` is set (explicit picks always honored).",
          "default": false
        },
        "start_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Start Date",
          "description": "Backtest start date (YYYY-MM-DD)"
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "End Date",
          "description": "Backtest end date (YYYY-MM-DD)"
        },
        "cutoff_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cutoff Utc",
          "description": "Only candles closed by this UTC instant; null = current closed hour. Does not freeze historical source revisions."
        },
        "timeframe": {
          "type": "string",
          "enum": [
            "1H",
            "2H",
            "4H",
            "6H",
            "12H",
            "1D",
            "1W"
          ],
          "title": "Timeframe",
          "description": "Candle timeframe: 1H, 2H, 4H, 6H, 12H, 1D, 1W",
          "default": "1H"
        },
        "compounding": {
          "type": "boolean",
          "title": "Compounding",
          "description": "True = reinvest profits (compound), False = fixed position size (simple)",
          "default": false
        },
        "avoid_hours": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avoid Hours",
          "description": "UTC hours to avoid entering trades (0-23). null = use strategy default"
        },
        "avoid_months": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avoid Months",
          "description": "Months to avoid entering trades (1-12). null = no month filter"
        },
        "min_vol_regime": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Vol Regime",
          "description": "Minimum ATR ratio (current ATR / 14-period ATR MA) to allow entry. e.g., 0.7 = skip low-volatility periods. null = no filter"
        },
        "btc_trend_filter": {
          "type": "boolean",
          "title": "Btc Trend Filter",
          "description": "If true, only allow LONG entries when BTC is above its 50-period SMA. Improves LONG edge in bull regimes.",
          "default": false
        },
        "fee_pct": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 0.01,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Fee Pct",
          "description": "Fee per side (0.0005 = 0.05%). None = use market_type default"
        },
        "leverage": {
          "type": "number",
          "maximum": 125.0,
          "minimum": 1.0,
          "title": "Leverage",
          "description": "Leverage multiplier for PnL calculation",
          "default": 1.0
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "SimulationRequest",
      "description": "시뮬레이션 요청\n\n`extra=\"forbid\"` — 모르는 필드는 **거부**한다(2026-09-20, Q-B97).\n\n왜: 이 파일에 `extra` 선언이 한 줄도 없어서 Pydantic v2 기본값 `ignore` 가\n적용돼 있었다. 그래서 `{\"params\": {...}}` 처럼 한 겹 감싸 보내면 **전 필드가\n기본값으로 떨어지고 HTTP 200 에 전혀 다른 답**이 나갔다(실측 27배 차이).\n호출자는 자기 입력이 버려진 걸 알 길이 없다 — 오답이 성공처럼 보인다.\n사람에게도 나쁘지만 **에이전트에게 특히 나쁘다**: 사람은 화면 숫자가 이상하면\n멈추지만, 프로그램은 200 을 받으면 그대로 인용한다.\n\n회귀 위험은 켜기 전에 실측했다 — `/simulate` 를 부르는 프론트 4곳의 전송 키\n합집합 13개가 **전부 이 모델의 필드**다(모델에만 있는 8개는 무관):\n  SimulatorPage(자동실행) 13 · StrategyDemo 5 · TrustGapPanel 9 · simRequest 10\n빌더의 커스텀 전략 본문(`...customSnapshot`)은 이 엔드포인트가 아니라\n`/backtest` 로 간다 — 그쪽 모델은 이 변경의 범위가 아니다."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pruviq-com-validate-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.