Unpublished — this page is visible on staging only and is not on the public site.
View .mdENIT

List risk condition presets

POST/api/v1/research/list_risk_rule_presets

Lists the ready-made risk conditions a strategy can switch on — the VIX, the VIX ratio, TIPS, the yield-curve rules, the S&P 500 against its 200-day average and its 12-month momentum — each with the rule it applies: the indicator, the risk-off and risk-on thresholds, the weeks of delay and which values you may change.

Authentication
REST: an API key or an OAuth access token. MCP: an OAuth access token.
MCP tool
list_risk_rule_presets
Cost
one research call

Parameters

What parameters does List risk condition presets take?

  • groupstringOptional

    one of volatility, yield_curve, inflation, sp500

    Only the presets of this group: volatility, yield_curve, inflation or sp500. Left out, every preset is listed.

  • includeRuleTypesbooleanOptionalDefault false

    When true, the result also lists the rule types a custom risk condition can use.

Response

What does List risk condition presets return?

  • presetslist

    The matching presets, in the order the app lists them.

    Show the 12 fields
    • idstring

      The preset's stable public id, in snake_case.

    • namestring

      at least 1 characters

      The preset's name as the app shows it.

    • groupstring

      one of volatility, yield_curve, inflation, sp500

      The preset's group: volatility, yield_curve, inflation or sp500.

    • descriptionstring

      at least 1 characters

      The app's description of what the preset watches and when it turns risk-off.

    • ruleTypestring

      one of single_series, double_series

      single_series compares one series with thresholds; double_series compares a series with another series or with its own indicator.

    • indicatorobject

      The indicator applied to the series before it is compared.

      Show the 2 fields
      • kindstring

        one of none, sma, change, average_momentum

        none (the series as it is), sma (a simple moving average), change (the change over a number of months) or average_momentum.

      • valuenumber

        may be null · unit: the unit of what it describes

        The indicator's window: trading days for sma, months for change and average_momentum, null for none. Convention: native_unit

    • riskOffobject

      may be null

      When the condition turns risk-off, or null for a crossing rule.

      Show the 2 fields
      • operatorstring

        one of above, below

        above or below: the regime holds while the series is above or below the threshold.

      • valuenumber

        unit: the unit of what it describes

        The risk-off threshold, in the unit of the series the preset reads. Convention: native_unit

    • riskOnobject

      may be null

      When the condition turns back risk-on, or null for a crossing rule.

      Show the 2 fields
      • operatorstring

        one of above, below

        above or below: the regime holds while the series is above or below the threshold.

      • valuenumber

        unit: the unit of what it describes

        The risk-on threshold, in the unit of the series the preset reads. Convention: native_unit

    • crossingobject

      may be null

      For a double_series preset, the comparison with the second series; null otherwise.

      Show the 2 fields
      • operatorstring

        one of above, below

        above or below: the regime holds while the series is above or below the comparison indicator.

      • againstobject

        The indicator the series is compared against.

        Show the 2 fields
        • kindstring

          one of none, sma, change, average_momentum

          The comparison indicator's kind, as in indicator.kind.

        • valuenumber

          may be null · unit: the unit of what it describes

          The comparison indicator's window, as in indicator.value. Convention: native_unit

    • weeksOfDelayinteger

      at least 0 · unit: weeks

      How many weeks the condition waits before acting on a switch.

    • switchRebalancesboolean

      True when a switch triggers a rebalance at once.

    • editablelist

      The values you may change while keeping the preset: riskOffOperator, riskOffValue, riskOnOperator, riskOnValue, indicatorValue.

  • ruleTypeslist

    may be null

    The rule types a custom risk condition can use, or null unless includeRuleTypes was true.

    Show the 3 fields
    • idstring

      one of single_series, double_series, hidden_markov, clustering, strategy_based

      single_series, double_series, hidden_markov, clustering or strategy_based.

    • namestring

      at least 1 characters

      The rule type's name as the app shows it.

    • detectsstring

      at least 1 characters

      What the rule type detects, in one sentence.

Every response arrives inside the result envelope every operation shares.

Errors

Which error codes can List risk condition presets return?

List risk condition presets has no error codes of its own beyond the common ones.

Common to every operation

  • unauthorized HTTP 401
  • plan_limit HTTP 403
  • invalid_input HTTP 422
  • quota_exhausted HTTP 429
  • rate_limited HTTP 429

Every error code

When should you use List risk condition presets?

  • The user asks which risk-off signals Fincanva has, or how a named one decides.
  • Before setting a risk condition on a strategy, to start from a preset.
  • You need the bounds of every risk-condition field to write a custom condition — Use instead describe_strategy_model

What does a call to List risk condition presets look like?

The presets that watch volatility

Which risk-off signals based on volatility does Fincanva have?

2 risk condition presets in the volatility group: VIX ratio and VIX.
Full response · 200
{
  "status": true,
  "data": {
    "result": {
      "presets": [
        {
          "id": "vix_ratio",
          "name": "VIX ratio",
          "group": "volatility",
          "description": "Ratio of short-term (VIX) to medium-term (VXV) implied volatility. Risk-Off when the short term exceeds the medium term.",
          "ruleType": "single_series",
          "indicator": {
            "kind": "none",
            "value": null
          },
          "riskOff": {
            "operator": "above",
            "value": 1
          },
          "riskOn": {
            "operator": "below",
            "value": 0.95
          },
          "crossing": null,
          "weeksOfDelay": 0,
          "switchRebalances": false,
          "editable": [
            "riskOffOperator",
            "riskOffValue",
            "riskOnOperator",
            "riskOnValue"
          ]
        },
        {
          "id": "vix",
          "name": "VIX",
          "group": "volatility",
          "description": "CBOE volatility index level. Risk-Off when volatility exceeds the threshold.",
          "ruleType": "single_series",
          "indicator": {
            "kind": "none",
            "value": null
          },
          "riskOff": {
            "operator": "above",
            "value": 25
          },
          "riskOn": {
            "operator": "below",
            "value": 20
          },
          "crossing": null,
          "weeksOfDelay": 0,
          "switchRebalances": false,
          "editable": [
            "riskOffOperator",
            "riskOffValue",
            "riskOnOperator",
            "riskOnValue"
          ]
        }
      ],
      "ruleTypes": null
    },
    "summary": "2 risk condition presets in the volatility group: VIX ratio and VIX.",
    "assumed": [
      {
        "field": "/includeRuleTypes",
        "value": false,
        "reason": "the rule types were not asked for, so they are not listed"
      }
    ],
    "dataVersion": null
  }
}

What goes wrong most often with List risk condition presets?

  • A preset's thresholds are in the unit of the series it reads — index points for the VIX, a plain ratio for the VIX ratio — not fractions.
  • riskOff and riskOn are two thresholds, not one: the gap between them keeps the condition from flipping back and forth around a single level.
  • Only the values listed in editable can change while the preset stays a preset; the rest of its rule is fixed.

Which plans include List risk condition presets?

Family: Strategy authoring · Quota cost: one research call — Availability

Fincanva is for education and illustration only. It is not personalised financial advice, and past or simulated results do not predict future ones. Read the Terms Addendum

DOCS · EN — IT