> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tilt.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Macro Scenario



## OpenAPI

````yaml POST /api/v1/backchannel/risk/scenario
openapi: 3.0.3
info:
  title: Backchannel API
  version: 1.0.0
  description: >-
    API for integrating Tilt market intelligence capabilities, including
    scenarios, topics, company news, company search, and risk analysis.
servers:
  - url: https://tilt.io
    description: Production
security:
  - apiKeyAuth: []
paths:
  /api/v1/backchannel/risk/scenario:
    post:
      tags:
        - Risk
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MacroScenarioRequest'
      responses:
        '200':
          description: Portfolio impact from macro factor shocks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MacroScenarioResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    MacroScenarioRequest:
      type: object
      properties:
        portfolio_weights:
          type: object
          additionalProperties:
            type: number
          description: >-
            Portfolio weights keyed by tilt_id or CUSIP. Mixed identifiers are
            allowed; CUSIPs are resolved to tilt_ids server-side.
        shocks:
          type: object
          additionalProperties:
            type: number
          description: >-
            Scenario shocks keyed by macro factor, RBICS sector, ticker, or
            direct tilt_id asset shock. Direct asset shock keys remain
            tilt_id-only.
        include_security_details:
          type: boolean
          default: true
      required:
        - portfolio_weights
        - shocks
    MacroScenarioResponse:
      type: object
      properties:
        success:
          type: boolean
        portfolio_expected_return_pct:
          type: number
        security_details:
          type: array
          items:
            $ref: '#/components/schemas/SecurityScenarioResult'
      required:
        - success
        - portfolio_expected_return_pct
    SecurityScenarioResult:
      type: object
      properties:
        tilt_id:
          type: string
        cusip:
          type: string
          nullable: true
          description: CUSIP for this security when SIG can resolve one.
        ticker:
          type: string
          nullable: true
        company_name:
          type: string
          nullable: true
        weight:
          type: number
        expected_return_pct:
          type: number
        contribution_to_portfolio_pct:
          type: number
        factor_contributions:
          type: object
          additionalProperties:
            type: number
      required:
        - tilt_id
        - weight
        - expected_return_pct
        - contribution_to_portfolio_pct
        - factor_contributions
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````