{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marginpad-io/json-schema/marginpad-io-sim-profile-schema.json",
  "title": "SimProfile",
  "description": "Send any subset. Out-of-range values are refused, not clamped. GET the endpoint for what each field changes.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marginpad-io-openapi.json#/components/schemas/SimProfile",
  "type": "object",
  "properties": {
    "preset": {
      "type": "string",
      "enum": [
        "frictionless",
        "realistic",
        "binance",
        "bybit",
        "okx",
        "hyperliquid",
        "thin_book",
        "brutal"
      ],
      "description": "A ready-made configuration. Starts from the defaults, so it is a clean slate plus that venue."
    },
    "reset": {
      "type": "boolean",
      "description": "true = back to the engine defaults."
    },
    "start_balance_usd": {
      "type": "number",
      "minimum": 100,
      "maximum": 10000000,
      "default": 10000,
      "description": "The book your results are measured against."
    },
    "margin_enforced": {
      "type": "boolean",
      "default": false,
      "description": "true = an open over free margin is refused 402 insufficient_margin, as a venue refuses it."
    },
    "leverage_max": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000,
      "default": 0,
      "description": "Your own leverage ceiling. 0 = the per-market cap."
    },
    "max_notional_usd": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "default": 0,
      "description": "Your own ceiling on one position’s notional. 0 = none."
    },
    "slippage": {
      "type": "boolean",
      "default": false,
      "description": "Fill against yourself the way walking a real book does."
    },
    "slippage_bps": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 500,
      "description": "Your own crossing cost in basis points instead of our measured table. null = the table."
    },
    "impact_bps_per_100k": {
      "type": "number",
      "minimum": 0,
      "maximum": 500,
      "default": 0,
      "description": "Extra basis points per $100,000 of notional, because size walks further down the book."
    },
    "exit_slippage": {
      "type": "boolean",
      "default": true,
      "description": "Pay the crossing cost on the way out too. A stop, take-profit or liquidation still fills at its own level."
    },
    "latency_ms": {
      "type": "number",
      "minimum": 0,
      "maximum": 2000,
      "default": 0,
      "description": "Your order is in flight this long, and the price is re-read afterwards."
    },
    "partial_fills": {
      "type": "boolean",
      "default": false,
      "description": "Allow a market order to fill less than it asked for."
    },
    "min_fill_pct": {
      "type": "number",
      "minimum": 10,
      "maximum": 100,
      "default": 100,
      "description": "The worst fill ratio with partial_fills on."
    },
    "reject_rate_pct": {
      "type": "number",
      "minimum": 0,
      "maximum": 50,
      "default": 0,
      "description": "Share of opens refused 503 venue_rejected on purpose."
    },
    "taker_bps": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100,
      "description": "Your own per-side fee in basis points. null = the venue from POST /v1/fees, or our class rate."
    },
    "funding": {
      "type": "boolean",
      "default": true,
      "description": "false = never charge funding, which is how you separate an execution edge from a carry edge."
    },
    "funding_mult": {
      "type": "number",
      "minimum": 0,
      "maximum": 5,
      "default": 1,
      "description": "Scale the real 8-hourly funding rate."
    },
    "margin_venue": {
      "type": "string",
      "description": "Whose published maintenance-margin rate decides where liquidation sits. ’’ = MarginPad’s 0.5%."
    },
    "margin_tiers": {
      "type": "boolean",
      "default": false,
      "description": "Raise maintenance margin with size, so a large position liquidates sooner."
    },
    "mmr_pct": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0.05,
      "maximum": 10,
      "description": "Your own maintenance margin, beating margin_venue."
    }
  }
}