{
  "openapi": "3.0.1",
  "info": {
    "title": "Alpha Momentum API",
    "description": "Market data and fundamentals for US-listed companies, macro data, GPU rental prices, Bank for International Settlements (BIS) and FRED statistics, and the Alpha Momentum factor rankings (~1,700 US stocks ranked monthly) with trade ideas and backtests.",
    "version": "1.0.0",
    "contact": {
      "name": "API Support",
      "url": "https://alphamomentum.ai/support"
    }
  },
  "servers": [
    {
      "url": "https://mcp.alphamomentum.ai/v1",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Companies",
      "description": "7 tools"
    },
    {
      "name": "Metrics & prices",
      "description": "5 tools"
    },
    {
      "name": "Filings & insiders",
      "description": "8 tools"
    },
    {
      "name": "Institutional",
      "description": "3 tools"
    },
    {
      "name": "Macro",
      "description": "3 tools"
    },
    {
      "name": "GPU prices",
      "description": "2 tools"
    },
    {
      "name": "BIS statistics",
      "description": "16 tools"
    },
    {
      "name": "FRED statistics",
      "description": "13 tools"
    },
    {
      "name": "Options desk",
      "description": "11 tools"
    },
    {
      "name": "Screener",
      "description": "2 tools"
    },
    {
      "name": "About",
      "description": "2 tools"
    },
    {
      "name": "Agent Account",
      "description": "Self-serve account creation and funding for AI agents."
    }
  ],
  "security": [
    {
      "X-API-KEY": []
    }
  ],
  "paths": {
    "/agent/signup": {
      "post": {
        "tags": [
          "Agent Account"
        ],
        "operationId": "agentSignup",
        "summary": "Agent signup",
        "description": "Create an Alpha Momentum account as an AI agent and receive an API key in one call. No authentication required. The email must be the account owner's real inbox: they receive a one-click confirmation email, and they pay the Stripe funding link you mint later. While the account is unconfirmed and unfunded, calling signup again with the same email rotates the key (200).",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentSignupRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing unconfirmed, unfunded account: the key was rotated and the fresh key is returned. The old key stops working.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSignupResponse"
                }
              }
            }
          },
          "201": {
            "description": "Account created; the API key is returned once. Save it immediately.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSignupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid email (including placeholder domains like example.com) or invalid agent_name."
          },
          "409": {
            "description": "An account already exists for this email and cannot be modified from here. Key management moves to the dashboard."
          },
          "429": {
            "description": "Rate limited. Wait, then retry."
          }
        }
      }
    },
    "/agent/checkout-link": {
      "post": {
        "tags": [
          "Agent Account"
        ],
        "operationId": "agentCheckoutLink",
        "summary": "Agent checkout link",
        "description": "Mint a Stripe Checkout link that funds the account tied to the API key. Give the returned checkout_url to the account owner; they pay in the browser with no login, and the account is credited within seconds. Links expire after 24 hours; mint a fresh one anytime.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCheckoutLinkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout link created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCheckoutLinkResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalid_amount_to_add: amount_to_add is not numeric or is below the $20 minimum."
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "502": {
            "description": "checkout_link_failed: the payment provider could not create the link. Retry."
          }
        }
      }
    },
    "/search_companies": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "search_companies",
        "summary": "Search Companies",
        "description": "Find companies by name or ticker, with filters for type, exchange, CIK, CUSIP and more. Give at least one of `query`, `ticker`, `cik`, or `cusip`.",
        "responses": {
          "200": {
            "description": "Search Companies response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "companies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "name": {
                            "type": "string",
                            "description": "Company, person, security, or object name."
                          },
                          "cik": {
                            "type": "string",
                            "description": "SEC Central Index Key."
                          },
                          "type": {
                            "type": "string",
                            "description": "Discriminating type for this object."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Active."
                          },
                          "market": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Market metric names the screener accepts."
                          },
                          "locale": {
                            "type": "string",
                            "description": "Locale."
                          },
                          "primary_exchange": {
                            "type": "string",
                            "description": "Primary exchange."
                          },
                          "exchange": {
                            "type": "string",
                            "description": "Listing exchange."
                          },
                          "currency_name": {
                            "type": "string",
                            "description": "Currency name."
                          },
                          "currency_symbol": {
                            "type": "string",
                            "description": "Currency symbol."
                          },
                          "base_currency_name": {
                            "type": "string",
                            "description": "Base currency name."
                          },
                          "base_currency_symbol": {
                            "type": "string",
                            "description": "Base currency symbol."
                          },
                          "composite_figi": {
                            "type": "string",
                            "description": "OpenFIGI composite FIGI."
                          },
                          "share_class_figi": {
                            "type": "string",
                            "description": "OpenFIGI share-class FIGI."
                          },
                          "last_updated_utc": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Last updated utc."
                          },
                          "delisted_utc": {
                            "type": "string",
                            "description": "Delisted utc."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Matching listings, exact ticker match first."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "companies": [
                    {
                      "ticker": "AAPL",
                      "name": "Apple Inc.",
                      "cik": "0000320193",
                      "type": "CS",
                      "active": true,
                      "market": "stocks",
                      "locale": "us",
                      "primary_exchange": "XNAS",
                      "exchange": "NASDAQ",
                      "currency_name": "usd",
                      "currency_symbol": null,
                      "base_currency_name": null,
                      "base_currency_symbol": null,
                      "composite_figi": "BBG000B9XRY4",
                      "share_class_figi": "BBG001S5N8V8",
                      "last_updated_utc": "2026-11-10T00:00:00Z",
                      "delisted_utc": null
                    }
                  ],
                  "count": 1
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Free-text search across ticker and/or company name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Exact ticker match. Combine with other filters as needed.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Asset / security type filter, e.g. `CS` (common stock) or `ETF`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Listing market to search within (for example stocks vs other markets).",
            "schema": {
              "type": "string",
              "enum": [
                "stocks",
                "otc",
                "indices",
                "fx",
                "crypto"
              ],
              "default": "stocks"
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "required": false,
            "description": "Primary exchange MIC (`XNAS`, `XNYS`, …) or friendly name (`NASDAQ`, `NYSE`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cusip",
            "in": "query",
            "required": false,
            "description": "CUSIP filter. For legal reasons CUSIP is never returned in the response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "required": false,
            "description": "SEC CIK instead of (or with) ticker; leading zeros optional (`320193` = `0000320193`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Point-in-time listing universe for this date (`YYYY-MM-DD`): only tickers that existed then.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "active",
            "in": "query",
            "required": false,
            "description": "When true, restrict results to actively traded listings.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "Ascending or descending order for the `sort` field (`asc` / `desc`).",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "asc"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Field used to order matches (default `ticker`).",
            "schema": {
              "type": "string",
              "default": "ticker"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum company matches to return (1–1000).",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ]
      }
    },
    "/get_company_facts": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_company_facts",
        "summary": "Company Facts",
        "description": "Company profile. Includes name, CIK, exchange, SIC, market cap, employees, share counts, listing date, website, location, description, phone, address, branding, FIGIs and listing metadata.",
        "responses": {
          "200": {
            "description": "Company Facts response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "company_facts": {
                      "type": "object",
                      "description": "Company profile object.",
                      "properties": {
                        "ticker": {
                          "type": "string",
                          "description": "Company ticker for this row (e.g. AAPL)."
                        },
                        "name": {
                          "type": "string",
                          "description": "Company, person, security, or object name."
                        },
                        "cik": {
                          "type": "string",
                          "description": "SEC Central Index Key."
                        },
                        "type": {
                          "type": "string",
                          "description": "Discriminating type for this object."
                        },
                        "exchange": {
                          "type": "string",
                          "description": "Listing exchange."
                        },
                        "sector": {
                          "type": "string",
                          "description": "GICS-style sector name."
                        },
                        "industry": {
                          "type": "string",
                          "description": "Industry name."
                        },
                        "sic_code": {
                          "type": "string",
                          "description": "Standard Industrial Classification code."
                        },
                        "sic_sector": {
                          "type": "string",
                          "description": "SIC sector name."
                        },
                        "sic_industry": {
                          "type": "string",
                          "description": "SIC industry name."
                        },
                        "market_cap": {
                          "type": "number",
                          "description": "Market capitalization in USD."
                        },
                        "number_of_employees": {
                          "type": "integer",
                          "description": "Reported employee count."
                        },
                        "outstanding_shares": {
                          "type": "number",
                          "description": "Shares outstanding."
                        },
                        "weighted_average_shares": {
                          "type": "number",
                          "description": "Weighted-average shares outstanding (basic)."
                        },
                        "listing_date": {
                          "type": "string",
                          "format": "date",
                          "description": "Original listing date."
                        },
                        "location": {
                          "type": "string",
                          "description": "Headquarters location."
                        },
                        "website_url": {
                          "type": "string",
                          "description": "Company website."
                        },
                        "sec_filings_url": {
                          "type": "string",
                          "description": "SEC EDGAR company page."
                        },
                        "currency": {
                          "type": "string",
                          "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                        },
                        "is_active": {
                          "type": "boolean",
                          "description": "Whether the listing is currently active."
                        },
                        "description": {
                          "type": "string",
                          "description": "One-line description."
                        },
                        "phone_number": {
                          "type": "string",
                          "description": "Phone number."
                        },
                        "address": {
                          "type": "object",
                          "description": "Address.",
                          "properties": {
                            "address1": {
                              "type": "string",
                              "description": "Address1."
                            },
                            "city": {
                              "type": "string",
                              "description": "City."
                            },
                            "state": {
                              "type": "string",
                              "description": "Go, Go?, Skip, or Wait."
                            },
                            "postal_code": {
                              "type": "string",
                              "description": "Postal code."
                            }
                          },
                          "additionalProperties": true
                        },
                        "branding": {
                          "type": "object",
                          "description": "Branding.",
                          "properties": {
                            "logo_url": {
                              "type": "string",
                              "description": "Logo url."
                            },
                            "icon_url": {
                              "type": "string",
                              "description": "Icon url."
                            }
                          },
                          "additionalProperties": true
                        },
                        "composite_figi": {
                          "type": "string",
                          "description": "OpenFIGI composite FIGI."
                        },
                        "share_class_figi": {
                          "type": "string",
                          "description": "OpenFIGI share-class FIGI."
                        },
                        "primary_exchange": {
                          "type": "string",
                          "description": "Primary exchange."
                        },
                        "locale": {
                          "type": "string",
                          "description": "Locale."
                        },
                        "market": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Market metric names the screener accepts."
                        },
                        "delisted_utc": {
                          "type": "string",
                          "description": "Delisted utc."
                        },
                        "ticker_root": {
                          "type": "string",
                          "description": "Ticker root."
                        },
                        "ticker_suffix": {
                          "type": "string",
                          "description": "Ticker suffix."
                        },
                        "round_lot": {
                          "type": "integer",
                          "description": "Round lot."
                        },
                        "currency_name": {
                          "type": "string",
                          "description": "Currency name."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "company_facts": {
                    "ticker": "AAPL",
                    "name": "Apple Inc.",
                    "cik": "0000320193",
                    "type": "CS",
                    "exchange": "NASDAQ",
                    "sector": "Technology",
                    "industry": "Consumer Electronics",
                    "sic_code": "3571",
                    "sic_sector": "Manufacturing",
                    "sic_industry": "Electronic Computers",
                    "market_cap": 5096290905580,
                    "number_of_employees": 167000,
                    "outstanding_shares": 14532182000,
                    "weighted_average_shares": 14532182000,
                    "listing_date": "1980-12-12",
                    "location": "Cupertino, CA",
                    "website_url": "https://www.apple.com",
                    "sec_filings_url": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193",
                    "currency": "USD",
                    "is_active": true,
                    "description": "Apple is among the largest companies in the world, with a broad portfolio of hardware and software products targeted at consumers and businesses.",
                    "phone_number": "(408) 996-1010",
                    "address": {
                      "address1": "ONE APPLE PARK WAY",
                      "city": "CUPERTINO",
                      "state": "CA",
                      "postal_code": "95014"
                    },
                    "branding": {
                      "logo_url": "https://example.com/branding/aapl-logo.svg",
                      "icon_url": "https://example.com/branding/aapl-icon.png"
                    },
                    "composite_figi": "BBG000B9XRY4",
                    "share_class_figi": "BBG001S5N8V8",
                    "primary_exchange": "XNAS",
                    "locale": "us",
                    "market": "stocks",
                    "delisted_utc": null,
                    "ticker_root": "AAPL",
                    "ticker_suffix": null,
                    "round_lot": 40,
                    "currency_name": "usd"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Company ticker for the profile, e.g. `AAPL`. Give `ticker` or `cik`; `ticker` wins if both are set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "required": false,
            "description": "SEC CIK for the profile when you do not pass `ticker`. Leading zeros optional (`320193` = `0000320193`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Optional point-in-time profile date (`YYYY-MM-DD`). Default is latest; ignored when point-in-time history is unavailable.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ]
      }
    },
    "/get_income_statement": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_income_statement",
        "summary": "Income Statements",
        "description": "Income statements, newest first: revenue, costs, operating income, net income, EPS and share counts. Values are in full units of the reporting currency.",
        "responses": {
          "200": {
            "description": "Income Statements response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "income_statements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "fiscal_period": {
                            "type": "string",
                            "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "revenue": {
                            "type": "number",
                            "description": "Total revenue for the period."
                          },
                          "cost_of_revenue": {
                            "type": "number",
                            "description": "Cost of revenue / cost of goods sold."
                          },
                          "gross_profit": {
                            "type": "number",
                            "description": "Revenue minus cost of revenue."
                          },
                          "operating_expense": {
                            "type": "number",
                            "description": "Total operating expenses."
                          },
                          "research_and_development": {
                            "type": "number",
                            "description": "Research and development expense."
                          },
                          "selling_general_and_administrative_expenses": {
                            "type": "number",
                            "description": "Selling, general, and administrative expenses."
                          },
                          "operating_income": {
                            "type": "number",
                            "description": "Operating income (EBIT from operations)."
                          },
                          "ebitda": {
                            "type": "number",
                            "description": "Earnings before interest, taxes, depreciation, and amortization."
                          },
                          "net_income": {
                            "type": "number",
                            "description": "Net income for the period."
                          },
                          "earnings_per_share": {
                            "type": "number",
                            "description": "Basic earnings per share."
                          },
                          "earnings_per_share_diluted": {
                            "type": "number",
                            "description": "Diluted earnings per share."
                          },
                          "weighted_average_shares_diluted": {
                            "type": "number",
                            "description": "Weighted-average diluted shares outstanding."
                          },
                          "interest_expense": {
                            "type": "number",
                            "description": "Interest expense."
                          },
                          "ebit": {
                            "type": "number",
                            "description": "Earnings before interest and taxes."
                          },
                          "depreciation_and_amortization": {
                            "type": "number",
                            "description": "Depreciation and amortization."
                          },
                          "income_tax_expense": {
                            "type": "number",
                            "description": "Income tax expense."
                          },
                          "nonoperating_income_expense": {
                            "type": "number",
                            "description": "Non-operating income and expense, net."
                          },
                          "net_income_discontinued_operations": {
                            "type": "number",
                            "description": "Net income from discontinued operations."
                          },
                          "net_income_non_controlling_interests": {
                            "type": "number",
                            "description": "Net income attributable to non-controlling interests."
                          },
                          "net_income_common_stock": {
                            "type": "number",
                            "description": "Net income available to common stockholders."
                          },
                          "preferred_dividends_impact": {
                            "type": "number",
                            "description": "Preferred dividends deducted from net income."
                          },
                          "consolidated_income": {
                            "type": "number",
                            "description": "Consolidated net income."
                          },
                          "dividends_per_common_share": {
                            "type": "number",
                            "description": "Dividends declared per common share."
                          },
                          "weighted_average_shares": {
                            "type": "number",
                            "description": "Weighted-average shares outstanding (basic)."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Income statement rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM period."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "income_statements": [
                    {
                      "ticker": "AAPL",
                      "report_period": "2026-06-27",
                      "fiscal_period": "2026-Q3",
                      "period": "ttm",
                      "currency": "USD",
                      "accession_number": "0000320193-26-000071",
                      "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000071/",
                      "revenue": 428300000000,
                      "cost_of_revenue": 228100000000,
                      "gross_profit": 200200000000,
                      "operating_expense": 63900000000,
                      "research_and_development": 34700000000,
                      "selling_general_and_administrative_expenses": 29200000000,
                      "operating_income": 136300000000,
                      "ebitda": 148900000000,
                      "net_income": 117400000000,
                      "earnings_per_share": 7.98,
                      "earnings_per_share_diluted": 7.95,
                      "weighted_average_shares_diluted": 14767000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to pull income statements for, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Which statement cadence to return: `annual`, `quarterly` (or FMP's `quarter`), or `ttm` (trailing twelve months = sum of the last four quarters). `Q1`–`Q4` and `FY` are also accepted.",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter",
                "ttm",
                "Q1",
                "Q2",
                "Q3",
                "Q4",
                "FY"
              ],
              "default": "ttm"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the fiscal period that ends on this exact date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many periods to return (1–100), newest first, after date filters are applied.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          },
          {
            "name": "as_reported",
            "in": "query",
            "required": false,
            "description": "Line-item shape. `false` (default) maps filers onto one canonical schema for comparison; `true` keeps original XBRL names as filed. With `true`, TTM is unavailable and annual rows are returned.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/get_balance_sheet": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_balance_sheet",
        "summary": "Balance Sheets",
        "description": "Balance sheets, newest first: assets, liabilities, equity, debt and share counts. Values are in full units of the reporting currency.",
        "responses": {
          "200": {
            "description": "Balance Sheets response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance_sheets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "fiscal_period": {
                            "type": "string",
                            "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "total_assets": {
                            "type": "number",
                            "description": "Total assets."
                          },
                          "current_assets": {
                            "type": "number",
                            "description": "Current assets."
                          },
                          "cash_and_equivalents": {
                            "type": "number",
                            "description": "Cash and cash equivalents."
                          },
                          "total_liabilities": {
                            "type": "number",
                            "description": "Total liabilities."
                          },
                          "current_liabilities": {
                            "type": "number",
                            "description": "Current liabilities."
                          },
                          "total_debt": {
                            "type": "number",
                            "description": "Total debt."
                          },
                          "shareholders_equity": {
                            "type": "number",
                            "description": "Shareholders' equity."
                          },
                          "outstanding_shares": {
                            "type": "number",
                            "description": "Shares outstanding."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "inventory": {
                            "type": "number",
                            "description": "Inventory."
                          },
                          "current_investments": {
                            "type": "number",
                            "description": "Current investments."
                          },
                          "trade_and_non_trade_receivables": {
                            "type": "number",
                            "description": "Trade and non-trade receivables."
                          },
                          "non_current_assets": {
                            "type": "number",
                            "description": "Non-current assets."
                          },
                          "property_plant_and_equipment": {
                            "type": "number",
                            "description": "Property, plant, and equipment."
                          },
                          "goodwill_and_intangible_assets": {
                            "type": "number",
                            "description": "Goodwill and intangible assets."
                          },
                          "investments": {
                            "type": "number",
                            "description": "Investments."
                          },
                          "non_current_investments": {
                            "type": "number",
                            "description": "Non-current investments."
                          },
                          "tax_assets": {
                            "type": "number",
                            "description": "Tax assets."
                          },
                          "current_debt": {
                            "type": "number",
                            "description": "Current portion of debt."
                          },
                          "trade_and_non_trade_payables": {
                            "type": "number",
                            "description": "Trade and non-trade payables."
                          },
                          "deferred_revenue": {
                            "type": "number",
                            "description": "Deferred revenue."
                          },
                          "deposit_liabilities": {
                            "type": "number",
                            "description": "Deposit liabilities."
                          },
                          "non_current_liabilities": {
                            "type": "number",
                            "description": "Non-current liabilities."
                          },
                          "non_current_debt": {
                            "type": "number",
                            "description": "Non-current debt."
                          },
                          "tax_liabilities": {
                            "type": "number",
                            "description": "Tax liabilities."
                          },
                          "retained_earnings": {
                            "type": "number",
                            "description": "Retained earnings."
                          },
                          "accumulated_other_comprehensive_income": {
                            "type": "number",
                            "description": "Accumulated other comprehensive income."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Balance sheet rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM snapshot."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "balance_sheets": [
                    {
                      "ticker": "AAPL",
                      "report_period": "2026-06-27",
                      "fiscal_period": "2026-Q3",
                      "period": "ttm",
                      "currency": "USD",
                      "total_assets": 352600000000,
                      "current_assets": 131900000000,
                      "cash_and_equivalents": 36300000000,
                      "total_liabilities": 279400000000,
                      "current_liabilities": 141200000000,
                      "total_debt": 96800000000,
                      "shareholders_equity": 73200000000,
                      "outstanding_shares": 14598000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to pull balance sheets for, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Which balance-sheet cadence to return: `annual`, `quarterly` (or FMP's `quarter`), or `ttm` (TTM uses the latest quarter’s snapshot). `Q1`–`Q4` and `FY` are also accepted.",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter",
                "ttm",
                "Q1",
                "Q2",
                "Q3",
                "Q4",
                "FY"
              ],
              "default": "ttm"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the fiscal period that ends on this exact date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many periods to return (1–100), newest first, after date filters are applied.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          },
          {
            "name": "as_reported",
            "in": "query",
            "required": false,
            "description": "Line-item shape. `false` (default) uses the canonical schema; `true` keeps original XBRL names as filed (no TTM in that mode — annual rows).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/get_cash_flow_statement": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_cash_flow_statement",
        "summary": "Cash Flow Statements",
        "description": "Cash-flow statements, newest first: operating, investing and financing cash flows, capex and free cash flow. Values are in full units of the reporting currency.",
        "responses": {
          "200": {
            "description": "Cash Flow Statements response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cash_flow_statements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "net_cash_flow_from_operations": {
                            "type": "number",
                            "description": "Net cash from operating activities."
                          },
                          "capital_expenditure": {
                            "type": "number",
                            "description": "Capital expenditure (typically negative)."
                          },
                          "free_cash_flow": {
                            "type": "number",
                            "description": "Free cash flow (operating cash flow minus capex)."
                          },
                          "issuance_or_purchase_of_equity_shares": {
                            "type": "number",
                            "description": "Issuance or repurchase of equity."
                          },
                          "dividends_and_other_cash_distributions": {
                            "type": "number",
                            "description": "Dividends and other cash distributions."
                          },
                          "ending_cash_balance": {
                            "type": "number",
                            "description": "Cash balance at period end."
                          },
                          "fiscal_period": {
                            "type": "string",
                            "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "net_income": {
                            "type": "number",
                            "description": "Net income for the period."
                          },
                          "depreciation_and_amortization": {
                            "type": "number",
                            "description": "Depreciation and amortization."
                          },
                          "share_based_compensation": {
                            "type": "number",
                            "description": "Share-based compensation."
                          },
                          "net_cash_flow_from_investing": {
                            "type": "number",
                            "description": "Net cash from investing activities."
                          },
                          "property_plant_and_equipment": {
                            "type": "number",
                            "description": "Property, plant, and equipment."
                          },
                          "business_acquisitions_and_disposals": {
                            "type": "number",
                            "description": "Cash from business acquisitions and disposals."
                          },
                          "investment_acquisitions_and_disposals": {
                            "type": "number",
                            "description": "Cash from investment acquisitions and disposals."
                          },
                          "net_cash_flow_from_financing": {
                            "type": "number",
                            "description": "Net cash from financing activities."
                          },
                          "issuance_or_repayment_of_debt_securities": {
                            "type": "number",
                            "description": "Issuance or repayment of debt."
                          },
                          "change_in_cash_and_equivalents": {
                            "type": "number",
                            "description": "Change in cash and cash equivalents."
                          },
                          "effect_of_exchange_rate_changes": {
                            "type": "number",
                            "description": "Effect of exchange-rate changes on cash."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Cash-flow statement rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM period."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "cash_flow_statements": [
                    {
                      "ticker": "AAPL",
                      "report_period": "2026-06-27",
                      "period": "ttm",
                      "net_cash_flow_from_operations": 124800000000,
                      "capital_expenditure": -12100000000,
                      "free_cash_flow": 112700000000,
                      "issuance_or_purchase_of_equity_shares": -98400000000,
                      "dividends_and_other_cash_distributions": -15600000000,
                      "ending_cash_balance": 36300000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to pull cash-flow statements for, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Which cash-flow cadence to return: `annual`, `quarterly` (or FMP's `quarter`), or `ttm` (sum of the last four quarters). `Q1`–`Q4` and `FY` are also accepted.",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter",
                "ttm",
                "Q1",
                "Q2",
                "Q3",
                "Q4",
                "FY"
              ],
              "default": "ttm"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the fiscal period that ends on this exact date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many periods to return (1–100), newest first, after date filters are applied.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          },
          {
            "name": "as_reported",
            "in": "query",
            "required": false,
            "description": "Line-item shape. `false` (default) uses the canonical schema; `true` keeps original XBRL names as filed (no TTM in that mode — annual rows).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/get_all_financial_statements": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_all_financial_statements",
        "summary": "All Financial Statements",
        "description": "Income, balance sheet and cash-flow statements together for one ticker, aligned on the same period settings. Values are in full units of the reporting currency.",
        "responses": {
          "200": {
            "description": "All Financial Statements response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "financials": {
                      "type": "object",
                      "description": "Income statements, balance sheets, and cash flow statements together.",
                      "properties": {
                        "income_statements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "report_period": {
                                "type": "string",
                                "format": "date",
                                "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                              },
                              "revenue": {
                                "type": "number",
                                "description": "Total revenue for the period."
                              },
                              "net_income": {
                                "type": "number",
                                "description": "Net income for the period."
                              },
                              "ticker": {
                                "type": "string",
                                "description": "Company ticker for this row (e.g. AAPL)."
                              },
                              "fiscal_period": {
                                "type": "string",
                                "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                              },
                              "period": {
                                "type": "string",
                                "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                              },
                              "currency": {
                                "type": "string",
                                "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                              },
                              "accession_number": {
                                "type": "string",
                                "description": "SEC accession number of the filing this period was taken from."
                              },
                              "filing_url": {
                                "type": "string",
                                "description": "Link to the SEC filing (or filing index) for this period."
                              },
                              "cost_of_revenue": {
                                "type": "number",
                                "description": "Cost of revenue / cost of goods sold."
                              },
                              "gross_profit": {
                                "type": "number",
                                "description": "Revenue minus cost of revenue."
                              },
                              "operating_expense": {
                                "type": "number",
                                "description": "Total operating expenses."
                              },
                              "selling_general_and_administrative_expenses": {
                                "type": "number",
                                "description": "Selling, general, and administrative expenses."
                              },
                              "research_and_development": {
                                "type": "number",
                                "description": "Research and development expense."
                              },
                              "operating_income": {
                                "type": "number",
                                "description": "Operating income (EBIT from operations)."
                              },
                              "interest_expense": {
                                "type": "number",
                                "description": "Interest expense."
                              },
                              "ebit": {
                                "type": "number",
                                "description": "Earnings before interest and taxes."
                              },
                              "ebitda": {
                                "type": "number",
                                "description": "Earnings before interest, taxes, depreciation, and amortization."
                              },
                              "depreciation_and_amortization": {
                                "type": "number",
                                "description": "Depreciation and amortization."
                              },
                              "income_tax_expense": {
                                "type": "number",
                                "description": "Income tax expense."
                              },
                              "nonoperating_income_expense": {
                                "type": "number",
                                "description": "Non-operating income and expense, net."
                              },
                              "net_income_discontinued_operations": {
                                "type": "number",
                                "description": "Net income from discontinued operations."
                              },
                              "net_income_non_controlling_interests": {
                                "type": "number",
                                "description": "Net income attributable to non-controlling interests."
                              },
                              "net_income_common_stock": {
                                "type": "number",
                                "description": "Net income available to common stockholders."
                              },
                              "preferred_dividends_impact": {
                                "type": "number",
                                "description": "Preferred dividends deducted from net income."
                              },
                              "consolidated_income": {
                                "type": "number",
                                "description": "Consolidated net income."
                              },
                              "earnings_per_share": {
                                "type": "number",
                                "description": "Basic earnings per share."
                              },
                              "earnings_per_share_diluted": {
                                "type": "number",
                                "description": "Diluted earnings per share."
                              },
                              "dividends_per_common_share": {
                                "type": "number",
                                "description": "Dividends declared per common share."
                              },
                              "weighted_average_shares": {
                                "type": "number",
                                "description": "Weighted-average shares outstanding (basic)."
                              },
                              "weighted_average_shares_diluted": {
                                "type": "number",
                                "description": "Weighted-average diluted shares outstanding."
                              }
                            },
                            "additionalProperties": true
                          },
                          "description": "Income statement rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM period."
                        },
                        "balance_sheets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "report_period": {
                                "type": "string",
                                "format": "date",
                                "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                              },
                              "total_assets": {
                                "type": "number",
                                "description": "Total assets."
                              },
                              "total_debt": {
                                "type": "number",
                                "description": "Total debt."
                              },
                              "ticker": {
                                "type": "string",
                                "description": "Company ticker for this row (e.g. AAPL)."
                              },
                              "fiscal_period": {
                                "type": "string",
                                "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                              },
                              "period": {
                                "type": "string",
                                "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                              },
                              "currency": {
                                "type": "string",
                                "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                              },
                              "accession_number": {
                                "type": "string",
                                "description": "SEC accession number of the filing this period was taken from."
                              },
                              "filing_url": {
                                "type": "string",
                                "description": "Link to the SEC filing (or filing index) for this period."
                              },
                              "current_assets": {
                                "type": "number",
                                "description": "Current assets."
                              },
                              "cash_and_equivalents": {
                                "type": "number",
                                "description": "Cash and cash equivalents."
                              },
                              "inventory": {
                                "type": "number",
                                "description": "Inventory."
                              },
                              "current_investments": {
                                "type": "number",
                                "description": "Current investments."
                              },
                              "trade_and_non_trade_receivables": {
                                "type": "number",
                                "description": "Trade and non-trade receivables."
                              },
                              "non_current_assets": {
                                "type": "number",
                                "description": "Non-current assets."
                              },
                              "property_plant_and_equipment": {
                                "type": "number",
                                "description": "Property, plant, and equipment."
                              },
                              "goodwill_and_intangible_assets": {
                                "type": "number",
                                "description": "Goodwill and intangible assets."
                              },
                              "investments": {
                                "type": "number",
                                "description": "Investments."
                              },
                              "non_current_investments": {
                                "type": "number",
                                "description": "Non-current investments."
                              },
                              "tax_assets": {
                                "type": "number",
                                "description": "Tax assets."
                              },
                              "total_liabilities": {
                                "type": "number",
                                "description": "Total liabilities."
                              },
                              "current_liabilities": {
                                "type": "number",
                                "description": "Current liabilities."
                              },
                              "current_debt": {
                                "type": "number",
                                "description": "Current portion of debt."
                              },
                              "trade_and_non_trade_payables": {
                                "type": "number",
                                "description": "Trade and non-trade payables."
                              },
                              "deferred_revenue": {
                                "type": "number",
                                "description": "Deferred revenue."
                              },
                              "deposit_liabilities": {
                                "type": "number",
                                "description": "Deposit liabilities."
                              },
                              "non_current_liabilities": {
                                "type": "number",
                                "description": "Non-current liabilities."
                              },
                              "non_current_debt": {
                                "type": "number",
                                "description": "Non-current debt."
                              },
                              "tax_liabilities": {
                                "type": "number",
                                "description": "Tax liabilities."
                              },
                              "shareholders_equity": {
                                "type": "number",
                                "description": "Shareholders' equity."
                              },
                              "retained_earnings": {
                                "type": "number",
                                "description": "Retained earnings."
                              },
                              "accumulated_other_comprehensive_income": {
                                "type": "number",
                                "description": "Accumulated other comprehensive income."
                              },
                              "outstanding_shares": {
                                "type": "number",
                                "description": "Shares outstanding."
                              }
                            },
                            "additionalProperties": true
                          },
                          "description": "Balance sheet rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM snapshot."
                        },
                        "cash_flow_statements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "report_period": {
                                "type": "string",
                                "format": "date",
                                "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                              },
                              "free_cash_flow": {
                                "type": "number",
                                "description": "Free cash flow (operating cash flow minus capex)."
                              },
                              "ticker": {
                                "type": "string",
                                "description": "Company ticker for this row (e.g. AAPL)."
                              },
                              "fiscal_period": {
                                "type": "string",
                                "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                              },
                              "period": {
                                "type": "string",
                                "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                              },
                              "currency": {
                                "type": "string",
                                "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                              },
                              "accession_number": {
                                "type": "string",
                                "description": "SEC accession number of the filing this period was taken from."
                              },
                              "filing_url": {
                                "type": "string",
                                "description": "Link to the SEC filing (or filing index) for this period."
                              },
                              "net_income": {
                                "type": "number",
                                "description": "Net income for the period."
                              },
                              "depreciation_and_amortization": {
                                "type": "number",
                                "description": "Depreciation and amortization."
                              },
                              "share_based_compensation": {
                                "type": "number",
                                "description": "Share-based compensation."
                              },
                              "net_cash_flow_from_operations": {
                                "type": "number",
                                "description": "Net cash from operating activities."
                              },
                              "net_cash_flow_from_investing": {
                                "type": "number",
                                "description": "Net cash from investing activities."
                              },
                              "capital_expenditure": {
                                "type": "number",
                                "description": "Capital expenditure (typically negative)."
                              },
                              "property_plant_and_equipment": {
                                "type": "number",
                                "description": "Property, plant, and equipment."
                              },
                              "business_acquisitions_and_disposals": {
                                "type": "number",
                                "description": "Cash from business acquisitions and disposals."
                              },
                              "investment_acquisitions_and_disposals": {
                                "type": "number",
                                "description": "Cash from investment acquisitions and disposals."
                              },
                              "net_cash_flow_from_financing": {
                                "type": "number",
                                "description": "Net cash from financing activities."
                              },
                              "issuance_or_repayment_of_debt_securities": {
                                "type": "number",
                                "description": "Issuance or repayment of debt."
                              },
                              "issuance_or_purchase_of_equity_shares": {
                                "type": "number",
                                "description": "Issuance or repurchase of equity."
                              },
                              "dividends_and_other_cash_distributions": {
                                "type": "number",
                                "description": "Dividends and other cash distributions."
                              },
                              "change_in_cash_and_equivalents": {
                                "type": "number",
                                "description": "Change in cash and cash equivalents."
                              },
                              "effect_of_exchange_rate_changes": {
                                "type": "number",
                                "description": "Effect of exchange-rate changes on cash."
                              },
                              "ending_cash_balance": {
                                "type": "number",
                                "description": "Cash balance at period end."
                              }
                            },
                            "additionalProperties": true
                          },
                          "description": "Cash-flow statement rows for the ticker, newest report_period first. Each row is one annual, quarterly, or TTM period."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "financials": {
                    "income_statements": [
                      {
                        "report_period": "2026-06-27",
                        "revenue": 428300000000,
                        "net_income": 117400000000
                      }
                    ],
                    "balance_sheets": [
                      {
                        "report_period": "2026-06-27",
                        "total_assets": 352600000000,
                        "total_debt": 96800000000
                      }
                    ],
                    "cash_flow_statements": [
                      {
                        "report_period": "2026-06-27",
                        "free_cash_flow": 112700000000
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to pull all three statements for, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Shared cadence for income, balance sheet, and cash flow: `annual`, `quarterly` (or FMP's `quarter`), or `ttm`. `Q1`–`Q4` and `FY` are also accepted.",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter",
                "ttm",
                "Q1",
                "Q2",
                "Q3",
                "Q4",
                "FY"
              ],
              "default": "ttm"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many periods per statement to return (1–100), newest first.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          }
        ]
      }
    },
    "/get_segmented_financials": {
      "get": {
        "tags": [
          "Companies"
        ],
        "operationId": "get_segmented_financials",
        "summary": "Segmented Financials",
        "description": "Revenue by business segment and by geography per fiscal year. Quarterly segments are not available yet.",
        "responses": {
          "200": {
            "description": "Segmented Financials response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "segmented_financials": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "fiscal_period": {
                            "type": "string",
                            "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                          },
                          "fiscal_year": {
                            "type": "integer",
                            "description": "Fiscal year."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "income_statement": {
                            "type": "object",
                            "description": "Income-statement metric names the screener accepts.",
                            "properties": {
                              "revenue": {
                                "type": "object",
                                "description": "Total revenue for the period.",
                                "properties": {
                                  "product": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "label": {
                                          "type": "string",
                                          "description": "Human-readable label: a field name, or (BIS detail series) what tells this series apart."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                                        }
                                      },
                                      "additionalProperties": true
                                    },
                                    "description": "Product."
                                  },
                                  "segment": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "label": {
                                          "type": "string",
                                          "description": "Human-readable label: a field name, or (BIS detail series) what tells this series apart."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                                        }
                                      },
                                      "additionalProperties": true
                                    },
                                    "description": "Segment."
                                  }
                                },
                                "additionalProperties": true
                              }
                            },
                            "additionalProperties": true
                          },
                          "balance_sheet": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Balance-sheet metric names the screener accepts."
                          },
                          "cash_flow_statement": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Cash-flow metric names the screener accepts."
                          },
                          "revenue_by_segment": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "segment": {
                                  "type": "string",
                                  "description": "Segment."
                                },
                                "revenue": {
                                  "type": "number",
                                  "description": "Total revenue for the period."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Revenue by segment."
                          },
                          "revenue_by_geography": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "segment": {
                                  "type": "string",
                                  "description": "Segment."
                                },
                                "revenue": {
                                  "type": "number",
                                  "description": "Total revenue for the period."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Revenue by geography."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Segment revenue by period."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "segmented_financials": [
                    {
                      "ticker": "AAPL",
                      "report_period": "2026-09-26",
                      "fiscal_period": "FY2026",
                      "fiscal_year": 2026,
                      "period": "annual",
                      "currency": "USD",
                      "accession_number": "0000320193-26-000026",
                      "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
                      "income_statement": {
                        "revenue": {
                          "product": [
                            {
                              "label": "iPhone",
                              "value": 254098000000
                            },
                            {
                              "label": "Service",
                              "value": 123301000000
                            },
                            {
                              "label": "Mac",
                              "value": 37929000000
                            }
                          ],
                          "segment": [
                            {
                              "label": "Americas",
                              "value": 198083000000
                            },
                            {
                              "label": "Europe",
                              "value": 127604000000
                            },
                            {
                              "label": "Greater China",
                              "value": 82378000000
                            }
                          ]
                        }
                      },
                      "balance_sheet": null,
                      "cash_flow_statement": null,
                      "revenue_by_segment": [
                        {
                          "segment": "iPhone",
                          "revenue": 254098000000
                        }
                      ],
                      "revenue_by_geography": [
                        {
                          "segment": "Americas Segment",
                          "revenue": 198083000000
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "FMP `period` for segment revenue: `annual` (populated), `quarterly` or FMP's `quarter` (empty on Starter).",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter"
              ],
              "default": "annual"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the fiscal period that ends on this exact date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "required": false,
            "description": "How segment rows are shaped in the response. `flat` is the only available shape today.",
            "schema": {
              "type": "string",
              "default": "flat"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many fiscal years of segment data to return (1–100), newest first.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          }
        ]
      }
    },
    "/get_financial_metrics": {
      "get": {
        "tags": [
          "Metrics & prices"
        ],
        "operationId": "get_financial_metrics",
        "summary": "Financial Metrics",
        "description": "Financial metrics per period, newest first: valuation, profitability, efficiency, liquidity, leverage, growth and per-share values. Valuation uses the daily close on the filing date; ratios are decimals (`0.742` = 74.2%).",
        "responses": {
          "200": {
            "description": "Financial Metrics response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "financial_metrics": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "priced_on": {
                            "type": "string",
                            "format": "date",
                            "description": "Valuation date for the metrics row (filing date, else report period end)."
                          },
                          "price_bar": {
                            "type": "object",
                            "description": "Daily bar used for valuation: adjusted, open, high, low, close, volume, vwap, transactions, time; null when priced from the enterprise-values fallback only.",
                            "properties": {
                              "adjusted": {
                                "type": "boolean",
                                "description": "Whether the bars are split-adjusted (the adjusted argument)."
                              },
                              "open": {
                                "type": "number",
                                "description": "Open price of the bar or session."
                              },
                              "high": {
                                "type": "number",
                                "description": "High price of the bar or session."
                              },
                              "low": {
                                "type": "number",
                                "description": "Low price of the bar or session."
                              },
                              "close": {
                                "type": "number",
                                "description": "Close price of the bar. In multi-ticker mode, an array aligned with dates."
                              },
                              "volume": {
                                "type": "number",
                                "description": "Traded volume."
                              },
                              "vwap": {
                                "type": "number",
                                "description": "Volume-weighted average price of the bar or session; null when the provider has none."
                              },
                              "transactions": {
                                "type": "number",
                                "description": "Number of trades in the bar; null on the fallback feed and on rolled-up bars without it."
                              },
                              "time": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Timestamp of the observation or bar."
                              }
                            },
                            "additionalProperties": true
                          },
                          "market_cap": {
                            "type": "number",
                            "description": "Market capitalization in USD."
                          },
                          "enterprise_value": {
                            "type": "number",
                            "description": "Enterprise value in USD."
                          },
                          "price_to_earnings_ratio": {
                            "type": "number",
                            "description": "Price to earnings (P/E)."
                          },
                          "price_to_book_ratio": {
                            "type": "number",
                            "description": "Price to book (P/B)."
                          },
                          "price_to_sales_ratio": {
                            "type": "number",
                            "description": "Price to sales (P/S)."
                          },
                          "enterprise_value_to_ebitda_ratio": {
                            "type": "number",
                            "description": "EV / EBITDA."
                          },
                          "free_cash_flow_yield": {
                            "type": "number",
                            "description": "Free cash flow divided by market cap."
                          },
                          "peg_ratio": {
                            "type": "number",
                            "description": "P/E to growth (PEG)."
                          },
                          "gross_margin": {
                            "type": "number",
                            "description": "Gross profit / revenue."
                          },
                          "operating_margin": {
                            "type": "number",
                            "description": "Operating income / revenue."
                          },
                          "net_margin": {
                            "type": "number",
                            "description": "Net income / revenue."
                          },
                          "return_on_equity": {
                            "type": "number",
                            "description": "Return on equity."
                          },
                          "return_on_invested_capital": {
                            "type": "number",
                            "description": "Return on invested capital."
                          },
                          "current_ratio": {
                            "type": "number",
                            "description": "Current assets / current liabilities."
                          },
                          "debt_to_equity": {
                            "type": "number",
                            "description": "Total debt / shareholders' equity."
                          },
                          "revenue_growth": {
                            "type": "number",
                            "description": "Year-over-year revenue growth rate."
                          },
                          "earnings_per_share_growth": {
                            "type": "number",
                            "description": "Year-over-year EPS growth rate."
                          },
                          "earnings_per_share": {
                            "type": "number",
                            "description": "Basic earnings per share."
                          },
                          "stock_price": {
                            "type": "number",
                            "description": "Close used for valuation ratios (price_bar.close when a daily bar is available)."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Historical valuation, profitability, and growth metrics."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "financial_metrics": [
                    {
                      "ticker": "AAPL",
                      "report_period": "2025-09-27",
                      "period": "ttm",
                      "priced_on": "2025-10-31",
                      "price_bar": {
                        "adjusted": true,
                        "open": 270.1,
                        "high": 275.4,
                        "low": 269.8,
                        "close": 274.2,
                        "volume": 51200300,
                        "vwap": 273.51,
                        "transactions": 612004,
                        "time": "2025-10-31"
                      },
                      "market_cap": 3980000000000,
                      "enterprise_value": 3920000000000,
                      "price_to_earnings_ratio": 34.1,
                      "price_to_book_ratio": 48.2,
                      "price_to_sales_ratio": 9.4,
                      "enterprise_value_to_ebitda_ratio": 26.5,
                      "free_cash_flow_yield": 0.028,
                      "peg_ratio": 2.1,
                      "gross_margin": 0.462,
                      "operating_margin": 0.312,
                      "net_margin": 0.259,
                      "return_on_equity": 1.45,
                      "return_on_invested_capital": 0.52,
                      "current_ratio": 0.92,
                      "debt_to_equity": 1.8,
                      "revenue_growth": 0.06,
                      "earnings_per_share_growth": 0.08,
                      "earnings_per_share": 7.45,
                      "stock_price": 274.2
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Metrics cadence: `annual`, `quarterly` (or FMP's `quarter`), or `ttm`. Prefer `ttm` for comparable valuation ratios — quarterly ratios use a single quarter’s earnings. `Q1`–`Q4` and `FY` are also accepted (same FMP slices as statements).",
            "schema": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "quarter",
                "ttm",
                "Q1",
                "Q2",
                "Q3",
                "Q4",
                "FY"
              ],
              "default": "ttm"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the metrics period that ends on this exact date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "adjusted",
            "in": "query",
            "required": false,
            "description": "Whether the valuation price bars behind the ratios are split-adjusted. `false` requests unadjusted bars; secondary-quote prices stay split-adjusted.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many metric periods to return (1–100), newest first, after date filters.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          }
        ]
      }
    },
    "/get_financial_metrics_snapshot": {
      "get": {
        "tags": [
          "Metrics & prices"
        ],
        "operationId": "get_financial_metrics_snapshot",
        "summary": "Metrics Snapshot",
        "description": "Current financial metrics from the latest TTM statements at the latest (15-minute delayed) price.",
        "responses": {
          "200": {
            "description": "Metrics Snapshot response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot": {
                      "type": "object",
                      "description": "Latest-point snapshot object.",
                      "properties": {
                        "ticker": {
                          "type": "string",
                          "description": "Company ticker for this row (e.g. AAPL)."
                        },
                        "market_cap": {
                          "type": "number",
                          "description": "Market capitalization in USD."
                        },
                        "price_to_earnings_ratio": {
                          "type": "number",
                          "description": "Price to earnings (P/E)."
                        },
                        "dividend_yield": {
                          "type": "number",
                          "description": "Dividend yield as a decimal."
                        },
                        "gross_margin": {
                          "type": "number",
                          "description": "Gross profit / revenue."
                        },
                        "net_margin": {
                          "type": "number",
                          "description": "Net income / revenue."
                        },
                        "return_on_equity": {
                          "type": "number",
                          "description": "Return on equity."
                        },
                        "revenue_growth": {
                          "type": "number",
                          "description": "Year-over-year revenue growth rate."
                        },
                        "free_cash_flow_yield": {
                          "type": "number",
                          "description": "Free cash flow divided by market cap."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "snapshot": {
                    "ticker": "NVDA",
                    "market_cap": 4520000000000,
                    "price_to_earnings_ratio": 42.3,
                    "dividend_yield": 0.0002,
                    "gross_margin": 0.742,
                    "net_margin": 0.548,
                    "return_on_equity": 0.94,
                    "revenue_growth": 0.47,
                    "free_cash_flow_yield": 0.02
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker for a single latest metrics snapshot, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_stock_price": {
      "get": {
        "tags": [
          "Metrics & prices"
        ],
        "operationId": "get_stock_price",
        "summary": "Stock Price",
        "description": "Latest price snapshot (15-minute delayed). Returns today's session (open, high, low, volume, VWAP), the previous session (`previous_*`), the last trade, bid/ask, the latest minute bar (`minute_*`) and `fmv`.",
        "responses": {
          "200": {
            "description": "Stock Price response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot": {
                      "type": "object",
                      "description": "Latest-point snapshot object.",
                      "properties": {
                        "ticker": {
                          "type": "string",
                          "description": "Company ticker for this row (e.g. AAPL)."
                        },
                        "price": {
                          "type": "number",
                          "description": "Last price, or alias of stock_price in the screener."
                        },
                        "day_change": {
                          "type": "number",
                          "description": "Price change versus the previous close."
                        },
                        "day_change_percent": {
                          "type": "number",
                          "description": "Percent change versus the previous close."
                        },
                        "open": {
                          "type": "number",
                          "description": "Open price of the bar or session."
                        },
                        "high": {
                          "type": "number",
                          "description": "High price of the bar or session."
                        },
                        "low": {
                          "type": "number",
                          "description": "Low price of the bar or session."
                        },
                        "volume": {
                          "type": "number",
                          "description": "Traded volume."
                        },
                        "vwap": {
                          "type": "number",
                          "description": "Volume-weighted average price of the bar or session; null when the provider has none."
                        },
                        "day_transactions": {
                          "type": "number",
                          "description": "Trades so far today; null when not provided."
                        },
                        "day_average_volume": {
                          "type": "number",
                          "description": "Average volume of the day object; null when not provided."
                        },
                        "previous_close": {
                          "type": "number",
                          "description": "Prior session close."
                        },
                        "previous_open": {
                          "type": "number",
                          "description": "Prior session open; null on the fallback feed."
                        },
                        "previous_high": {
                          "type": "number",
                          "description": "Prior session high; null on the fallback feed."
                        },
                        "previous_low": {
                          "type": "number",
                          "description": "Prior session low; null on the fallback feed."
                        },
                        "previous_volume": {
                          "type": "number",
                          "description": "Prior session volume; null on the fallback feed."
                        },
                        "previous_vwap": {
                          "type": "number",
                          "description": "Prior session volume-weighted average price; null on the fallback feed."
                        },
                        "last_trade_size": {
                          "type": "number",
                          "description": "Shares in the last trade; null when no last trade is available."
                        },
                        "last_trade_exchange": {
                          "type": "integer",
                          "description": "Exchange id of the last trade; null when no last trade is available."
                        },
                        "last_trade_conditions": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "description": "Condition codes of the last trade; null when no last trade is available."
                        },
                        "bid": {
                          "type": "number",
                          "description": "Bid price: option contract bid, or the stock's last quote bid (null when quotes are unavailable)."
                        },
                        "ask": {
                          "type": "number",
                          "description": "Ask price: option contract ask, or the stock's last quote ask (null when quotes are unavailable)."
                        },
                        "bid_size": {
                          "type": "number",
                          "description": "Shares at the bid; null when quotes are unavailable."
                        },
                        "ask_size": {
                          "type": "number",
                          "description": "Shares at the ask; null when quotes are unavailable."
                        },
                        "minute_open": {
                          "type": "number",
                          "description": "Open of the latest minute bar; null on the fallback feed."
                        },
                        "minute_high": {
                          "type": "number",
                          "description": "High of the latest minute bar; null on the fallback feed."
                        },
                        "minute_low": {
                          "type": "number",
                          "description": "Low of the latest minute bar; null on the fallback feed."
                        },
                        "minute_close": {
                          "type": "number",
                          "description": "Close of the latest minute bar; null on the fallback feed."
                        },
                        "minute_volume": {
                          "type": "number",
                          "description": "Volume of the latest minute bar; null on the fallback feed."
                        },
                        "minute_vwap": {
                          "type": "number",
                          "description": "VWAP of the latest minute bar; null on the fallback feed."
                        },
                        "minute_transactions": {
                          "type": "number",
                          "description": "Trades in the latest minute bar; null on the fallback feed."
                        },
                        "minute_accumulated_volume": {
                          "type": "number",
                          "description": "Session volume accumulated up to the latest minute bar; null on the fallback feed."
                        },
                        "fmv": {
                          "type": "number",
                          "description": "Fair market value; null when unavailable."
                        },
                        "time": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Timestamp of the observation or bar."
                        },
                        "time_milliseconds": {
                          "type": "integer",
                          "description": "Unix time of the snapshot in milliseconds."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "snapshot": {
                    "ticker": "AAPL",
                    "price": 342.84,
                    "day_change": -0.62,
                    "day_change_percent": -0.18,
                    "open": 340.775,
                    "high": 346,
                    "low": 340.115,
                    "volume": 34450910,
                    "vwap": 343.0342,
                    "day_transactions": null,
                    "day_average_volume": null,
                    "previous_close": 343.46,
                    "previous_open": 341.2,
                    "previous_high": 344.9,
                    "previous_low": 339.8,
                    "previous_volume": 41200300,
                    "previous_vwap": 342.7611,
                    "last_trade_size": 100,
                    "last_trade_exchange": 4,
                    "last_trade_conditions": [
                      12,
                      37
                    ],
                    "bid": null,
                    "ask": null,
                    "bid_size": null,
                    "ask_size": null,
                    "minute_open": 342.8,
                    "minute_high": 342.9,
                    "minute_low": 342.75,
                    "minute_close": 342.84,
                    "minute_volume": 18450,
                    "minute_vwap": 342.8213,
                    "minute_transactions": 112,
                    "minute_accumulated_volume": 34450910,
                    "fmv": null,
                    "time": "2026-10-19T21:30:01.006000Z",
                    "time_milliseconds": 1792445401006
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker for the latest delayed quote snapshot, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_stock_prices": {
      "get": {
        "tags": [
          "Metrics & prices"
        ],
        "operationId": "get_stock_prices",
        "summary": "Historical Prices",
        "description": "Historical OHLCV bars with VWAP and trade count, newest first, split-adjusted by default and 15-minute delayed. Paged like BIS (500 bars).",
        "responses": {
          "200": {
            "description": "Historical Prices response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ticker": {
                      "type": "string",
                      "description": "Company ticker for this row (e.g. AAPL)."
                    },
                    "interval": {
                      "type": "string",
                      "description": "Bar size: second, minute, hour, day, week, month, quarter, or year."
                    },
                    "adjusted": {
                      "type": "boolean",
                      "description": "Whether the bars are split-adjusted (the adjusted argument)."
                    },
                    "prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "open": {
                            "type": "number",
                            "description": "Open price of the bar or session."
                          },
                          "high": {
                            "type": "number",
                            "description": "High price of the bar or session."
                          },
                          "low": {
                            "type": "number",
                            "description": "Low price of the bar or session."
                          },
                          "close": {
                            "type": "number",
                            "description": "Close price of the bar. In multi-ticker mode, an array aligned with dates."
                          },
                          "volume": {
                            "type": "number",
                            "description": "Traded volume."
                          },
                          "vwap": {
                            "type": "number",
                            "description": "Volume-weighted average price of the bar or session; null when the provider has none."
                          },
                          "transactions": {
                            "type": "number",
                            "description": "Number of trades in the bar; null on the fallback feed and on rolled-up bars without it."
                          },
                          "time": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Timestamp of the observation or bar."
                          },
                          "otc": {
                            "type": "boolean",
                            "description": "True when the bar is marked as OTC. False on listed bars; null on the fallback feed."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "OHLCV bars for a single ticker, newest first, one page."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "ticker": "AAPL",
                  "interval": "day",
                  "adjusted": true,
                  "prices": [
                    {
                      "ticker": "AAPL",
                      "open": 262.11,
                      "high": 264.4,
                      "low": 260.8,
                      "close": 263.55,
                      "volume": 41200300,
                      "vwap": 262.9134,
                      "transactions": 512340,
                      "time": "2026-10-27"
                    }
                  ],
                  "page": 1,
                  "pages": 14,
                  "count": 500,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/get_stock_prices?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First session date to include. With only `end_date`, defaults to the trailing year. Second bars are capped at 3 days per call.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "365 days before `end_date`"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last session date to include. Future dates are treated as today.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today (US Eastern)"
            }
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Single ticker for the bar history, e.g. `MSFT`. Use this or `tickers`, not both for conflicting requests.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "description": "Batch of up to 50 tickers. Returns daily bars only, grouped as one array per ticker.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bar size for the series (e.g. `day`, `minute`). With `tickers`, only `day` is allowed.",
            "schema": {
              "type": "string",
              "enum": [
                "second",
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "default": "day"
            }
          },
          {
            "name": "interval_multiplier",
            "in": "query",
            "required": false,
            "description": "How many `interval` units make one bar (e.g. `5` with `minute` → 5-minute bars).",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "adjusted",
            "in": "query",
            "required": false,
            "description": "Whether bars are split-adjusted. `false` returns unadjusted prices (cached separately). Secondary-quote bars are always split-adjusted, so `adjusted=false` only holds while the primary quote answers. Single-ticker only; rejected with `tickers`.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page to fetch (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Continue from `next_cursor` of the previous page; other arguments are then ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "When using `tickers`, which OHLCV fields to include on each bar (e.g. `close`).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "high",
                  "low",
                  "close",
                  "volume"
                ]
              },
              "default": "[\"close\"]"
            }
          }
        ]
      }
    },
    "/get_news": {
      "get": {
        "tags": [
          "Metrics & prices"
        ],
        "operationId": "get_news",
        "summary": "News",
        "description": "Recent news about a company, or the latest market-moving news when no ticker is given. Each article has its id, author, image, keywords, AMP URL and the publisher's homepage, logo and favicon (null where unavailable).",
        "responses": {
          "200": {
            "description": "News response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "as_of": {
                      "type": "string",
                      "description": "When the data was current: in GPU prices, when the GPU index generated the print behind the day's value (UTC, ISO 8601); in rankings snapshots, an object of as-of dates and context."
                    },
                    "news": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "id": {
                            "type": "string",
                            "description": "Id."
                          },
                          "title": {
                            "type": "string",
                            "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                          },
                          "author": {
                            "type": "string",
                            "description": "Author."
                          },
                          "source": {
                            "type": "string",
                            "description": "Publisher or official source; for a FRED series, the originating agency."
                          },
                          "url": {
                            "type": "string",
                            "description": "Link to the source document or article."
                          },
                          "amp_url": {
                            "type": "string",
                            "description": "Amp url."
                          },
                          "image_url": {
                            "type": "string",
                            "description": "Image url."
                          },
                          "summary": {
                            "type": "string",
                            "description": "Short summary of the payload."
                          },
                          "keywords": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Keywords."
                          },
                          "tickers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Ticker symbols in this payload."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "publisher_homepage_url": {
                            "type": "string",
                            "description": "Publisher homepage url."
                          },
                          "publisher_logo_url": {
                            "type": "string",
                            "description": "Publisher logo url."
                          },
                          "publisher_favicon_url": {
                            "type": "string",
                            "description": "Publisher favicon url."
                          },
                          "insights": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "ticker": {
                                  "type": "string",
                                  "description": "Company ticker for this row (e.g. AAPL)."
                                },
                                "sentiment": {
                                  "type": "string",
                                  "description": "Sentiment."
                                },
                                "sentiment_reasoning": {
                                  "type": "string",
                                  "description": "Sentiment reasoning."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "News sentiment per ticker (ticker, sentiment, sentiment_reasoning). Null when the article has none."
                          },
                          "datetime_et": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Timestamp in US Eastern time."
                          },
                          "is_premarket": {
                            "type": "boolean",
                            "description": "True if the item is before the regular session."
                          },
                          "types": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Headline or event classes."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "News articles, newest first."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Short reasons or caveats."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "as_of": "2026-10-19T08:05-04:00",
                  "news": [
                    {
                      "ticker": "MU",
                      "id": "8ec638777ca03b553ae516761c2a22ba2fdd2f37befae3ab6fdab74e9e5193eb",
                      "title": "Micron raises fiscal Q1 guidance on HBM demand",
                      "author": "Sam Boughedda",
                      "source": "Reuters",
                      "url": "https://example.com/news/micron-guidance",
                      "amp_url": "https://m.example.com/news/micron-guidance?ampMode=1",
                      "image_url": "https://example.com/img/micron.jpg",
                      "summary": "Micron lifted its fiscal first-quarter outlook as HBM demand outpaces supply.",
                      "keywords": [
                        "Micron",
                        "HBM",
                        "guidance"
                      ],
                      "tickers": [
                        "MU"
                      ],
                      "date": "2026-10-19T07:12:00-04:00",
                      "publisher_homepage_url": "https://www.example.com/",
                      "publisher_logo_url": "https://example.com/logos/example.png",
                      "publisher_favicon_url": "https://example.com/favicons/example.ico",
                      "insights": [
                        {
                          "ticker": "MU",
                          "sentiment": "positive",
                          "sentiment_reasoning": "Micron lifted its outlook as HBM demand outpaces supply."
                        }
                      ],
                      "datetime_et": "2026-10-19T07:12:00-04:00",
                      "is_premarket": true,
                      "types": [
                        "guidance"
                      ]
                    },
                    {
                      "ticker": "MU",
                      "id": null,
                      "title": "Morgan Stanley lifts Micron target to $260",
                      "author": null,
                      "source": "Benzinga",
                      "url": "https://example.com/news/ms-micron-target",
                      "amp_url": null,
                      "image_url": null,
                      "keywords": null,
                      "tickers": [
                        "MU"
                      ],
                      "publisher_homepage_url": null,
                      "publisher_logo_url": null,
                      "publisher_favicon_url": null,
                      "insights": null,
                      "datetime_et": "2026-10-18T16:40:00-04:00",
                      "is_premarket": false,
                      "types": [
                        "target_change"
                      ],
                      "rating_change": [
                        {
                          "ticker": "MU",
                          "event_type": "target_change",
                          "firm": "Morgan Stanley",
                          "from_rating": "Overweight",
                          "to_rating": "Overweight",
                          "old_target": 235,
                          "new_target": 260,
                          "datetime_et": "2026-10-18T16:40-04:00",
                          "is_premarket": false
                        }
                      ]
                    }
                  ],
                  "notes": "Newest first. types are keyword classes of the headline. For typed analyst actions with timestamps use get_events (rating_change / target_change)."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Published on or before this date (UTC, `YYYY-MM-DD`, inclusive).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Restrict headlines to one company. Leave empty for broader market news.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "description": "Up to 20 tickers; articles are merged and ordered by publish time.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Published at or after this time (US Eastern if no timezone).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "description": "Latest publish time to include (US Eastern if no timezone is given).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "description": "Keep articles whose headline matches these topic tags (e.g. rating changes, guidance).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rating_change",
                  "target_change",
                  "earnings",
                  "guidance",
                  "mna",
                  "offering",
                  "legal",
                  "other"
                ]
              }
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "Sort direction for `sort`: `desc` newest first, `asc` oldest first.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Field used to order articles. Only `published_utc` is supported.",
            "schema": {
              "type": "string",
              "default": "published_utc"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many articles to return (1–1000).",
            "schema": {
              "type": "integer",
              "default": 5
            }
          }
        ]
      }
    },
    "/get_filings": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_filings",
        "summary": "Filings",
        "description": "A company's SEC filings, newest first: company name, form type, filing date, accession number and links (the filing index page and the full filing text). `report_date` is always `null`: the filings index does not carry the period of report (for a 10-K use `period_end` from `get_filing_items`).",
        "responses": {
          "200": {
            "description": "Filings response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "filings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "company_name": {
                            "type": "string",
                            "description": "Name of the company that filed (from the filings index); null when the fallback source has none."
                          },
                          "cik": {
                            "type": "string",
                            "description": "SEC Central Index Key."
                          },
                          "filing_type": {
                            "type": "string",
                            "description": "SEC form type, e.g. 10-K, 10-Q, 8-K."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "report_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Period the filing reports on; null in get_filings (the filings index does not carry it)."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "url": {
                            "type": "string",
                            "description": "Link to the source document or article."
                          },
                          "filing_text_url": {
                            "type": "string",
                            "description": "URL of the filing's full text (full submission); filing_url / url is the filing index page."
                          },
                          "accepted_date": {
                            "type": "string",
                            "description": "When the SEC accepted the filing. Null on the primary filings feed; set when the fallback feed is used."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "SEC filings, newest first."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "filings": [
                    {
                      "ticker": "NVDA",
                      "company_name": "NVIDIA CORP",
                      "cik": "1045810",
                      "filing_type": "10-Q",
                      "filing_date": "2026-08-27",
                      "report_date": "2026-07-26",
                      "accession_number": "0001045810-26-000164",
                      "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000164/0001045810-26-000164-index.htm",
                      "filing_text_url": "https://www.sec.gov/Archives/edgar/data/1045810/0001045810-26-000164.txt",
                      "accepted_date": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Company ticker, e.g. `AAPL`. Give `ticker` or `cik`; `ticker` wins if both are set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "required": false,
            "description": "SEC CIK, leading zeros optional (`320193` = `0000320193`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filing_type",
            "in": "query",
            "required": false,
            "description": "One form type, e.g. `10-K`, `8-K`, `DEF 14A`. `10-K` excludes `10-K/A`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filing_date_gte",
            "in": "query",
            "required": false,
            "description": "Filed on or after this date. Applied at the source, so a narrow window is cheap.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or before this day (point-in-time cutoff).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many filings to return (1–1000), newest first.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ]
      }
    },
    "/get_filing_items": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_filing_items",
        "summary": "Filing Items",
        "description": "Text of 10-K sections (Items 1 and 1A) or any 8-K item, e.g. `Item-1A` (Risk Factors).",
        "responses": {
          "200": {
            "description": "Filing Items response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "description": "Kind of payload, e.g. filing_items."
                    },
                    "ticker": {
                      "type": "string",
                      "description": "Company ticker for this row (e.g. AAPL)."
                    },
                    "company_name": {
                      "type": "string",
                      "description": "Name of the company that filed (from the filings index); null when the fallback source has none."
                    },
                    "cik": {
                      "type": "string",
                      "description": "SEC Central Index Key."
                    },
                    "filing_type": {
                      "type": "string",
                      "description": "SEC form type, e.g. 10-K, 10-Q, 8-K."
                    },
                    "accession_number": {
                      "type": "string",
                      "description": "SEC accession number of the filing this period was taken from."
                    },
                    "filing_url": {
                      "type": "string",
                      "description": "Link to the SEC filing (or filing index) for this period."
                    },
                    "filing_text_url": {
                      "type": "string",
                      "description": "URL of the filing's full text (full submission); filing_url / url is the filing index page."
                    },
                    "filing_date": {
                      "type": "string",
                      "format": "date",
                      "description": "Calendar day the SEC accepted the filing."
                    },
                    "period_end": {
                      "type": "string",
                      "format": "date",
                      "description": "Fiscal period end the filing covers."
                    },
                    "year": {
                      "type": "integer",
                      "description": "Calendar or filing year."
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "number": {
                            "type": "string",
                            "description": "Item identifier, e.g. Item-1A."
                          },
                          "title": {
                            "type": "string",
                            "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                          },
                          "section": {
                            "type": "string",
                            "description": "Source section key of a 10-K item, e.g. business or risk_factors."
                          },
                          "text": {
                            "type": "string",
                            "description": "Full section or document text."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Extracted filing sections."
                    },
                    "unavailable_items": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Requested items that cannot be extracted yet."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "resource": "filing_items",
                  "ticker": "NVDA",
                  "company_name": "NVIDIA CORP",
                  "cik": "0001045810",
                  "filing_type": "10-K",
                  "accession_number": "0001045810-26-000023",
                  "filing_url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000023/0001045810-26-000023-index.htm",
                  "filing_text_url": "https://www.sec.gov/Archives/edgar/data/1045810/0001045810-26-000023.txt",
                  "filing_date": "2026-02-25",
                  "period_end": "2026-01-25",
                  "year": 2026,
                  "items": [
                    {
                      "number": "Item 1A",
                      "title": "Risk Factors",
                      "section": "risk_factors",
                      "text": "Our business depends on our ability to anticipate customer needs ... (full section text)"
                    }
                  ],
                  "unavailable_items": []
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker whose filing items you want, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accession_number",
            "in": "query",
            "required": false,
            "description": "Exact 8-K accession from `get_filings`. Empty uses the latest 8-K.",
            "schema": {
              "type": "string",
              "default": "latest 8-K"
            }
          },
          {
            "name": "filing_type",
            "in": "query",
            "required": true,
            "description": "Which filing’s item text to extract: `10-K` (Business / Risk Factors) or `8-K` (itemized events). `10-Q` is not available yet.",
            "schema": {
              "type": "string",
              "enum": [
                "10-K",
                "10-Q",
                "8-K"
              ],
              "default": "8-K"
            }
          },
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "Specific items to return (e.g. `Item-1A`, `Item-2.02`). Empty returns all available items.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Fiscal year for a 10-K (e.g. `2025`). Empty uses the latest 10-K.",
            "schema": {
              "type": "integer",
              "default": "latest 10-K"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "10-Q quarter (1–4). Not available yet.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/list_filing_item_types": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "list_filing_item_types",
        "summary": "Filing Item Types",
        "description": "Item names that `get_filing_items` can extract, grouped by filing type, plus those not available yet. _No parameters._.",
        "responses": {
          "200": {
            "description": "Filing Item Types response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "not_available_yet": {
                      "type": "object",
                      "description": "Item types not extractable yet.",
                      "properties": {
                        "{filing_type}": {
                          "type": "object",
                          "description": "Items extractable for this SEC form type. The object key is the form (10-K, 10-Q, 8-K).",
                          "additionalProperties": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "10-K": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "10-K."
                    },
                    "10-Q": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "10-Q."
                    },
                    "8-K": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "8-K."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "10-K": [
                    "Item-1",
                    "Item-1A"
                  ],
                  "10-Q": [],
                  "8-K": [
                    "Item-1.01",
                    "Item-2.02",
                    "Item-5.02"
                  ],
                  "not_available_yet": {
                    "10-K": [
                      "Item-7",
                      "Item-7A",
                      "Item-8"
                    ],
                    "10-Q": [
                      "Item-1",
                      "Item-2",
                      "Item-3",
                      "Item-4"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "filing_type",
            "in": "query",
            "required": false,
            "description": "Optional form filter (`10-K`, `10-Q`, or `8-K`). Empty lists every item type this API can return.",
            "schema": {
              "type": "string",
              "enum": [
                "10-K",
                "10-Q",
                "8-K"
              ]
            }
          }
        ]
      }
    },
    "/get_earnings": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_earnings",
        "summary": "Earnings",
        "description": "With a ticker: the last four quarters (revenue, EPS, margins, cash flow, YoY changes, consensus and surprises, annual block at fiscal year ends) and the next report's consensus. Without a ticker: the latest earnings reported across the market.",
        "responses": {
          "200": {
            "description": "Earnings response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "earnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "fiscal_period": {
                            "type": "string",
                            "description": "Fiscal label for the row, e.g. 2026-Q3 or FY2026."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "source_type": {
                            "type": "string",
                            "description": "Source type."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "filing_datetime": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Filing datetime."
                          },
                          "filing_window": {
                            "type": "string",
                            "description": "Filing window."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "quarterly": {
                            "type": "object",
                            "description": "Quarterly.",
                            "properties": {
                              "revenue": {
                                "type": "number",
                                "description": "Total revenue for the period."
                              },
                              "revenue_yoy_chg": {
                                "type": "number",
                                "description": "Revenue yoy chg."
                              },
                              "revenue_chg": {
                                "type": "number",
                                "description": "Revenue chg."
                              },
                              "estimated_revenue": {
                                "type": "integer",
                                "description": "Estimated revenue."
                              },
                              "revenue_surprise": {
                                "type": "string",
                                "description": "Revenue surprise."
                              },
                              "revenue_surprise_pct": {
                                "type": "number",
                                "description": "Revenue surprise versus consensus, percent."
                              },
                              "earnings_per_share": {
                                "type": "number",
                                "description": "Basic earnings per share."
                              },
                              "earnings_per_share_yoy_chg": {
                                "type": "number",
                                "description": "Earnings per share yoy chg."
                              },
                              "earnings_per_share_chg": {
                                "type": "number",
                                "description": "Earnings per share chg."
                              },
                              "estimated_earnings_per_share": {
                                "type": "number",
                                "description": "Estimated earnings per share."
                              },
                              "eps_surprise": {
                                "type": "string",
                                "description": "Eps surprise."
                              },
                              "eps_surprise_pct": {
                                "type": "number",
                                "description": "EPS surprise versus consensus, percent."
                              },
                              "operating_margin": {
                                "type": "number",
                                "description": "Operating income / revenue."
                              },
                              "operating_margin_yoy_chg_bps": {
                                "type": "number",
                                "description": "Operating margin yoy chg bps."
                              },
                              "operating_margin_chg_bps": {
                                "type": "number",
                                "description": "Operating margin chg bps."
                              },
                              "free_cash_flow": {
                                "type": "number",
                                "description": "Free cash flow (operating cash flow minus capex)."
                              },
                              "free_cash_flow_yoy_chg": {
                                "type": "number",
                                "description": "Free cash flow yoy chg."
                              }
                            },
                            "additionalProperties": true
                          },
                          "signals": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "Discriminating type for this object."
                                },
                                "metric": {
                                  "type": "string",
                                  "description": "Metric."
                                },
                                "period": {
                                  "type": "string",
                                  "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                                },
                                "headline": {
                                  "type": "string",
                                  "description": "Headline."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Signals."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Earnings."
                    },
                    "next_consensus": {
                      "type": "object",
                      "description": "Next consensus.",
                      "properties": {
                        "report_date": {
                          "type": "string",
                          "format": "date",
                          "description": "Period the filing reports on; null in get_filings (the filings index does not carry it)."
                        },
                        "eps_estimated": {
                          "type": "number",
                          "description": "Eps estimated."
                        },
                        "revenue_estimated": {
                          "type": "integer",
                          "description": "Revenue estimated."
                        },
                        "report_time": {
                          "type": "string",
                          "description": "Report time."
                        },
                        "last_updated": {
                          "type": "string",
                          "format": "date",
                          "description": "When FRED last updated the series."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "earnings": [
                    {
                      "ticker": "NFLX",
                      "report_period": "2026-09-30",
                      "fiscal_period": "2026-Q3",
                      "currency": "USD",
                      "source_type": "10-Q",
                      "filing_date": "2026-10-21",
                      "filing_datetime": "2026-10-21T16:01:46-04:00",
                      "filing_window": "AFTER_HOURS",
                      "accession_number": "0001065280-26-000291",
                      "filing_url": "https://www.sec.gov/Archives/edgar/data/1065280/000106528026000291/0001065280-26-000291-index.htm",
                      "quarterly": {
                        "revenue": 12874176000,
                        "revenue_yoy_chg": 0.1185,
                        "revenue_chg": 0.025,
                        "estimated_revenue": 12869330000,
                        "revenue_surprise": "BEAT",
                        "revenue_surprise_pct": 0.0004,
                        "earnings_per_share": 0.87,
                        "earnings_per_share_yoy_chg": 0.4746,
                        "earnings_per_share_chg": 0.0875,
                        "estimated_earnings_per_share": 0.82,
                        "eps_surprise": "BEAT",
                        "eps_surprise_pct": 0.061,
                        "operating_margin": 0.3463,
                        "operating_margin_yoy_chg_bps": 641.2,
                        "operating_margin_chg_bps": 125.1,
                        "free_cash_flow": 2883513000,
                        "free_cash_flow_yoy_chg": 0.0838
                      },
                      "signals": [
                        {
                          "type": "EPS_BEAT",
                          "metric": "earnings_per_share",
                          "period": "2026-Q3",
                          "headline": "EPS of $0.87 beat estimate of $0.82 by 6.1%"
                        }
                      ]
                    }
                  ],
                  "next_consensus": {
                    "report_date": "2027-01-19",
                    "eps_estimated": 0.68,
                    "revenue_estimated": 13444200000,
                    "report_time": null,
                    "last_updated": "2026-11-11"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "One company: last 4 quarters and next consensus. Empty: market-wide results of the last 7 days.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_reactions",
            "in": "query",
            "required": false,
            "description": "With `ticker`: add the price reaction to the last 8 reports.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "include_report_times",
            "in": "query",
            "required": false,
            "description": "Add the report time as `report_time`; `last_updated` is always kept.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/get_insider_trades": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_insider_trades",
        "summary": "Insider Trades",
        "description": "Insider trades (SEC Form 4), newest first: insider name and title, transaction date, type, shares, price, value and shares owned after.",
        "responses": {
          "200": {
            "description": "Insider Trades response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "insider_trades": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "name": {
                            "type": "string",
                            "description": "Company, person, security, or object name."
                          },
                          "title": {
                            "type": "string",
                            "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                          },
                          "is_board_director": {
                            "type": "boolean",
                            "description": "True if the insider is a director."
                          },
                          "transaction_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Trade date."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "transaction_type": {
                            "type": "string",
                            "description": "Form 4 transaction code and label."
                          },
                          "transaction_shares": {
                            "type": "number",
                            "description": "Shares transacted. Negative is a sale."
                          },
                          "transaction_price_per_share": {
                            "type": "number",
                            "description": "Price per share."
                          },
                          "transaction_value": {
                            "type": "number",
                            "description": "Notional value of the transaction."
                          },
                          "shares_owned_after_transaction": {
                            "type": "number",
                            "description": "Shares beneficially owned after the trade."
                          },
                          "security_title": {
                            "type": "string",
                            "description": "Security type, e.g. Common Stock."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Form 4 trades, newest first."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "insider_trades": [
                    {
                      "ticker": "AAPL",
                      "name": "Timothy D Cook",
                      "title": "Chief Executive Officer",
                      "is_board_director": true,
                      "transaction_date": "2026-10-02",
                      "filing_date": "2026-10-03",
                      "transaction_type": "S - Sale",
                      "transaction_shares": -108136,
                      "transaction_price_per_share": 338.12,
                      "transaction_value": -36562944,
                      "shares_owned_after_transaction": 3280295,
                      "security_title": "Common Stock"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Insider name, any word order, e.g. `cook` or `Timothy Cook`. Applied after the search.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filing_date",
            "in": "query",
            "required": false,
            "description": "Return only periods whose SEC filing date equals this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or before this day (point-in-time cutoff).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "reporting_cik",
            "in": "query",
            "required": false,
            "description": "CIK of the reporting insider.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company_cik",
            "in": "query",
            "required": false,
            "description": "CIK of the issuer.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transaction_type",
            "in": "query",
            "required": false,
            "description": "Transaction type, e.g. `S-Sale`, `P-Purchase`, `A-Award`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ]
      }
    },
    "/get_insider_ownership": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_insider_ownership",
        "summary": "Insider Ownership",
        "description": "Insider holdings from SEC Forms 3 (initial) and 5 (annual): common shares, options, RSUs, one row per holding per filing, newest first. Form 5 transactions are left out.",
        "responses": {
          "200": {
            "description": "Insider Ownership response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "insider_ownership": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "issuer": {
                            "type": "string",
                            "description": "Issuer."
                          },
                          "name": {
                            "type": "string",
                            "description": "Company, person, security, or object name."
                          },
                          "reporting_cik": {
                            "type": "string",
                            "description": "Reporting cik."
                          },
                          "title": {
                            "type": "string",
                            "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                          },
                          "is_board_director": {
                            "type": "boolean",
                            "description": "True if the insider is a director."
                          },
                          "is_officer": {
                            "type": "boolean",
                            "description": "Is officer."
                          },
                          "is_ten_percent_owner": {
                            "type": "boolean",
                            "description": "Is ten percent owner."
                          },
                          "form_type": {
                            "type": "string",
                            "description": "SEC form as filed, including amendment suffixes."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "as_of_date": {
                            "type": "string",
                            "format": "date",
                            "description": "periodOfReport on the Form 3 or Form 5."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "holding_type": {
                            "type": "string",
                            "description": "common (non-derivative table) or derivative."
                          },
                          "security_title": {
                            "type": "string",
                            "description": "Security type, e.g. Common Stock."
                          },
                          "shares_owned": {
                            "type": "number",
                            "description": "Shares owned after the holding, from the ownership XML."
                          },
                          "value_owned": {
                            "type": "number",
                            "description": "Value owned after the holding, when the form reports one."
                          },
                          "direct_or_indirect": {
                            "type": "string",
                            "description": "D (direct) or I (indirect)."
                          },
                          "nature_of_ownership": {
                            "type": "string",
                            "description": "How an indirect holding is owned, when the form says."
                          },
                          "conversion_or_exercise_price": {
                            "type": "number",
                            "description": "Derivative conversion or exercise price."
                          },
                          "exercise_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Derivative exercise date, when reported."
                          },
                          "expiration_date": {
                            "type": "string",
                            "description": "Expiration date."
                          },
                          "underlying_security_title": {
                            "type": "string",
                            "description": "Title of the security underlying a derivative holding."
                          },
                          "underlying_security_shares": {
                            "type": "number",
                            "description": "Shares of the underlying security."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Form 3 / Form 5 holdings, newest first."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "insider_ownership": [
                    {
                      "ticker": "AAPL",
                      "issuer": "Apple Inc.",
                      "name": "Kevan Parekh",
                      "reporting_cik": "0002036054",
                      "title": "Chief Financial Officer",
                      "is_board_director": false,
                      "is_officer": true,
                      "is_ten_percent_owner": false,
                      "form_type": "3",
                      "filing_date": "2026-01-06",
                      "as_of_date": "2026-01-01",
                      "accession_number": "0000320193-26-000004",
                      "holding_type": "derivative",
                      "security_title": "Restricted Stock Units",
                      "shares_owned": 142500,
                      "value_owned": null,
                      "direct_or_indirect": "D",
                      "nature_of_ownership": null,
                      "conversion_or_exercise_price": 0,
                      "exercise_date": null,
                      "expiration_date": null,
                      "underlying_security_title": "Common Stock",
                      "underlying_security_shares": 142500,
                      "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000004/wf-form3.xml"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Part of the insider's name, e.g. `cook`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "form_type",
            "in": "query",
            "required": false,
            "description": "Which ownership form to include: `3` for initial holdings, `5` for the annual statement; append `/A` for amendments.",
            "schema": {
              "type": "string",
              "enum": [
                "3",
                "3/A",
                "5",
                "5/A"
              ]
            }
          },
          {
            "name": "filing_date",
            "in": "query",
            "required": false,
            "description": "Return only periods whose SEC filing date equals this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_gt",
            "in": "query",
            "required": false,
            "description": "Keep periods filed strictly after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or before this day (point-in-time cutoff).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_lt",
            "in": "query",
            "required": false,
            "description": "Keep periods filed strictly before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ]
      }
    },
    "/get_beneficial_ownership": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_beneficial_ownership",
        "summary": "Beneficial Ownership",
        "description": "5%+ beneficial owners from Schedule 13D / 13G filings: reporting person, stake type, shares, percent of class, filing date and link. `form_type` is `SCHEDULE 13D` or `SCHEDULE 13G` (read from the filing URL).",
        "responses": {
          "200": {
            "description": "Beneficial Ownership response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "beneficial_owners": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "issuer_name": {
                            "type": "string",
                            "description": "OpenFIGI name of the mapped security, or the 13D/13G issuer name."
                          },
                          "issuer_cik": {
                            "type": "string",
                            "description": "Issuer cik."
                          },
                          "issuer_cusip": {
                            "type": "string",
                            "description": "Issuer cusip."
                          },
                          "filer_cik": {
                            "type": "string",
                            "description": "13F filer CIK."
                          },
                          "reporting_person_name": {
                            "type": "string",
                            "description": "Reporting person name."
                          },
                          "type_of_reporting_person": {
                            "type": "string",
                            "description": "Type of reporting person."
                          },
                          "citizenship_or_place_of_organization": {
                            "type": "string",
                            "description": "Citizenship or place of organization."
                          },
                          "form_type": {
                            "type": "string",
                            "description": "SEC form as filed, including amendment suffixes."
                          },
                          "type": {
                            "type": "string",
                            "description": "Discriminating type for this object."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "accepted_date": {
                            "type": "string",
                            "description": "When the SEC accepted the filing. Null on the primary filings feed; set when the fallback feed is used."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "sole_voting_power": {
                            "type": "integer",
                            "description": "Sole voting power."
                          },
                          "shared_voting_power": {
                            "type": "integer",
                            "description": "Shared voting power."
                          },
                          "sole_dispositive_power": {
                            "type": "integer",
                            "description": "Sole dispositive power."
                          },
                          "shared_dispositive_power": {
                            "type": "integer",
                            "description": "Shared dispositive power."
                          },
                          "aggregate_amount_beneficially_owned": {
                            "type": "integer",
                            "description": "Aggregate amount beneficially owned."
                          },
                          "percent_of_class": {
                            "type": "number",
                            "description": "Percent of the class owned."
                          },
                          "filing_url": {
                            "type": "string",
                            "description": "Link to the SEC filing (or filing index) for this period."
                          },
                          "security_class_title": {
                            "type": "string",
                            "description": "Security class title."
                          },
                          "reporting_person_cik": {
                            "type": "string",
                            "description": "Reporting person cik."
                          },
                          "is_amendment": {
                            "type": "boolean",
                            "description": "Is amendment."
                          },
                          "amendment_number": {
                            "type": "integer",
                            "description": "Amendment number."
                          },
                          "event_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Event date."
                          },
                          "purpose_of_transaction": {
                            "type": "string",
                            "description": "Purpose of transaction."
                          },
                          "rule_filed_under": {
                            "type": "string",
                            "description": "Rule filed under."
                          },
                          "is_latest": {
                            "type": "boolean",
                            "description": "Is latest."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Beneficial owners."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "beneficial_owners": [
                    {
                      "ticker": "AAPL",
                      "issuer_name": "Apple Inc.",
                      "issuer_cik": "0000320193",
                      "issuer_cusip": "037833100",
                      "filer_cik": "0000102909",
                      "reporting_person_name": "VANGUARD GROUP INC",
                      "type_of_reporting_person": "IA",
                      "citizenship_or_place_of_organization": "Pennsylvania",
                      "form_type": "SCHEDULE 13G/A",
                      "type": "passive",
                      "filing_date": "2026-02-13",
                      "accepted_date": "2026-02-13",
                      "accession_number": "0000102909-26-000412",
                      "sole_voting_power": 0,
                      "shared_voting_power": 0,
                      "sole_dispositive_power": 1371000000,
                      "shared_dispositive_power": 0,
                      "aggregate_amount_beneficially_owned": 1371000000,
                      "percent_of_class": 9.4,
                      "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000010290926000412/xslSCHEDULE_13G_X02/primary_doc.xml",
                      "security_class_title": "Common Stock",
                      "reporting_person_cik": null,
                      "is_amendment": true,
                      "amendment_number": 11,
                      "event_date": "2026-03-13",
                      "purpose_of_transaction": null,
                      "rule_filed_under": "Rule 13d-1(b)",
                      "is_latest": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Asset / security type filter, e.g. `CS` (common stock) or `ETF`.",
            "schema": {
              "type": "string",
              "enum": [
                "activist",
                "passive"
              ]
            }
          },
          {
            "name": "filer_cik",
            "in": "query",
            "required": false,
            "description": "Owner's CIK. Not available yet: use `ticker`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filing_date",
            "in": "query",
            "required": false,
            "description": "Return only periods whose SEC filing date equals this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_gte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or after this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filing_date_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods filed on or before this day (point-in-time cutoff).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "history",
            "in": "query",
            "required": false,
            "description": "`true`: every amendment instead of each owner's latest filing.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ]
      }
    },
    "/get_beneficial_owners": {
      "get": {
        "tags": [
          "Filings & insiders"
        ],
        "operationId": "get_beneficial_owners",
        "summary": "Beneficial Owners",
        "description": "Directory of 13D/13G filers. Use `get_beneficial_ownership` with a ticker for now.",
        "responses": {
          "200": {
            "description": "Beneficial Owners response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean",
                      "description": "False when this dataset is reserved and not shipped yet."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable status or next-step text."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "available": false,
                  "message": "Not available yet; use get_beneficial_ownership with a ticker."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "x-available": false,
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Not available yet.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ]
      }
    },
    "/get_institutional_investors": {
      "get": {
        "tags": [
          "Institutional"
        ],
        "operationId": "get_institutional_investors",
        "summary": "Institutional Investors",
        "description": "Institutional investors (13F filers of the last four quarters) with CIK and latest name, sorted by name (max 1,000). Use it to find `filer_cik`.",
        "responses": {
          "200": {
            "description": "Institutional Investors response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "description": "Kind of payload, e.g. filing_items."
                    },
                    "investors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "cik": {
                            "type": "string",
                            "description": "SEC Central Index Key."
                          },
                          "name": {
                            "type": "string",
                            "description": "Company, person, security, or object name."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Investors."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "resource": "institutional_holdings",
                  "investors": [
                    {
                      "cik": "0001067983",
                      "name": "BERKSHIRE HATHAWAY INC"
                    },
                    {
                      "cik": "0001015867",
                      "name": "BERKSHIRE HATHAWAY LIFE INSURANCE CO OF NEBRASKA"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Start of the filer's name, e.g. `berkshire`. Max 1,000 results.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_institutional_holdings": {
      "get": {
        "tags": [
          "Institutional"
        ],
        "operationId": "get_institutional_holdings",
        "summary": "Institutional Holdings",
        "description": "13F holdings of an institution, largest first: security, ticker, shares and value per quarter. Empty dates: the latest quarter.",
        "responses": {
          "200": {
            "description": "Institutional Holdings response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "filer_cik": {
                      "type": "string",
                      "description": "13F filer CIK."
                    },
                    "institutional_holdings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "cusip": {
                            "type": "string",
                            "description": "CUSIP of the security as reported on the 13F."
                          },
                          "name_of_issuer": {
                            "type": "string",
                            "description": "Issuer name as reported on the 13F."
                          },
                          "report_period": {
                            "type": "string",
                            "format": "date",
                            "description": "Fiscal period end date (YYYY-MM-DD). For TTM rows this is the end of the latest quarter in the trailing twelve months."
                          },
                          "filing_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar day the SEC accepted the filing."
                          },
                          "form_type": {
                            "type": "string",
                            "description": "SEC form as filed, including amendment suffixes."
                          },
                          "accession_number": {
                            "type": "string",
                            "description": "SEC accession number of the filing this period was taken from."
                          },
                          "title_of_class": {
                            "type": "string",
                            "description": "Class of the security as reported, e.g. COM."
                          },
                          "put_call": {
                            "type": "string",
                            "description": "PUT or CALL for option positions; null for shares."
                          },
                          "shares": {
                            "type": "number",
                            "description": "Share count."
                          },
                          "value_usd": {
                            "type": "number",
                            "description": "Position value in USD."
                          },
                          "reported_price": {
                            "type": "number",
                            "description": "Value in USD divided by shares, to 2 decimals."
                          },
                          "shares_principal_amount_type": {
                            "type": "string",
                            "description": "SH (shares) or PRN (principal amount), from the 13F information table."
                          },
                          "investment_discretion": {
                            "type": "string",
                            "description": "SOLE, SHARED, or DEFINED, from the 13F information table."
                          },
                          "voting_authority_sole": {
                            "type": "number",
                            "description": "Shares the manager votes alone."
                          },
                          "voting_authority_shared": {
                            "type": "number",
                            "description": "Shares the manager votes with someone else."
                          },
                          "voting_authority_none": {
                            "type": "number",
                            "description": "Shares the manager does not vote."
                          },
                          "other_managers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Other managers named on that 13F row."
                          },
                          "issuer_name": {
                            "type": "string",
                            "description": "OpenFIGI name of the mapped security, or the 13D/13G issuer name."
                          },
                          "figi": {
                            "type": "string",
                            "description": "OpenFIGI FIGI for the CUSIP's US listing."
                          },
                          "composite_figi": {
                            "type": "string",
                            "description": "OpenFIGI composite FIGI."
                          },
                          "share_class_figi": {
                            "type": "string",
                            "description": "OpenFIGI share-class FIGI."
                          },
                          "security_type": {
                            "type": "string",
                            "description": "OpenFIGI security type, e.g. Common Stock."
                          },
                          "security_type_2": {
                            "type": "string",
                            "description": "OpenFIGI securityType2."
                          },
                          "security_description": {
                            "type": "string",
                            "description": "OpenFIGI security description."
                          },
                          "market_sector": {
                            "type": "string",
                            "description": "OpenFIGI market sector, e.g. Equity."
                          },
                          "exchange_code": {
                            "type": "string",
                            "description": "OpenFIGI exchange code. US for the listing we map."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "13F positions, newest quarter first, largest value first within a quarter."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "filer_cik": "0001067983",
                  "institutional_holdings": [
                    {
                      "ticker": "AAPL",
                      "cusip": "037833100",
                      "name_of_issuer": "APPLE INC",
                      "report_period": "2026-06-30",
                      "filing_date": "2026-08-14",
                      "form_type": "13F-HR",
                      "accession_number": "0000950123-26-008841",
                      "title_of_class": "COM",
                      "put_call": null,
                      "shares": 280000000,
                      "value_usd": 84560000000,
                      "reported_price": 302,
                      "shares_principal_amount_type": "SH",
                      "investment_discretion": "SOLE",
                      "voting_authority_sole": 280000000,
                      "voting_authority_shared": 0,
                      "voting_authority_none": 0,
                      "other_managers": [],
                      "issuer_name": "APPLE INC",
                      "figi": "BBG000B9XRY4",
                      "composite_figi": "BBG000B9XRY4",
                      "share_class_figi": "BBG001S5N8V8",
                      "security_type": "Common Stock",
                      "security_type_2": "Common Stock",
                      "security_description": "AAPL",
                      "market_sector": "Equity",
                      "exchange_code": "US"
                    },
                    {
                      "ticker": "AXP",
                      "cusip": "025816109",
                      "name_of_issuer": "AMERICAN EXPRESS CO",
                      "report_period": "2026-06-30",
                      "filing_date": "2026-08-14",
                      "form_type": "13F-HR",
                      "accession_number": "0000950123-26-008841",
                      "title_of_class": "COM",
                      "put_call": null,
                      "shares": 151610700,
                      "value_usd": 48170000000,
                      "reported_price": 317.72
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Holders of a stock. Not available yet: use `filer_cik`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filer_cik",
            "in": "query",
            "required": false,
            "description": "13F filer CIK, e.g. `0001067983`. Find it with `get_institutional_investors`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "report_period",
            "in": "query",
            "required": false,
            "description": "Return only the fiscal period that ends on this date (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_gte",
            "in": "query",
            "required": false,
            "description": "Quarters ending on or after this date (max 8 quarters).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "report_period_lte",
            "in": "query",
            "required": false,
            "description": "Keep periods whose end date is on or before this day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Holdings to return (1-200), counted across all quarters.",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ]
      }
    },
    "/get_index_fund": {
      "get": {
        "tags": [
          "Institutional"
        ],
        "operationId": "get_index_fund",
        "summary": "Index Fund",
        "description": "ETF / index fund holdings. Not available yet.",
        "responses": {
          "200": {
            "description": "Index Fund response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean",
                      "description": "False when this dataset is reserved and not shipped yet."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable status or next-step text."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "available": false,
                  "message": "ETF / index fund holdings are not available yet."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "x-available": false,
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "as_of",
            "in": "query",
            "required": false,
            "description": "Not available yet.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "asset_class",
            "in": "query",
            "required": false,
            "description": "Not available yet.",
            "schema": {
              "type": "string",
              "enum": [
                "equity",
                "bond"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Not available yet.",
            "schema": {
              "type": "integer",
              "default": 0
            }
          }
        ]
      }
    },
    "/get_macro_data": {
      "get": {
        "tags": [
          "Macro"
        ],
        "operationId": "get_macro_data",
        "summary": "Macro Data",
        "description": "Treasury yield curve, central bank policy rates, inflation (CPI/PCE), labor market, US economic calendar, market regime series (VIX, oil, credit spread, dollar) and GPU rental prices (also under GPU prices).",
        "responses": {
          "200": {
            "description": "Macro Data response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "yield_curve": {
                      "type": "object",
                      "description": "Treasury yield curve: the latest row, or rows newest first for a date range (date plus one field per maturity, 1_month to 30_year).",
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "Calendar date for this row."
                        },
                        "1_month": {
                          "type": "number",
                          "description": "Treasury yield at 1-month constant maturity, percent."
                        },
                        "1_5_month": {
                          "type": "number",
                          "description": "Treasury yield at 1.5-month constant maturity, percent. Always null (not carried)."
                        },
                        "2_month": {
                          "type": "number",
                          "description": "Treasury yield at 2-month constant maturity, percent. Null when the 2-month tenor is unavailable."
                        },
                        "3_month": {
                          "type": "number",
                          "description": "Treasury yield at 3-month constant maturity, percent."
                        },
                        "4_month": {
                          "type": "number",
                          "description": "Treasury yield at 4-month constant maturity, percent. Always null (not carried)."
                        },
                        "6_month": {
                          "type": "number",
                          "description": "Treasury yield at 6-month constant maturity, percent."
                        },
                        "1_year": {
                          "type": "number",
                          "description": "Treasury yield at 1-year constant maturity, percent."
                        },
                        "2_year": {
                          "type": "number",
                          "description": "Treasury yield at 2-year constant maturity, percent."
                        },
                        "3_year": {
                          "type": "number",
                          "description": "Treasury yield at 3-year constant maturity, percent."
                        },
                        "5_year": {
                          "type": "number",
                          "description": "Treasury yield at 5-year constant maturity, percent."
                        },
                        "7_year": {
                          "type": "number",
                          "description": "Treasury yield at 7-year constant maturity, percent."
                        },
                        "10_year": {
                          "type": "number",
                          "description": "Treasury yield at 10-year constant maturity, percent."
                        },
                        "20_year": {
                          "type": "number",
                          "description": "Treasury yield at 20-year constant maturity, percent."
                        },
                        "30_year": {
                          "type": "number",
                          "description": "Treasury yield at 30-year constant maturity, percent."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "yield_curve": {
                    "date": "2026-10-19",
                    "1_month": 4.21,
                    "1_5_month": null,
                    "2_month": null,
                    "3_month": 4.18,
                    "4_month": null,
                    "6_month": 4.12,
                    "1_year": 4.02,
                    "2_year": 4.77,
                    "3_year": 4.81,
                    "5_year": 4.88,
                    "7_year": 5.02,
                    "10_year": 5.15,
                    "20_year": 5.38,
                    "30_year": 5.41
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 0,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/get_macro_data?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest values. With only end_date: trailing year (yield curve), five years (interest rates, inflation, labor), or all GPU history.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "bank",
            "in": "query",
            "required": false,
            "description": "For `interest_rates`, which central banks to include (comma-separated codes such as `FED,ECB,BOJ`). Use `ECB` for euro-area members.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "One series, e.g. `cpi_core_sa`, `cpi_yoy_pct`, `unemployment_rate_sa`, `vix`. Required for history (except `yield_curve`, `interest_rates`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dataset",
            "in": "query",
            "required": true,
            "description": "Which data: Treasury yields, policy rates, inflation, labor, calendar, market or GPU prices (see `get_gpu_prices`).",
            "schema": {
              "type": "string",
              "enum": [
                "yield_curve",
                "interest_rates",
                "inflation",
                "labor",
                "calendar",
                "market",
                "gpu_prices"
              ],
              "default": "inflation"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "daily",
                "monthly"
              ],
              "default": "auto"
            }
          },
          {
            "name": "carry_forward",
            "in": "query",
            "required": false,
            "description": "`yield_curve` history: repeat the curve on days bonds were closed but stocks traded.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "description": "`calendar`: keep these tiers (1 = CPI, FOMC, payrolls).",
            "schema": {
              "type": "integer",
              "enum": [
                "1",
                "2",
                "3"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_economic_calendar": {
      "get": {
        "tags": [
          "Macro"
        ],
        "operationId": "get_economic_calendar",
        "summary": "Economic Calendar",
        "description": "Economic calendar (`start_date`, `end_date`, `country`), oldest first: time (US Eastern), tier, consensus, prior, actual and surprise once published, and the official source. Default country is US.",
        "responses": {
          "200": {
            "description": "Economic Calendar response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "string",
                            "description": "Event name."
                          },
                          "datetime_et": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Timestamp in US Eastern time."
                          },
                          "tier": {
                            "type": "integer",
                            "description": "Macro-release importance (1 is highest)."
                          },
                          "consensus": {
                            "type": "number",
                            "description": "Consensus estimate."
                          },
                          "prior": {
                            "type": "number",
                            "description": "Previous printed value."
                          },
                          "actual": {
                            "type": "number",
                            "description": "Printed actual, once released."
                          },
                          "surprise": {
                            "type": "number",
                            "description": "Actual minus consensus."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          },
                          "source": {
                            "type": "string",
                            "description": "Publisher or official source; for a FRED series, the originating agency."
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "event": {
                                  "type": "string",
                                  "description": "Event name."
                                },
                                "consensus": {
                                  "type": "number",
                                  "description": "Consensus estimate."
                                },
                                "prior": {
                                  "type": "number",
                                  "description": "Previous printed value."
                                },
                                "actual": {
                                  "type": "number",
                                  "description": "Printed actual, once released."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Related prints grouped at the same timestamp."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Typed corporate or macro events."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "events": [
                    {
                      "event": "CPI",
                      "datetime_et": "2026-10-15T08:30-04:00",
                      "tier": 1,
                      "consensus": 0.3,
                      "prior": 0.4,
                      "actual": 0.2,
                      "surprise": -0.1,
                      "unit": "% m/m",
                      "source": "https://www.bls.gov/cpi/",
                      "components": [
                        {
                          "event": "Core CPI m/m",
                          "consensus": 0.3,
                          "prior": 0.3,
                          "actual": 0.3
                        },
                        {
                          "event": "CPI y/y",
                          "consensus": 2.9,
                          "prior": 3,
                          "actual": 2.8
                        }
                      ]
                    },
                    {
                      "event": "FOMC: Fed Interest Rate Decision",
                      "datetime_et": "2026-10-28T14:00-04:00",
                      "tier": 1,
                      "consensus": 4,
                      "prior": 4,
                      "actual": null,
                      "surprise": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First day (US Eastern). Empty: today, even when end_date is set.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today (US Eastern)"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "`start_date` + 30 days"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Country, e.g. `US`, `DE`, `JP`. Tiers are defined for US releases.",
            "schema": {
              "type": "string",
              "default": "US"
            }
          },
          {
            "name": "events",
            "in": "query",
            "required": false,
            "description": "Keep releases whose name contains one of these words, e.g. `CPI`, `FOMC`.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "description": "1 = CPI, FOMC, payrolls; 2 = PCE, PPI, GDP, retail sales, ISM; 3 = the rest.",
            "schema": {
              "type": "integer",
              "enum": [
                "1",
                "2",
                "3"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ]
      }
    },
    "/next_macro_events": {
      "get": {
        "tags": [
          "Macro"
        ],
        "operationId": "next_macro_events",
        "summary": "Next Macro Events",
        "description": "Next scheduled US macro releases from now, soonest first, with tier, consensus and prior. The desk takes no new entry above beta 1.5 the session before a tier-1 release.",
        "responses": {
          "200": {
            "description": "Next Macro Events response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "now_et": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Current US Eastern time used for the calendar."
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "string",
                            "description": "Event name."
                          },
                          "datetime_et": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Timestamp in US Eastern time."
                          },
                          "tier": {
                            "type": "integer",
                            "description": "Macro-release importance (1 is highest)."
                          },
                          "consensus": {
                            "type": "number",
                            "description": "Consensus estimate."
                          },
                          "prior": {
                            "type": "number",
                            "description": "Previous printed value."
                          },
                          "hours_away": {
                            "type": "number",
                            "description": "Hours until the scheduled release."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Typed corporate or macro events."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "now_et": "2026-10-19T17:44-04:00",
                  "events": [
                    {
                      "event": "Existing Home Sales",
                      "datetime_et": "2026-10-23T10:00-04:00",
                      "tier": 2,
                      "consensus": 4.05,
                      "prior": 4,
                      "hours_away": 88.3
                    },
                    {
                      "event": "GDP (Advance)",
                      "datetime_et": "2026-10-29T08:30-04:00",
                      "tier": 2,
                      "consensus": 2.1,
                      "prior": 2.4,
                      "hours_away": 230.8
                    },
                    {
                      "event": "FOMC: Fed Interest Rate Decision",
                      "datetime_et": "2026-10-28T14:00-04:00",
                      "tier": 1,
                      "consensus": 4,
                      "prior": 4,
                      "hours_away": 212.3
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "max_tier",
            "in": "query",
            "required": false,
            "description": "1 = CPI, FOMC, payrolls only; 2 adds PCE, PPI, GDP, retail sales, ISM; 3 = all.",
            "schema": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "default": "2"
            }
          },
          {
            "name": "n",
            "in": "query",
            "required": false,
            "description": "How many upcoming releases.",
            "schema": {
              "type": "integer",
              "default": 3
            }
          }
        ]
      }
    },
    "/get_gpu_prices": {
      "get": {
        "tags": [
          "GPU prices"
        ],
        "operationId": "get_gpu_prices",
        "summary": "GPU snapshot",
        "description": "Latest daily GPU rental price (the GPU price source GPU Index): what an hour of NVIDIA H100, H200, B200 or B300 compute costs, in US dollars per GPU hour, with the spread across providers (`stability_band`) and the 1, 7 and 30 day changes; exactly one row per GPU, in the order h100, h200, b200, b300, never paginated.",
        "responses": {
          "200": {
            "description": "GPU snapshot response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gpu_prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "series": {
                            "type": "string",
                            "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "provisional": {
                            "type": "boolean",
                            "description": "True for the current UTC day: its value and changes are rewritten with each 15-minute print until the day's 23:45 UTC print. False for closed days."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "stability_band": {
                            "type": "number",
                            "description": "Standard deviation of the providers' prices behind `value`, in USD per GPU hour. A wide band means providers disagree."
                          },
                          "change_1d": {
                            "type": "number",
                            "description": "`value` minus the prior day's value, in USD per GPU hour; null when the prior day has no value."
                          },
                          "change_1d_pct": {
                            "type": "number",
                            "description": "Percent change from the prior day, two decimals; null when that day has no value."
                          },
                          "change_7d_pct": {
                            "type": "number",
                            "description": "Percent change from 7 days earlier, two decimals; null when that day has no value."
                          },
                          "change_30d_pct": {
                            "type": "number",
                            "description": "Percent change from 30 days earlier, two decimals; null when that day has no value."
                          },
                          "as_of": {
                            "type": "string",
                            "description": "When the data was current: in GPU prices, when the GPU index generated the print behind the day's value (UTC, ISO 8601); in rankings snapshots, an object of as-of dates and context."
                          },
                          "source_observed_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Lineage: observation time of the index print the day's value comes from (UTC)."
                          },
                          "methodology_id": {
                            "type": "string",
                            "description": "Lineage: the GPU price source methodology version that computed the print."
                          },
                          "methodology_changed_in": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Windows (1d, 7d, 30d) whose comparison day was computed under another the GPU price source methodology; null when none."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Daily GPU rental price rows (USD per GPU hour), newest first."
                    },
                    "attribution": {
                      "type": "string",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required)."
                    },
                    "units": {
                      "type": "string",
                      "description": "Unit of the values in this payload (GPU prices: USD per GPU hour)."
                    },
                    "license": {
                      "type": "string",
                      "description": "Licence of the source data (GPU prices: CC BY-NC 4.0)."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "gpu_prices": [
                    {
                      "series": "h100",
                      "date": "2026-10-21",
                      "provisional": true,
                      "value": 3.82151,
                      "stability_band": 0.68151,
                      "change_1d": 0.015947,
                      "change_1d_pct": 0.42,
                      "change_7d_pct": 2.93,
                      "change_30d_pct": 6.8,
                      "as_of": "2026-10-21T20:48:51Z",
                      "source_observed_at": "2026-10-21T20:45:00Z",
                      "methodology_id": "h100_sxm_v1_calc_v16",
                      "methodology_changed_in": null
                    },
                    {
                      "series": "h200",
                      "date": "2026-10-21",
                      "provisional": true,
                      "value": 4.940026,
                      "stability_band": 0.870274,
                      "change_1d": -0.158475,
                      "change_1d_pct": -3.11,
                      "change_7d_pct": 7.23,
                      "change_30d_pct": 14.09,
                      "as_of": "2026-10-21T20:48:52Z",
                      "source_observed_at": "2026-10-21T20:45:00Z",
                      "methodology_id": "h200_sxm_v1_calc_v16",
                      "methodology_changed_in": null
                    },
                    {
                      "series": "b200",
                      "date": "2026-10-21",
                      "provisional": true,
                      "value": 7.739282,
                      "stability_band": 1.559282,
                      "change_1d": 0.015273,
                      "change_1d_pct": 0.2,
                      "change_7d_pct": 3.95,
                      "change_30d_pct": 13.61,
                      "as_of": "2026-10-21T20:48:53Z",
                      "source_observed_at": "2026-10-21T20:45:00Z",
                      "methodology_id": "annex_a2_v0_3_calc_v17",
                      "methodology_changed_in": null
                    },
                    {
                      "series": "b300",
                      "date": "2026-10-21",
                      "provisional": true,
                      "value": 8.633203,
                      "stability_band": 1.84339,
                      "change_1d": -0.059314,
                      "change_1d_pct": -0.68,
                      "change_7d_pct": 1.21,
                      "change_30d_pct": 8.88,
                      "as_of": "2026-10-21T20:48:54Z",
                      "source_observed_at": "2026-10-21T20:45:00Z",
                      "methodology_id": "annex_a_v0_2_calc_v17",
                      "methodology_changed_in": null
                    }
                  ],
                  "attribution": "GPU rental index — keep this credit line with the data",
                  "units": "USD per GPU hour",
                  "license": "CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Which series IDs to return. Empty uses the tool default set.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "h100",
                  "h200",
                  "b200",
                  "b300"
                ]
              },
              "default": "all four"
            }
          }
        ]
      }
    },
    "/get_gpu_prices_history": {
      "get": {
        "tags": [
          "GPU prices"
        ],
        "operationId": "get_gpu_prices_history",
        "summary": "GPU history",
        "description": "Daily GPU rental price history (GPU rental index) for one or more GPUs, newest first, 10 days a page (one row per GPU per day), with the same fields as `get_gpu_prices`.",
        "responses": {
          "200": {
            "description": "GPU history response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gpu_prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "series": {
                            "type": "string",
                            "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "provisional": {
                            "type": "boolean",
                            "description": "True for the current UTC day: its value and changes are rewritten with each 15-minute print until the day's 23:45 UTC print. False for closed days."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "stability_band": {
                            "type": "number",
                            "description": "Standard deviation of the providers' prices behind `value`, in USD per GPU hour. A wide band means providers disagree."
                          },
                          "change_1d": {
                            "type": "number",
                            "description": "`value` minus the prior day's value, in USD per GPU hour; null when the prior day has no value."
                          },
                          "change_1d_pct": {
                            "type": "number",
                            "description": "Percent change from the prior day, two decimals; null when that day has no value."
                          },
                          "change_7d_pct": {
                            "type": "number",
                            "description": "Percent change from 7 days earlier, two decimals; null when that day has no value."
                          },
                          "change_30d_pct": {
                            "type": "number",
                            "description": "Percent change from 30 days earlier, two decimals; null when that day has no value."
                          },
                          "as_of": {
                            "type": "string",
                            "description": "When the data was current: in GPU prices, when the GPU index generated the print behind the day's value (UTC, ISO 8601); in rankings snapshots, an object of as-of dates and context."
                          },
                          "source_observed_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Lineage: observation time of the index print the day's value comes from (UTC)."
                          },
                          "methodology_id": {
                            "type": "string",
                            "description": "Lineage: the GPU price source methodology version that computed the print."
                          },
                          "methodology_changed_in": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Windows (1d, 7d, 30d) whose comparison day was computed under another the GPU price source methodology; null when none."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Daily GPU rental price rows (USD per GPU hour), newest first."
                    },
                    "attribution": {
                      "type": "string",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required)."
                    },
                    "units": {
                      "type": "string",
                      "description": "Unit of the values in this payload (GPU prices: USD per GPU hour)."
                    },
                    "license": {
                      "type": "string",
                      "description": "Licence of the source data (GPU prices: CC BY-NC 4.0)."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "gpu_prices": [
                    {
                      "series": "h100",
                      "date": "2026-10-21",
                      "provisional": true,
                      "value": 3.818444,
                      "stability_band": 0.678444,
                      "change_1d": 0.009749,
                      "change_1d_pct": 0.26,
                      "change_7d_pct": 2.78,
                      "change_30d_pct": 6.65,
                      "as_of": "2026-10-21T21:02:48Z",
                      "source_observed_at": "2026-10-21T21:00:00Z",
                      "methodology_id": "h100_sxm_v1_calc_v16",
                      "methodology_changed_in": null
                    },
                    {
                      "series": "h100",
                      "date": "2026-10-20",
                      "provisional": false,
                      "value": 3.808695,
                      "stability_band": 0.668695,
                      "change_1d": -0.068088,
                      "change_1d_pct": -1.76,
                      "change_7d_pct": 2.33,
                      "change_30d_pct": 6.79,
                      "as_of": "2026-10-20T23:48:52Z",
                      "source_observed_at": "2026-10-20T23:45:00Z",
                      "methodology_id": "h100_sxm_v1_calc_v16",
                      "methodology_changed_in": null
                    }
                  ],
                  "attribution": "GPU rental index — keep this credit line with the data",
                  "units": "USD per GPU hour",
                  "license": "CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)",
                  "page": 1,
                  "pages": 7,
                  "count": 2,
                  "next_cursor": "eyJhIjoiMjAyNi0wNy0yMyIsImIiOiIyMDI2LTEwLTIxIiwiayI6IjIwMjYtMTAtMTIiLCJzIjoiaDEwMCJ9.Xq3...",
                  "next_page_url": "https://mcp.alphamomentum.ai/macro/gpu-prices?cursor=eyJhIjoiMjAyNi0wNy0yMyIsImIiOiIyMDI2LTEwLTIxIiwiayI6IjIwMjYtMTAtMTIiLCJzIjoiaDEwMCJ9.Xq3...&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First UTC day. Empty: 90 days before end_date; with only end_date, all history through it.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "`end_date` − 90 days"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Which series IDs to return. Empty uses the tool default set.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "h100",
                  "h200",
                  "b200",
                  "b300"
                ]
              },
              "default": "all four"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when cursor is set. The response has page and pages.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_interest_rates": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_interest_rates",
        "summary": "Interest Rates",
        "description": "Central bank policy rates (percent) from BIS for about 40 banks. Without dates: the latest rate per bank, with `effective_since` (when it took effect) in `series`.",
        "responses": {
          "200": {
            "description": "Interest Rates response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "interest_rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "bank": {
                            "type": "string",
                            "description": "Central bank code (FED, ECB, BOE, ...) or the ISO country code when the bank has no short code."
                          },
                          "name": {
                            "type": "string",
                            "description": "Company, person, security, or object name."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Interest rate rows, newest first: BIS policy rates, or US rates and Treasury yields from FRED."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "definition": {
                                "type": "string",
                                "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                              },
                              "effective_since": {
                                "type": "string",
                                "format": "date",
                                "description": "Date the current value last changed (policy rates): the decision date."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "interest_rates": [
                    {
                      "area": "US",
                      "country": "United States",
                      "bank": "FED",
                      "name": "Federal Reserve",
                      "date": "2026-10-13",
                      "value": 3.875,
                      "unit": "percent"
                    },
                    {
                      "area": "XM",
                      "country": "Euro area",
                      "bank": "ECB",
                      "name": "European Central Bank",
                      "date": "2026-10-13",
                      "value": 2.5,
                      "unit": "percent"
                    },
                    {
                      "area": "GB",
                      "country": "United Kingdom",
                      "bank": "BOE",
                      "name": "Bank of England",
                      "date": "2026-10-12",
                      "value": 3.75,
                      "unit": "percent"
                    }
                  ],
                  "series": {
                    "GB": {
                      "definition": "From 3 Aug 2006 onwards: official bank rate",
                      "effective_since": "2025-12-18",
                      "source_key": "D.GB",
                      "dataflow": "WS_CBPOL"
                    },
                    "US": {
                      "definition": "From 19 Dec 1985 onwards: mid-point of the Federal Reserve target rate",
                      "effective_since": "2026-09-17",
                      "source_key": "D.US",
                      "dataflow": "WS_CBPOL"
                    },
                    "XM": {
                      "definition": "From 18 Sep 2024 onwards: official central bank steering rate is the deposit facility rate, fixed rate",
                      "effective_since": "2026-09-16",
                      "source_key": "D.XM",
                      "dataflow": "WS_CBPOL"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Central bank policy rates",
                    "url": "https://data.bis.org/topics/CBPOL"
                  },
                  "note": "BIS publishes daily series in weekly batches: the newest observation is 2026-10-13.",
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_interest_rates?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "bank",
            "in": "query",
            "required": false,
            "description": "Central bank or country. Empty returns every published series. Euro members: use ECB.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "daily",
                "monthly"
              ],
              "default": "daily"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_exchange_rates": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_exchange_rates",
        "summary": "Exchange Rates",
        "description": "Exchange rates against the US dollar from BIS: units of the currency per 1 USD (a rise means the currency weakened), daily, monthly, quarterly or annual, about 190 currencies.",
        "responses": {
          "200": {
            "description": "Exchange Rates response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "exchange_rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "currency": {
                            "type": "string",
                            "description": "ISO currency code for the amounts (typically USD). On BIS FX rows, the quoted currency."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS bilateral exchange rate rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "exchange_rates": [
                    {
                      "area": "BR",
                      "country": "Brazil",
                      "currency": "BRL",
                      "date": "2026-10-13",
                      "value": 5.0165355738291,
                      "unit": "BRL per USD"
                    },
                    {
                      "area": "JP",
                      "country": "Japan",
                      "currency": "JPY",
                      "date": "2026-10-13",
                      "value": 158.124777,
                      "unit": "JPY per USD"
                    },
                    {
                      "area": "XM",
                      "country": "Euro area",
                      "currency": "EUR",
                      "date": "2026-10-13",
                      "value": 0.893815,
                      "unit": "EUR per USD"
                    }
                  ],
                  "definition": "Units of the currency per one US dollar. 'Average' is the mean of daily observations over the period; 'end of period' is the last observation.",
                  "series": {
                    "BR": {
                      "title": "Exchange rates against USD Brazil - Brazilian real - Daily - Average of observations through period",
                      "source_key": "D.BR.BRL.A",
                      "dataflow": "WS_XRU"
                    },
                    "JP": {
                      "title": "Exchange rates against USD Japan - Yen - Daily - Average of observations through period",
                      "source_key": "D.JP.JPY.A",
                      "dataflow": "WS_XRU"
                    },
                    "XM": {
                      "title": "Exchange rates against USD Euro area - Euro - Daily - Average of observations through period",
                      "source_key": "D.XM.EUR.A",
                      "dataflow": "WS_XRU"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), US dollar exchange rates",
                    "url": "https://data.bis.org/topics/XRU"
                  },
                  "note": "BIS publishes daily series in weekly batches: the newest observation is 2026-10-13.",
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_exchange_rates?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency or country. Empty returns every published series. Country groups are not accepted.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "collection",
            "in": "query",
            "required": false,
            "description": "Whether the rate is the period average or the last observation of the period.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "daily",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "daily"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_effective_exchange_rates": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_effective_exchange_rates",
        "summary": "Effective Exchange Rates",
        "description": "BIS effective (trade-weighted) exchange rate indices, 2020 = 100; a rise means the currency strengthened. Nominal (daily or monthly) or real (CPI-based, monthly), broad or narrow basket.",
        "responses": {
          "200": {
            "description": "Effective Exchange Rates response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "effective_exchange_rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS effective exchange rate index rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "effective_exchange_rates": [
                    {
                      "area": "CN",
                      "country": "China",
                      "date": "2026-10-13",
                      "value": 115.04,
                      "unit": "index (2020 = 100)"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-10-13",
                      "value": 103.77,
                      "unit": "index (2020 = 100)"
                    }
                  ],
                  "definition": "Nominal effective exchange rate: a geometric weighted average of bilateral exchange rates, against a basket of 64 economies weighted by trade in ma…",
                  "series": {
                    "CN": {
                      "title": "China - Nominal - Broad (64 economies)",
                      "source_key": "D.N.B.CN",
                      "dataflow": "WS_EER"
                    },
                    "US": {
                      "title": "United States - Nominal - Broad (64 economies)",
                      "source_key": "D.N.B.US",
                      "dataflow": "WS_EER"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Effective exchange rates",
                    "url": "https://data.bis.org/topics/EER"
                  },
                  "note": "BIS publishes daily series in weekly batches: the newest observation is 2026-10-13.",
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_effective_exchange_rates?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Nominal or inflation-adjusted (CPI-based) effective rate.",
            "schema": {
              "type": "string",
              "enum": [
                "nominal",
                "real"
              ],
              "default": "nominal"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "daily",
                "monthly"
              ],
              "default": "auto"
            }
          },
          {
            "name": "basket",
            "in": "query",
            "required": false,
            "description": "Trade-weighted set of partner economies.",
            "schema": {
              "type": "string",
              "enum": [
                "broad",
                "narrow"
              ],
              "default": "broad"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_consumer_prices": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_consumer_prices",
        "summary": "Consumer Prices",
        "description": "Consumer prices from the BIS long CPI series, monthly or annual: year-on-year inflation (percent) or the index (2010 = 100). Without dates: the latest period per economy; with dates: history, newest first.",
        "responses": {
          "200": {
            "description": "Consumer Prices response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "consumer_prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS consumer price rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "consumer_prices": [
                    {
                      "area": "TR",
                      "country": "Türkiye",
                      "date": "2026-08",
                      "value": 31.5073428209,
                      "unit": "percent, year-on-year"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-08",
                      "value": 3.396548,
                      "unit": "percent, year-on-year"
                    }
                  ],
                  "definition": "Consumer price index from the BIS long series, which splice national sources into continuous series (2010 = 100); year-on-year is the percent chang…",
                  "series": {
                    "TR": {
                      "title": "Consumer prices: Türkiye · Year-on-year changes, in per cent",
                      "source_key": "M.TR.771",
                      "dataflow": "WS_LONG_CPI"
                    },
                    "US": {
                      "title": "Consumer prices: United States · Year-on-year changes, in per cent",
                      "source_key": "M.US.771",
                      "dataflow": "WS_LONG_CPI"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Consumer prices",
                    "url": "https://data.bis.org/topics/CPI"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_consumer_prices?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "monthly",
                "annual"
              ],
              "default": "monthly"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit for returned values (for example percent of GDP vs local currency).",
            "schema": {
              "type": "string",
              "enum": [
                "year_on_year_percent",
                "index"
              ],
              "default": "year_on_year_percent"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_central_bank_assets": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_central_bank_assets",
        "summary": "Central Bank Assets",
        "description": "Central bank total assets from BIS, monthly, quarterly or annual, in USD (full units), local currency, or percent of GDP (quarterly and annual). Without dates: the latest period per bank; with dates: history, newest first.",
        "responses": {
          "200": {
            "description": "Central Bank Assets response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "central_bank_assets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS central bank total assets rows, newest first."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "definition": {
                                "type": "string",
                                "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "central_bank_assets": [
                    {
                      "area": "JP",
                      "country": "Japan",
                      "date": "2026-07",
                      "value": 4020940132532.4,
                      "unit": "USD"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-07",
                      "value": 6738190000000,
                      "unit": "USD"
                    }
                  ],
                  "series": {
                    "JP": {
                      "definition": "From January 1953 onwards: end-of-month balance for total assets following the methodological specifications of the Bank of Japan Accounts. Before…",
                      "source_key": "M.JP.B.USD._Z.B",
                      "dataflow": "WS_CBTA"
                    },
                    "US": {
                      "definition": "From March 1989 onwards: Factors Affecting Reserve Balances (H.4.1). Between November 1914 and March 1989: Bao et al (2018): 'The Federal Reserve S…",
                      "source_key": "M.US.B.XDC.USD.B",
                      "dataflow": "WS_CBTA"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Central bank total assets",
                    "url": "https://data.bis.org/topics/CBTA"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_central_bank_assets?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series. The euro area is XM.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "monthly"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit for returned values (for example percent of GDP vs local currency).",
            "schema": {
              "type": "string",
              "enum": [
                "usd",
                "local_currency",
                "percent_of_gdp"
              ],
              "default": "usd"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_credit": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_credit",
        "summary": "Credit",
        "description": "Credit to households, companies and government from BIS, quarterly, as percent of GDP, local currency or USD (full units). Without dates: the latest quarter per country and borrower; with dates: history, newest first.",
        "responses": {
          "200": {
            "description": "Credit response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "credit": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "borrower": {
                            "type": "string",
                            "description": "Borrower sector, e.g. households or non_financial_corporations."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS credit to the non-financial sector rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "ES|households": {
                          "type": "object",
                          "description": "ES|households.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "ES|non_financial_corporations": {
                          "type": "object",
                          "description": "ES|non financial corporations.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "credit": [
                    {
                      "area": "ES",
                      "country": "Spain",
                      "borrower": "households",
                      "date": "2026-Q1",
                      "value": 42.5,
                      "unit": "percent of GDP"
                    },
                    {
                      "area": "ES",
                      "country": "Spain",
                      "borrower": "non_financial_corporations",
                      "date": "2026-Q1",
                      "value": 76.9,
                      "unit": "percent of GDP"
                    }
                  ],
                  "definition": "Credit to the borrower sector (loans and debt securities) from all lenders or from domestic banks, at market value (government debt at nominal value) …",
                  "series": {
                    "ES|households": {
                      "title": "Spain - Credit to Households and NPISHs from All sectors at Market value - Percentage of GDP - Adjusted for breaks",
                      "source_key": "Q.ES.H.A.M.770.A",
                      "dataflow": "WS_TC"
                    },
                    "ES|non_financial_corporations": {
                      "title": "Spain - Credit to Non-financial corporations from All sectors at Market value - Percentage of GDP - Adjusted for breaks",
                      "source_key": "Q.ES.N.A.M.770.A",
                      "dataflow": "WS_TC"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Credit to the non-financial sector",
                    "url": "https://data.bis.org/topics/TOTAL_CREDIT"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_credit?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "borrower",
            "in": "query",
            "required": false,
            "description": "Sector receiving the credit.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "households",
                  "non_financial_corporations",
                  "government",
                  "private_non_financial",
                  "all"
                ]
              },
              "default": "all"
            }
          },
          {
            "name": "lender",
            "in": "query",
            "required": false,
            "description": "Who extended the credit.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "banks"
              ],
              "default": "all"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit for returned values (for example percent of GDP vs local currency).",
            "schema": {
              "type": "string",
              "enum": [
                "percent_of_gdp",
                "local_currency",
                "usd"
              ],
              "default": "percent_of_gdp"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_credit_gap": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_credit_gap",
        "summary": "Credit Gap",
        "description": "BIS credit-to-GDP gaps for the private non-financial sector, quarterly: the gap (ratio minus its long-run trend, percentage points), the credit-to-GDP ratio or the trend.",
        "responses": {
          "200": {
            "description": "Credit Gap response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "credit_gap": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS credit-to-GDP gap rows, newest first."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "US|ratio": {
                          "type": "object",
                          "description": "US|ratio.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "US|gap": {
                          "type": "object",
                          "description": "US|gap.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "credit_gap": [
                    {
                      "area": "US",
                      "country": "United States",
                      "measure": "ratio",
                      "date": "2026-Q1",
                      "value": 139.67804445996,
                      "unit": "percent of GDP"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "measure": "gap",
                      "date": "2026-Q1",
                      "value": -11.3204,
                      "unit": "percentage points of GDP"
                    }
                  ],
                  "series": {
                    "US|ratio": {
                      "definition": "Credit-to-GDP ratio: credit to the borrower sector from all lenders as a percent of nominal GDP over the past four quarters; the actual ratio from whi…",
                      "title": "Credit-to-GDP gaps: United States · Private non-financial sector · All sectors · Credit-to-GDP ratios (actual data)",
                      "source_key": "Q.US.P.A.A",
                      "dataflow": "WS_CREDIT_GAP"
                    },
                    "US|gap": {
                      "definition": "Credit-to-GDP gap: the credit-to-GDP ratio minus its long-run trend (one-sided Hodrick-Prescott filter, smoothing 400,000), in percentage points. The …",
                      "title": "Credit-to-GDP gaps: United States · Private non-financial sector · All sectors · Credit-to-GDP gaps (actual-trend)",
                      "source_key": "Q.US.P.A.C",
                      "dataflow": "WS_CREDIT_GAP"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Credit-to-GDP gaps",
                    "url": "https://data.bis.org/topics/CREDIT_GAPS"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_credit_gap?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Which credit-to-GDP series to return.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "gap",
                  "ratio",
                  "trend"
                ]
              },
              "default": "gap"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_debt_service_ratio": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_debt_service_ratio",
        "summary": "Debt Service Ratio",
        "description": "BIS debt service ratios, quarterly: interest plus amortisation as a percent of income, for households, non- financial corporations or the private non-financial sector (about 30 economies).",
        "responses": {
          "200": {
            "description": "Debt Service Ratio response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "debt_service_ratio": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS debt service ratio rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "GB|households": {
                          "type": "object",
                          "description": "GB|households.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "US|households": {
                          "type": "object",
                          "description": "US|households.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "debt_service_ratio": [
                    {
                      "area": "GB",
                      "country": "United Kingdom",
                      "date": "2026-Q1",
                      "value": 8.8,
                      "unit": "percent of income"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-Q1",
                      "value": 8,
                      "unit": "percent of income"
                    }
                  ],
                  "definition": "Debt service ratio: interest payments plus amortisations as a percent of the sector's income, estimated by the BIS from credit, average interest ra…",
                  "series": {
                    "GB|households": {
                      "title": "United Kingdom - Households and NPISHs",
                      "source_key": "Q.GB.H",
                      "dataflow": "WS_DSR"
                    },
                    "US|households": {
                      "title": "United States - Households and NPISHs",
                      "source_key": "Q.US.H",
                      "dataflow": "WS_DSR"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Debt service ratios",
                    "url": "https://data.bis.org/topics/DSR"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_debt_service_ratio?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "borrower",
            "in": "query",
            "required": false,
            "description": "Sector whose debt service is measured.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "households",
                  "non_financial_corporations",
                  "private_non_financial"
                ]
              },
              "default": "private_non_financial"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_property_prices": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_property_prices",
        "summary": "Property Prices",
        "description": "BIS property price indices: headline residential prices (nominal or real; index 2010 = 100 or year-on-year percent), quarterly, or every detailed residential or commercial series with a `label`.",
        "responses": {
          "200": {
            "description": "Property Prices response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "property_prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS property price rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "property_prices": [
                    {
                      "area": "GB",
                      "country": "United Kingdom",
                      "date": "2026-Q2",
                      "value": 172.7348,
                      "unit": "index (2010 = 100)"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-Q2",
                      "value": 236.2362,
                      "unit": "index (2010 = 100)"
                    }
                  ],
                  "definition": "Selected residential property prices: one representative series per country chosen by the BIS, nominal or deflated by consumer prices (real), as an…",
                  "series": {
                    "GB": {
                      "title": "Selected residential property prices: United Kingdom · Nominal · Index, 2010 = 100",
                      "source_key": "Q.GB.N.628",
                      "dataflow": "WS_SPP"
                    },
                    "US": {
                      "title": "Selected residential property prices: United States · Nominal · Index, 2010 = 100",
                      "source_key": "Q.US.N.628",
                      "dataflow": "WS_SPP"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Selected residential property prices",
                    "url": "https://data.bis.org/topics/RPP"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_property_prices?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Economy as an ISO code, name, or BIS aggregate. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "How often observations are published. Headline selected series are quarterly.",
            "schema": {
              "type": "string",
              "enum": [
                "quarterly",
                "monthly",
                "semiannual",
                "annual"
              ],
              "default": "quarterly"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Type of property.",
            "schema": {
              "type": "string",
              "enum": [
                "residential",
                "commercial"
              ],
              "default": "residential"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Nominal or CPI-deflated prices (headline series).",
            "schema": {
              "type": "string",
              "enum": [
                "nominal",
                "real"
              ],
              "default": "nominal"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit for returned values (for example percent of GDP vs local currency).",
            "schema": {
              "type": "string",
              "enum": [
                "index",
                "year_on_year_percent"
              ],
              "default": "index"
            }
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "description": "One representative series per country, or every detailed series.",
            "schema": {
              "type": "string",
              "enum": [
                "headline",
                "full"
              ],
              "default": "headline"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "Keep detailed series whose label contains this text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_global_liquidity": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_global_liquidity",
        "summary": "Global Liquidity",
        "description": "BIS global liquidity indicators, quarterly: US dollar, euro or yen credit to borrowers outside the currency's home economy, as loans, bonds or both, in that currency (full units) or as year-on-year growth.",
        "responses": {
          "200": {
            "description": "Global Liquidity response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "global_liquidity": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS global liquidity rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "BR|usd|non_banks": {
                          "type": "object",
                          "description": "BR|usd|non banks.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "MX|usd|non_banks": {
                          "type": "object",
                          "description": "MX|usd|non banks.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "global_liquidity": [
                    {
                      "area": "BR",
                      "country": "Brazil",
                      "date": "2026-Q1",
                      "value": 198039821000,
                      "unit": "USD"
                    },
                    {
                      "area": "MX",
                      "country": "Mexico",
                      "date": "2026-Q1",
                      "value": 380369175000,
                      "unit": "USD"
                    }
                  ],
                  "definition": "Global liquidity: credit in US dollars, euros or yen to borrowers outside the currency's home economy, as bank loans and international debt securit…",
                  "series": {
                    "BR|usd|non_banks": {
                      "title": "USD denominated credit (bank loans & debt securities) to non-bank borrowers located in Brazil",
                      "source_key": "Q.USD.BR.N.A.I.B.USD",
                      "dataflow": "WS_GLI"
                    },
                    "MX|usd|non_banks": {
                      "title": "USD denominated credit (bank loans & debt securities) to non-bank borrowers located in Mexico",
                      "source_key": "Q.USD.MX.N.A.I.B.USD",
                      "dataflow": "WS_GLI"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Global liquidity indicators",
                    "url": "https://data.bis.org/topics/GLI"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_global_liquidity?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "borrower_country",
            "in": "query",
            "required": false,
            "description": "Country of the borrower. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency the credit is denominated in. `all` (BIS `TO1`) is all currencies; levels are percent of GDP.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "USD",
                  "EUR",
                  "JPY",
                  "all"
                ]
              },
              "default": "USD"
            }
          },
          {
            "name": "borrower_sector",
            "in": "query",
            "required": false,
            "description": "Type of borrower.",
            "schema": {
              "type": "string",
              "default": "non_banks"
            }
          },
          {
            "name": "lender_sector",
            "in": "query",
            "required": false,
            "description": "Who extended the credit.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "Form of the credit.",
            "schema": {
              "type": "string",
              "enum": [
                "credit",
                "loans",
                "bonds",
                "all_instruments"
              ],
              "default": "credit"
            }
          },
          {
            "name": "position_type",
            "in": "query",
            "required": false,
            "description": "Cross-border, local in foreign currency, or all.",
            "schema": {
              "type": "string",
              "default": "cross_border_and_local_fcy"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Outstanding amount in the credit currency, percent of GDP, or year-on-year growth. Also accepts BIS codes `770` / `771` and `usd` / `eur` / `jpy` as amount.",
            "schema": {
              "type": "string",
              "enum": [
                "amount",
                "percent_of_gdp",
                "growth"
              ],
              "default": "amount"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_debt_securities": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_debt_securities",
        "summary": "Debt Securities",
        "description": "BIS debt securities by country, quarterly or (total market issued) annual, in USD (full units). market=international: outstanding, gross and net issuance, redemptions; total: issued or held (`position`), outstanding and net issuance; domestic: total minus international issued.",
        "responses": {
          "200": {
            "description": "Debt Securities response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "debt_securities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS debt securities rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "{ticker}": {
                          "type": "object",
                          "description": "Per-ticker payload. The object key is the ticker symbol.",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                              },
                              "source_key": {
                                "type": "string",
                                "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                              },
                              "dataflow": {
                                "type": "string",
                                "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                              },
                              "url": {
                                "type": "string",
                                "description": "Link to the source document or article."
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "debt_securities": [
                    {
                      "area": "BR",
                      "country": "Brazil",
                      "date": "2026-Q2",
                      "value": 108649000000,
                      "unit": "USD"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "date": "2026-Q2",
                      "value": 3104204000000,
                      "unit": "USD"
                    }
                  ],
                  "definition": "International debt securities: securities issued outside the issuer's local market, by residence of the issuer, at nominal value, compiled by the B…",
                  "series": {
                    "BR": {
                      "title": "International debt securities: Brazil · All issuers · Amounts outstanding",
                      "source_key": "Q.BR.3P.1.1.C.A.A.TO1.A.A.A.A.A.I",
                      "dataflow": "WS_DEBT_SEC2_PUB",
                      "url": "https://data.bis.org/topics/IDS/BIS%2CWS_DEBT_SEC2_PUB%2C1.0/Q.BR.3P.1.1.C.A.A.TO1.A.A.A.A.A.I?view=observations"
                    },
                    "US": {
                      "title": "International debt securities: United States · All issuers · Amounts outstanding",
                      "source_key": "Q.US.3P.1.1.C.A.A.TO1.A.A.A.A.A.I",
                      "dataflow": "WS_DEBT_SEC2_PUB",
                      "url": "https://data.bis.org/topics/IDS/BIS%2CWS_DEBT_SEC2_PUB%2C1.0/Q.US.3P.1.1.C.A.A.TO1.A.A.A.A.A.I?view=observations"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), International debt securities",
                    "url": "https://data.bis.org/topics/IDS"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_debt_securities?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Where the securities were issued (or total market for holdings).",
            "schema": {
              "type": "string",
              "enum": [
                "international",
                "domestic",
                "total"
              ],
              "default": "international"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Issuer country (residence), or holder country when `position=held`. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "issuer_nationality",
            "in": "query",
            "required": false,
            "description": "Nationality of the issuer. Empty is all countries excluding residents.",
            "schema": {
              "type": "string",
              "default": "3P"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency of issue. Empty is all currencies.",
            "schema": {
              "type": "string",
              "default": "TO1"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "string",
              "enum": [
                "quarterly",
                "annual"
              ],
              "default": "quarterly"
            }
          },
          {
            "name": "position",
            "in": "query",
            "required": false,
            "description": "Whether to return securities `issued` (liabilities by issuer) or `held` (assets by holder; `market=total` only, market value).",
            "schema": {
              "type": "string",
              "enum": [
                "issued",
                "held"
              ],
              "default": "issued"
            }
          },
          {
            "name": "issuer_sector",
            "in": "query",
            "required": false,
            "description": "Immediate borrower / who issued, or holder sector when `position=held`.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "issuer_sector_ultimate",
            "in": "query",
            "required": false,
            "description": "Ultimate borrower sector.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "issuer_origin",
            "in": "query",
            "required": false,
            "description": "Total market: whether the counterpart issuers are resident, non-resident or all.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "resident",
                "non_resident"
              ],
              "default": "all"
            }
          },
          {
            "name": "counterparty_sector",
            "in": "query",
            "required": false,
            "description": "Total market: sector of the counterpart (issuer sector when holdings).",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "issue_type",
            "in": "query",
            "required": false,
            "description": "Type of issue.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "currency_group",
            "in": "query",
            "required": false,
            "description": "Domestic vs foreign currency of issue.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "original_maturity",
            "in": "query",
            "required": false,
            "description": "Original maturity of the securities.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "remaining_maturity",
            "in": "query",
            "required": false,
            "description": "Remaining maturity of the securities.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "rate_type",
            "in": "query",
            "required": false,
            "description": "Interest-rate type of the issue.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "default_risk",
            "in": "query",
            "required": false,
            "description": "Credit rating of the issue.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "collateral",
            "in": "query",
            "required": false,
            "description": "Collateral type of the issue.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Total-market outstanding valuation. Holdings and net issuance are market value only.",
            "schema": {
              "type": "string",
              "enum": [
                "nominal",
                "market",
                "face"
              ],
              "default": "nominal"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Outstanding stock or a flow of issuance.",
            "schema": {
              "type": "string",
              "enum": [
                "outstanding",
                "issuance",
                "net_issuance",
                "redemptions"
              ],
              "default": "outstanding"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "full_titles",
            "in": "query",
            "required": false,
            "description": "Use the full BIS series title instead of the short label.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/BIS_get_banking_statistics": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_banking_statistics",
        "summary": "Banking Statistics",
        "description": "BIS international banking statistics, quarterly, in USD (full units): claims or liabilities of banks in a reporting country on a counterparty country. Locational follows the bank office, consolidated the banking group (claims stocks only).",
        "responses": {
          "200": {
            "description": "Banking Statistics response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "banking_statistics": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "counterparty": {
                            "type": "string",
                            "description": "Counterparty country code (banking statistics)."
                          },
                          "counterparty_name": {
                            "type": "string",
                            "description": "Counterparty country name."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS international banking statistics rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "US|DE": {
                          "type": "object",
                          "description": "US|DE.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "US|JP": {
                          "type": "object",
                          "description": "US|JP.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "banking_statistics": [
                    {
                      "area": "US",
                      "country": "United States",
                      "counterparty": "DE",
                      "counterparty_name": "Germany",
                      "date": "2026-Q1",
                      "value": 117906000000,
                      "unit": "USD"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "counterparty": "JP",
                      "counterparty_name": "Japan",
                      "date": "2026-Q1",
                      "value": 352888000000,
                      "unit": "USD"
                    }
                  ],
                  "definition": "Locational banking statistics: positions of banks located in the reporting country (including foreign-owned offices) on counterparties in other cou…",
                  "series": {
                    "US|DE": {
                      "title": "Locational banking statistics: Amounts outstanding / Stocks · Total claims · United States · Germany",
                      "source_key": "Q.S.C.A.TO1.A.5J.A.US.A.DE.N",
                      "dataflow": "WS_LBS_D_PUB"
                    },
                    "US|JP": {
                      "title": "Locational banking statistics: Amounts outstanding / Stocks · Total claims · United States · Japan",
                      "source_key": "Q.S.C.A.TO1.A.5J.A.US.A.JP.N",
                      "dataflow": "WS_LBS_D_PUB"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), Locational banking statistics",
                    "url": "https://data.bis.org/topics/LBS"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_banking_statistics?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "reporting_country",
            "in": "query",
            "required": false,
            "description": "Country whose banks report. Empty returns every published series.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "counterparty_country",
            "in": "query",
            "required": false,
            "description": "Country the claims or liabilities are on. Empty is all counterparties combined.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "parent_country",
            "in": "query",
            "required": false,
            "description": "Nationality of the parent bank. Empty is all countries.",
            "schema": {
              "type": "string",
              "default": "5J"
            }
          },
          {
            "name": "dataset",
            "in": "query",
            "required": false,
            "description": "Whether positions follow the bank office or the banking group.",
            "schema": {
              "type": "string",
              "format": "date",
              "enum": [
                "locational",
                "consolidated"
              ],
              "default": "locational"
            }
          },
          {
            "name": "position",
            "in": "query",
            "required": false,
            "description": "Which side of the reporting banks' balance sheet.",
            "schema": {
              "type": "string",
              "enum": [
                "claims",
                "liabilities"
              ],
              "default": "claims"
            }
          },
          {
            "name": "position_type",
            "in": "query",
            "required": false,
            "description": "Cross-border, local, or all positions.",
            "schema": {
              "type": "string",
              "default": "cross_border"
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "Type of instrument (loans, debt securities, credit, …).",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "denomination",
            "in": "query",
            "required": false,
            "description": "Currency of denomination. Empty is all currencies.",
            "schema": {
              "type": "string",
              "default": "TO1"
            }
          },
          {
            "name": "currency_type",
            "in": "query",
            "required": false,
            "description": "Domestic vs foreign currency.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "bank_type",
            "in": "query",
            "required": false,
            "description": "Domestic banks, foreign branches or subsidiaries.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "counterparty_sector",
            "in": "query",
            "required": false,
            "description": "Sector of the counterparty.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "basis",
            "in": "query",
            "required": false,
            "description": "Consolidated: immediate counterparty or guarantor basis.",
            "schema": {
              "type": "string",
              "default": "immediate"
            }
          },
          {
            "name": "remaining_maturity",
            "in": "query",
            "required": false,
            "description": "Remaining maturity (consolidated).",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Outstanding stock, quarterly flow, or annual growth.",
            "schema": {
              "type": "string",
              "enum": [
                "stock",
                "adjusted_change",
                "annual_growth"
              ],
              "default": "stock"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "full_titles",
            "in": "query",
            "required": false,
            "description": "Use the full BIS series title instead of the short label.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/BIS_get_derivatives": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_derivatives",
        "summary": "Derivatives",
        "description": "BIS derivatives statistics in USD (full units): OTC notional amounts and gross market values (semiannual, all reporters combined as `5J`), OTC turnover from the Triennial Survey by reporting country (daily average in April), or exchange-traded futures and options by exchange region (monthly, quarterly or annual; interest rate and FX only).",
        "responses": {
          "200": {
            "description": "Derivatives response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "derivatives": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS derivatives statistics rows, newest first."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "5J": {
                          "type": "object",
                          "description": "5J.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "derivatives": [
                    {
                      "area": "5J",
                      "country": "All countries",
                      "date": "2025-S2",
                      "value": 669545338239000,
                      "unit": "USD"
                    }
                  ],
                  "series": {
                    "5J": {
                      "definition": "OTC derivatives outstanding from the semiannual survey of dealers: notional amounts (gross value of all open contracts) and gross market values (co…",
                      "title": "OTC derivatives outstanding: Outstanding - notional amounts · Total (all risk categories) · All countries",
                      "source_key": "H.A.A.D.5J.A.5J.A.TO1.TO1.A.A.3.C",
                      "dataflow": "WS_OTC_DERIV2"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), OTC derivatives outstanding",
                    "url": "https://data.bis.org/topics/OTC_DER"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 1,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_derivatives?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Listing market to search within (for example stocks vs other markets).",
            "schema": {
              "type": "string",
              "enum": [
                "otc",
                "exchange"
              ],
              "default": "otc"
            }
          },
          {
            "name": "reporting_country",
            "in": "query",
            "required": false,
            "description": "OTC outstanding: `5J` only. OTC turnover: a Triennial Survey reporter (e.g. US). Exchange-traded: region `8A`–`8K` or a mapped country (US→`8B`).",
            "schema": {
              "type": "string",
              "default": "`5J` / `8A`"
            }
          },
          {
            "name": "counterparty_country",
            "in": "query",
            "required": false,
            "description": "OTC: country of the counterparty (not the reporting dealer). Empty is all countries.",
            "schema": {
              "type": "string",
              "default": "5J"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "OTC outstanding: semiannual. Turnover: annual. Exchange-traded: monthly, quarterly or annual.",
            "schema": {
              "type": "string",
              "enum": [
                "monthly",
                "quarterly",
                "semiannual",
                "annual"
              ],
              "default": "(by market)"
            }
          },
          {
            "name": "risk",
            "in": "query",
            "required": false,
            "description": "Underlying risk category of the contracts.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "interest_rate",
                "fx",
                "equity",
                "commodity",
                "credit"
              ]
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "Contract type (forwards, swaps, options, …).",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "counterparty_sector",
            "in": "query",
            "required": false,
            "description": "Counterparty sector of the contract.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "maturity",
            "in": "query",
            "required": false,
            "description": "Remaining maturity of the contract.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "rating",
            "in": "query",
            "required": false,
            "description": "Credit rating of the underlying.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "How the contracts are measured.",
            "schema": {
              "type": "string",
              "enum": [
                "notional",
                "gross_market_value",
                "turnover"
              ],
              "default": "notional"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "full_titles",
            "in": "query",
            "required": false,
            "description": "Use the full BIS series title instead of the short label.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/BIS_get_payment_statistics": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_payment_statistics",
        "summary": "Payment Statistics",
        "description": "BIS/CPMI payment statistics for named countries, annual: cashless payments, cards, ATMs, terminals, currency in circulation and payment systems, by instrument; rows carry a `label`.",
        "responses": {
          "200": {
            "description": "Payment Statistics response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "payment_statistics": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "label": {
                            "type": "string",
                            "description": "Human-readable label: a field name, or (BIS detail series) what tells this series apart."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "BIS/CPMI payment statistics rows, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "US|Cards · Units · Cards, with a cash function": {
                          "type": "object",
                          "description": "US|Cards · Units · Cards, with a cash function.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "US|Cards · Units · Cards, with a debit function": {
                          "type": "object",
                          "description": "US|Cards · Units · Cards, with a debit function.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        },
                        "US|Cards · Units · Cards, with a credit function": {
                          "type": "object",
                          "description": "US|Cards · Units · Cards, with a credit function.",
                          "properties": {
                            "title": {
                              "type": "string",
                              "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                            },
                            "source_key": {
                              "type": "string",
                              "description": "BIS series key (dimension codes in BIS order), e.g. D.US."
                            },
                            "dataflow": {
                              "type": "string",
                              "description": "BIS dataflow the series comes from, e.g. WS_CBPOL."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "payment_statistics": [
                    {
                      "area": "US",
                      "country": "United States",
                      "label": "Cards · Units · Cards, with a cash function",
                      "date": "2024",
                      "value": 1284500000,
                      "unit": "units"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "label": "Cards · Units · Cards, with a credit function",
                      "date": "2024",
                      "value": 1215500310,
                      "unit": "units"
                    },
                    {
                      "area": "US",
                      "country": "United States",
                      "label": "Cards · Units · Cards, with a debit function",
                      "date": "2024",
                      "value": 359300000,
                      "unit": "units"
                    }
                  ],
                  "definition": "CPMI payment statistics, as reported by the national central bank to the BIS Committee on Payments and Market Infrastructures; definitions follow t…",
                  "series": {
                    "US|Cards · Units · Cards, with a cash function": {
                      "title": "United States - Number of Cards, Cards, with a cash function",
                      "source_key": "A.US.T.N.N.Z.Z.Z.B",
                      "dataflow": "WS_CPMI_CT1"
                    },
                    "US|Cards · Units · Cards, with a debit function": {
                      "title": "United States - Number of Cards, Cards, with a debit function",
                      "source_key": "A.US.T.N.N.Z.Z.Z.C",
                      "dataflow": "WS_CPMI_CT1"
                    },
                    "US|Cards · Units · Cards, with a credit function": {
                      "title": "United States - Number of Cards, Cards, with a credit function",
                      "source_key": "A.US.T.N.N.Z.Z.Z.E",
                      "dataflow": "WS_CPMI_CT1"
                    }
                  },
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), CPMI payment statistics",
                    "url": "https://data.bis.org/topics/CPMI_CT"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_get_payment_statistics?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First date of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and monthly) or ten years (quarterly and coarser).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": true,
            "description": "Country or area code to filter on (ISO where applicable).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dataset",
            "in": "query",
            "required": false,
            "description": "Which CPMI table to read.",
            "schema": {
              "type": "string",
              "enum": [
                "comparative",
                "systems_comparative",
                "cashless_detail",
                "devices",
                "institutions",
                "macro",
                "participants",
                "systems"
              ],
              "default": "comparative"
            }
          },
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "Payment instrument or related statistic. Empty defaults to cashless_payments; when that country has none (e.g. euro area), other comparative headline series are returned instead.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "cashless_payments",
                  "fast_payments",
                  "cards",
                  "terminals",
                  "atms",
                  "currency_in_circulation",
                  "cash_withdrawals",
                  "bank_branches",
                  "banks",
                  "accounts",
                  "gdp",
                  "gdp_per_capita",
                  "population",
                  "central_bank_deposits",
                  "interbank_deposits"
                ]
              }
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "Payment instrument in the comparative tables (credit transfers, cards, …). Leave empty for every series, including population and GDP. The value `all` is only the cashless all-instruments total.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Value of payments or number of transactions.",
            "schema": {
              "type": "number",
              "enum": [
                "value",
                "number"
              ]
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit for returned values (for example percent of GDP vs local currency).",
            "schema": {
              "type": "string",
              "enum": [
                "usd",
                "units",
                "annual_growth",
                "annual_real_growth",
                "percent_of_gdp",
                "usd_per_inhabitant",
                "per_inhabitant",
                "per_transaction",
                "per_day"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "Keep series whose label contains this text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed (e.g. rate decision dates). Pages are of those rows, not of every calendar day.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/BIS_get_release_calendar": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_get_release_calendar",
        "summary": "Release Calendar",
        "description": "When BIS publishes its datasets: release date, dataset, period released and type, soonest first. Default: the next 30 days; pass dates to look back.",
        "responses": {
          "200": {
            "description": "Release Calendar response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "release_calendar": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "release_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Date the source publishes (or published) the release."
                          },
                          "dataset": {
                            "type": "string",
                            "description": "Macro dataset name, e.g. inflation."
                          },
                          "category": {
                            "type": "string",
                            "description": "BIS release calendar category code, e.g. CBPOL."
                          },
                          "period": {
                            "type": "string",
                            "description": "Statement/metrics period type: annual, quarterly, ttm, or FMP slices Q1–Q4 / FY. On BIS release rows, the data period covered (e.g. 2026-09)."
                          },
                          "type": {
                            "type": "string",
                            "description": "Discriminating type for this object."
                          },
                          "frequency": {
                            "type": "string",
                            "description": "Frequency of the data: daily, weekly, monthly, quarterly, semiannual or annual; for a dividend, payments per year (1, 2, 4, 12)."
                          },
                          "release_dates": {
                            "type": "string",
                            "description": "The dates a repeating release has in the window, soonest first: BIS, a list of dates; FRED, an object with `count` and the `dates` (up to five), or `count`, `first` and `last`."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Release dates (BIS or FRED), soonest first."
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "release_calendar": [
                    {
                      "release_date": "2026-10-22",
                      "dataset": "Central bank policy rates",
                      "category": "CBPOL",
                      "period": "2026-09 to 2026-11",
                      "type": "Daily and monthly data",
                      "frequency": "monthly",
                      "release_dates": [
                        "2026-10-22",
                        "2026-10-29",
                        "2026-11-05",
                        "2026-11-12",
                        "2026-11-19"
                      ]
                    }
                  ],
                  "note": "Releases from 2026-10-21 to 2026-11-20, soonest first (dates are BIS-announced and may change).",
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), BIS release calendar",
                    "url": "https://www.bis.org/statistics/relcal.htm"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First release date. Empty: today, or 30 days before end_date when that is in the past.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last release date. Empty: today when `start_date` is set; with neither date, 30 days after today.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "dataset",
            "in": "query",
            "required": false,
            "description": "BIS release-calendar dataset(s), same titles as [data.bis.org/release-calendar](https://data.bis.org/release-calendar). Keywords still accepted. Empty returns every dataset.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "Central bank policy rates",
                  "Bilateral exchange rates",
                  "Effective exchange rates",
                  "Consumer prices",
                  "Central bank total assets",
                  "Credit to the non-financial sector",
                  "Credit-to-GDP gaps",
                  "Debt service ratios",
                  "Selected residential property prices",
                  "Residential property prices",
                  "Commercial property prices",
                  "Property prices",
                  "Global liquidity",
                  "International debt securities",
                  "Debt securities statistics",
                  "Locational banking statistics",
                  "Consolidated banking statistics",
                  "OTC derivatives outstanding",
                  "Exchange-traded derivatives statistics",
                  "Triennial Survey (OTC derivatives and FX turnover)",
                  "Payments and financial market infrastructures",
                  "Retail payments, currency and related indicators",
                  "Financial market infrastructures"
                ]
              }
            }
          }
        ]
      }
    },
    "/BIS_search_series": {
      "get": {
        "tags": [
          "BIS statistics"
        ],
        "operationId": "BIS_search_series",
        "summary": "Search Series",
        "description": "Find which BIS_get_* tool, with which arguments, returns a figure, from free text such as 'household debt service Spain' (countries named go into the example arguments).",
        "responses": {
          "200": {
            "description": "Search Series response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tool": {
                            "type": "string",
                            "description": "Tool name."
                          },
                          "returns": {
                            "type": "string",
                            "description": "What the matching tool returns."
                          },
                          "dataflows": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "BIS dataflows the tool reads."
                          },
                          "example_arguments": {
                            "type": "object",
                            "description": "Example arguments for the matching tool.",
                            "properties": {
                              "country": {
                                "type": "string",
                                "description": "Country or currency area."
                              },
                              "borrower": {
                                "type": "string",
                                "description": "Borrower sector, e.g. households or non_financial_corporations."
                              }
                            },
                            "additionalProperties": true
                          },
                          "score": {
                            "type": "integer",
                            "description": "Relevance of the match."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Search hits, best first, with the tool and arguments that return each."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "dataflows_covered": {
                      "type": "integer",
                      "description": "Dataflows covered."
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "matches": [
                    {
                      "tool": "BIS_get_debt_service_ratio",
                      "returns": "Debt service ratios: interest plus amortisation as a share of income, by borrower sector.",
                      "dataflows": [
                        "WS_DSR"
                      ],
                      "example_arguments": {
                        "country": "US",
                        "borrower": "households"
                      },
                      "score": 5
                    },
                    {
                      "tool": "BIS_get_credit",
                      "returns": "Credit to households, companies or government (percent of GDP, local currency or USD), quarterly.",
                      "dataflows": [
                        "WS_TC"
                      ],
                      "example_arguments": {
                        "country": "ES",
                        "borrower": "households"
                      },
                      "score": 4
                    },
                    {
                      "tool": "BIS_get_debt_securities",
                      "returns": "Debt securities outstanding, issuance and redemptions by issuer country and sector.",
                      "dataflows": [
                        "WS_DEBT_SEC2_PUB",
                        "WS_NA_SEC_C3",
                        "WS_NA_SEC_DSS"
                      ],
                      "example_arguments": {
                        "country": "US",
                        "measure": "outstanding"
                      },
                      "score": 2
                    },
                    {
                      "tool": "BIS_get_property_prices",
                      "returns": "Residential and commercial property price indices, nominal or real, quarterly.",
                      "dataflows": [
                        "WS_CPP",
                        "WS_DPP",
                        "WS_SPP"
                      ],
                      "example_arguments": {
                        "country": "US,GB"
                      },
                      "score": 1
                    }
                  ],
                  "page": 1,
                  "pages": 1,
                  "count": 4,
                  "note": "Page 1 of 1 (4 matches); pass next_cursor as cursor, open next_page_url, or set page=N to jump.",
                  "dataflows_covered": 29,
                  "attribution": {
                    "source": "Bank for International Settlements (BIS), data portal",
                    "url": "https://data.bis.org/topics"
                  },
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/BIS_search_series?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "What you need in plain words, e.g. `house prices in Spain`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Result page number (1 is newest / first page). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_interest_rates": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_interest_rates",
        "summary": "Interest Rates",
        "description": "US interest rates from FRED, in percent. Default: the effective fed funds rate (DFF; FEDFUNDS when monthly) and the 2-year and 10-year Treasury yields (DGS2, DGS10).",
        "responses": {
          "200": {
            "description": "Interest Rates response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "interest_rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rate": {
                            "type": "string",
                            "description": "Policy rate in percent (get_macro_data), or the FRED rate option of the row, e.g. treasury_10y."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Interest rate rows, newest first: BIS policy rates, or US rates and Treasury yields from FRED."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "units_as_published": {
                      "type": "string",
                      "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "fed_funds": {
                          "type": "object",
                          "description": "Fed funds.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "treasury_2y": {
                          "type": "object",
                          "description": "Treasury 2y.",
                          "properties": {
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "treasury_10y": {
                          "type": "object",
                          "description": "Treasury 10y.",
                          "properties": {
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "interest_rates": [
                    {
                      "rate": "fed_funds",
                      "date": "2026-10-19",
                      "value": 3.83,
                      "unit": "percent"
                    },
                    {
                      "rate": "treasury_2y",
                      "date": "2026-10-19",
                      "value": 3.61,
                      "unit": "percent"
                    },
                    {
                      "rate": "treasury_10y",
                      "date": "2026-10-19",
                      "value": 4.18,
                      "unit": "percent"
                    }
                  ],
                  "definition": "Yield on actively traded US Treasury securities adjusted to a constant maturity, interpolated by the Treasury from the daily yield curve; quoted on an investment basis.",
                  "units_as_published": "Percent",
                  "seasonal_adjustment": "Not Seasonally Adjusted",
                  "licence_tier": "public_domain",
                  "series": {
                    "fed_funds": {
                      "definition": "The federal funds rate is the interest rate at which depository institutions trade federal funds (balances held at Federal Reserve Banks) with each other overnight.",
                      "fred_id": "DFF",
                      "last_updated": "2026-10-20"
                    },
                    "treasury_2y": {
                      "fred_id": "DGS2",
                      "last_updated": "2026-10-20"
                    },
                    "treasury_10y": {
                      "fred_id": "DGS10",
                      "last_updated": "2026-10-20"
                    }
                  },
                  "attribution": {
                    "source": "Board of Governors of the Federal Reserve System (US) via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/DFF",
                      "https://fred.stlouisfed.org/series/DGS2",
                      "https://fred.stlouisfed.org/series/DGS10"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_interest_rates?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "daily",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": false,
            "description": "Comma-separated, e.g. `fed_funds`, `treasury`, `sofr`, `mortgage_30y`, `yield_spread_10y2y`.",
            "schema": {
              "type": "string",
              "default": "fed_funds, treasury 2y and 10y"
            }
          },
          {
            "name": "maturity",
            "in": "query",
            "required": false,
            "description": "Treasury maturities, e.g. `2y,10y` (1m to 30y).",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_inflation": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_inflation",
        "summary": "Inflation",
        "description": "US inflation from FRED, monthly. Default: CPI (CPIAUCSL) and core CPI (CPILFESL) as year-on-year percent.",
        "responses": {
          "200": {
            "description": "Inflation response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "inflation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Inflation rows, newest first (get_macro_data: CPI and PCE series; FRED_get_inflation: FRED)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "core_pce": {
                          "type": "object",
                          "description": "Core pce.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "seasonal_adjustment": {
                              "type": "string",
                              "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "licence_tier": {
                              "type": "string",
                              "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "inflation": [
                    {
                      "measure": "core_pce",
                      "date": "2026-08",
                      "value": 2.71,
                      "unit": "percent, year-on-year"
                    },
                    {
                      "measure": "core_pce",
                      "date": "2026-07",
                      "value": 2.78,
                      "unit": "percent, year-on-year"
                    },
                    {
                      "measure": "core_pce",
                      "date": "2026-06",
                      "value": 2.74,
                      "unit": "percent, year-on-year"
                    }
                  ],
                  "series": {
                    "core_pce": {
                      "definition": "The PCE price index excluding food and energy, a measure of the prices that people living in the United States pay for goods and services.",
                      "units_as_published": "Index 2017=100",
                      "seasonal_adjustment": "Seasonally Adjusted",
                      "source": "U.S. Bureau of Economic Analysis",
                      "licence_tier": "public_domain",
                      "fred_id": "PCEPILFE",
                      "last_updated": "2026-09-26"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Bureau of Economic Analysis via FRED, Federal Reserve Bank of St. Louis",
                    "url": "https://fred.stlouisfed.org/series/PCEPILFE"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_inflation?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "daily",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: cpi, core_cpi, pce, core_pce, breakeven_5y, breakeven_10y.",
            "schema": {
              "type": "string",
              "default": "cpi, core_cpi"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "year_on_year"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_labor_market": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_labor_market",
        "summary": "Labor Market",
        "description": "The US labor market from FRED, in full units. Default: the unemployment rate (UNRATE) and nonfarm payrolls (PAYEMS).",
        "responses": {
          "200": {
            "description": "Labor Market response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "labor_market": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED labor market rows, newest first."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "payrolls": {
                          "type": "object",
                          "description": "Payrolls.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "seasonal_adjustment": {
                              "type": "string",
                              "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "licence_tier": {
                              "type": "string",
                              "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "labor_market": [
                    {
                      "measure": "payrolls",
                      "date": "2026-09",
                      "value": 142000,
                      "unit": "persons, change"
                    },
                    {
                      "measure": "payrolls",
                      "date": "2026-08",
                      "value": 98000,
                      "unit": "persons, change"
                    },
                    {
                      "measure": "payrolls",
                      "date": "2026-07",
                      "value": 121000,
                      "unit": "persons, change"
                    }
                  ],
                  "series": {
                    "payrolls": {
                      "definition": "All Employees: Total Nonfarm, commonly known as Total Nonfarm Payroll, is a measure of the number of U.S. workers in the economy.",
                      "units_as_published": "Thousands of Persons",
                      "seasonal_adjustment": "Seasonally Adjusted",
                      "source": "U.S. Bureau of Labor Statistics",
                      "licence_tier": "public_domain",
                      "fred_id": "PAYEMS",
                      "last_updated": "2026-10-02"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Bureau of Labor Statistics via FRED, Federal Reserve Bank of St. Louis",
                    "url": "https://fred.stlouisfed.org/series/PAYEMS"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_labor_market?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: unemployment_rate, payrolls, initial_claims, continuing_claims, participation, job_openings, hourly_earnings, u6.",
            "schema": {
              "type": "string",
              "default": "unemployment_rate, payrolls"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_gdp": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_gdp",
        "summary": "GDP",
        "description": "US GDP from FRED, quarterly, USD in full units. Default: real GDP growth (A191RL1Q225SBEA).",
        "responses": {
          "200": {
            "description": "GDP response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gdp": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED GDP rows, newest first."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "nominal": {
                          "type": "object",
                          "description": "Nominal.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "real_growth": {
                          "type": "object",
                          "description": "Real growth.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "gdp": [
                    {
                      "measure": "real_growth",
                      "date": "2026-Q2",
                      "value": 2.4,
                      "unit": "percent, annualized"
                    },
                    {
                      "measure": "nominal",
                      "date": "2026-Q2",
                      "value": 31254300000000,
                      "unit": "USD, seasonally adjusted annual rate"
                    }
                  ],
                  "seasonal_adjustment": "Seasonally Adjusted Annual Rate",
                  "licence_tier": "public_domain",
                  "series": {
                    "nominal": {
                      "definition": "Gross domestic product (GDP), the featured measure of U.S. output, is the market value of the goods and services produced by labor and property located in the United States.",
                      "units_as_published": "Billions of Dollars",
                      "fred_id": "GDP",
                      "last_updated": "2026-09-25"
                    },
                    "real_growth": {
                      "definition": "Growth of US real GDP on the previous quarter, at a seasonally adjusted annual rate (already annualized).",
                      "units_as_published": "Percent Change from Preceding Period",
                      "fred_id": "A191RL1Q225SBEA",
                      "last_updated": "2026-09-25"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Bureau of Economic Analysis via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/A191RL1Q225SBEA",
                      "https://fred.stlouisfed.org/series/GDP"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_gdp?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: real_growth, nominal, real, consumption, investment, government, net_exports.",
            "schema": {
              "type": "string",
              "default": "real_growth"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_money_and_fed": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_money_and_fed",
        "summary": "Money and Fed",
        "description": "US money and the Federal Reserve balance sheet from FRED, USD in full units. Default: M2 (M2SL) and Fed total assets (WALCL, weekly).",
        "responses": {
          "200": {
            "description": "Money and Fed response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "money_and_fed": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED money supply and Fed balance sheet rows, newest first."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "fed_assets": {
                          "type": "object",
                          "description": "Fed assets.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "seasonal_adjustment": {
                              "type": "string",
                              "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "m2": {
                          "type": "object",
                          "description": "M2.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "seasonal_adjustment": {
                              "type": "string",
                              "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "money_and_fed": [
                    {
                      "measure": "fed_assets",
                      "date": "2026-10-15",
                      "value": 6585412000000,
                      "unit": "USD"
                    },
                    {
                      "measure": "m2",
                      "date": "2026-09",
                      "value": 22412300000000,
                      "unit": "USD"
                    }
                  ],
                  "licence_tier": "public_domain",
                  "series": {
                    "fed_assets": {
                      "definition": "Total assets of all Federal Reserve Banks, Wednesday level, from the H.4.1 release.",
                      "units_as_published": "Millions of U.S. Dollars",
                      "seasonal_adjustment": "Not Seasonally Adjusted",
                      "fred_id": "WALCL",
                      "last_updated": "2026-10-16"
                    },
                    "m2": {
                      "definition": "M2 consists of M1 plus small-denomination time deposits and balances in retail money market funds.",
                      "units_as_published": "Billions of Dollars",
                      "seasonal_adjustment": "Seasonally Adjusted",
                      "fred_id": "M2SL",
                      "last_updated": "2026-10-28"
                    }
                  },
                  "attribution": {
                    "source": "Board of Governors of the Federal Reserve System (US) via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/M2SL",
                      "https://fred.stlouisfed.org/series/WALCL"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_money_and_fed?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "daily",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: m2, fed_assets, m1, reverse_repo, reserve_balances, monetary_base.",
            "schema": {
              "type": "string",
              "default": "m2, fed_assets"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_housing": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_housing",
        "summary": "Housing",
        "description": "US housing from FRED. Default: housing starts (HOUST) and building permits (PERMIT), monthly, in units at a seasonally adjusted annual rate.",
        "responses": {
          "200": {
            "description": "Housing response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "housing": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED housing rows, newest first."
                    },
                    "units_as_published": {
                      "type": "string",
                      "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "permits": {
                          "type": "object",
                          "description": "Permits.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "starts": {
                          "type": "object",
                          "description": "Starts.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "housing": [
                    {
                      "measure": "starts",
                      "date": "2026-09",
                      "value": 1356000,
                      "unit": "units, seasonally adjusted annual rate"
                    },
                    {
                      "measure": "permits",
                      "date": "2026-09",
                      "value": 1412000,
                      "unit": "units, seasonally adjusted annual rate"
                    }
                  ],
                  "units_as_published": "Thousands of Units",
                  "seasonal_adjustment": "Seasonally Adjusted Annual Rate",
                  "licence_tier": "public_domain",
                  "series": {
                    "permits": {
                      "definition": "New privately-owned housing units authorized in permit-issuing places.",
                      "fred_id": "PERMIT",
                      "last_updated": "2026-10-17"
                    },
                    "starts": {
                      "definition": "New privately-owned housing units started, total units.",
                      "fred_id": "HOUST",
                      "last_updated": "2026-10-17"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Census Bureau via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/HOUST",
                      "https://fred.stlouisfed.org/series/PERMIT"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_housing?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: starts, permits, existing_sales, median_price, mortgage_rate, case_shiller.",
            "schema": {
              "type": "string",
              "default": "starts, permits"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_activity": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_activity",
        "summary": "Activity",
        "description": "US economic activity from FRED, monthly. Default: industrial production (INDPRO, index) and retail sales (RSAFS, USD in full units).",
        "responses": {
          "200": {
            "description": "Activity response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "activity": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED economic activity rows, newest first."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "industrial_production": {
                          "type": "object",
                          "description": "Industrial production.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "retail_sales": {
                          "type": "object",
                          "description": "Retail sales.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "activity": [
                    {
                      "measure": "industrial_production",
                      "date": "2026-09",
                      "value": 0.31,
                      "unit": "percent, month-on-month"
                    },
                    {
                      "measure": "retail_sales",
                      "date": "2026-09",
                      "value": 0.42,
                      "unit": "percent, month-on-month"
                    }
                  ],
                  "seasonal_adjustment": "Seasonally Adjusted",
                  "licence_tier": "public_domain",
                  "series": {
                    "industrial_production": {
                      "definition": "The industrial production index measures the real output of all relevant establishments located in the United States.",
                      "units_as_published": "Index 2017=100",
                      "source": "Board of Governors of the Federal Reserve System (US)",
                      "fred_id": "INDPRO",
                      "last_updated": "2026-10-17"
                    },
                    "retail_sales": {
                      "definition": "Advance estimates of sales of retail and food services firms, from the Monthly Retail Trade Survey.",
                      "units_as_published": "Millions of Dollars",
                      "source": "U.S. Census Bureau",
                      "fred_id": "RSAFS",
                      "last_updated": "2026-10-16"
                    }
                  },
                  "attribution": {
                    "source": "Board of Governors of the Federal Reserve System (US); U.S. Census Bureau via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/INDPRO",
                      "https://fred.stlouisfed.org/series/RSAFS"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_activity?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: industrial_production, retail_sales, capacity_utilization, durable_goods, business_inventories, consumer_sentiment.",
            "schema": {
              "type": "string",
              "default": "industrial_production, retail_sales"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_fiscal": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_fiscal",
        "summary": "Fiscal",
        "description": "US federal finances from FRED, USD in full units. Default: total public debt (GFDEBTN, quarterly) and the federal surplus or deficit (FYFSD, by fiscal year, October to September).",
        "responses": {
          "200": {
            "description": "Fiscal response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fiscal": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED federal finance rows, newest first."
                    },
                    "units_as_published": {
                      "type": "string",
                      "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "federal_debt": {
                          "type": "object",
                          "description": "Federal debt.",
                          "properties": {
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "deficit": {
                          "type": "object",
                          "description": "Deficit.",
                          "properties": {
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "fiscal": [
                    {
                      "measure": "federal_debt",
                      "date": "2026-Q2",
                      "value": 37214508000000,
                      "unit": "USD"
                    },
                    {
                      "measure": "deficit",
                      "date": "2025",
                      "value": -1775000000000,
                      "unit": "USD"
                    }
                  ],
                  "units_as_published": "Millions of Dollars",
                  "seasonal_adjustment": "Not Seasonally Adjusted",
                  "licence_tier": "public_domain",
                  "series": {
                    "federal_debt": {
                      "source": "U.S. Department of the Treasury. Fiscal Service",
                      "fred_id": "GFDEBTN",
                      "last_updated": "2026-09-25"
                    },
                    "deficit": {
                      "source": "U.S. Office of Management and Budget",
                      "fred_id": "FYFSD",
                      "last_updated": "2026-02-03"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Department of the Treasury. Fiscal Service; U.S. Office of Management and Budget via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/GFDEBTN",
                      "https://fred.stlouisfed.org/series/FYFSD"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_fiscal?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: federal_debt, deficit, receipts, outlays, interest_outlays.",
            "schema": {
              "type": "string",
              "default": "federal_debt, deficit"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_financial_conditions": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_financial_conditions",
        "summary": "Financial Conditions",
        "description": "US financial conditions from FRED. Default: the Chicago Fed National Financial Conditions Index (NFCI, weekly) and the nominal broad US dollar index (DTWEXBGS, daily).",
        "responses": {
          "200": {
            "description": "Financial Conditions response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "financial_conditions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED financial conditions rows, newest first."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "dollar_index": {
                          "type": "object",
                          "description": "Dollar index.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "nfci": {
                          "type": "object",
                          "description": "Nfci.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "financial_conditions": [
                    {
                      "measure": "dollar_index",
                      "date": "2026-10-17",
                      "value": 121.84,
                      "unit": "index (Jan 2006 = 100)"
                    },
                    {
                      "measure": "nfci",
                      "date": "2026-10-10",
                      "value": -0.52,
                      "unit": "index"
                    }
                  ],
                  "seasonal_adjustment": "Not Seasonally Adjusted",
                  "licence_tier": "public_domain",
                  "series": {
                    "dollar_index": {
                      "definition": "A weighted average of the foreign exchange value of the U.S. dollar against the currencies of a broad group of major U.S. trading partners.",
                      "units_as_published": "Index Jan 2006=100",
                      "source": "Board of Governors of the Federal Reserve System (US)",
                      "fred_id": "DTWEXBGS",
                      "last_updated": "2026-10-20"
                    },
                    "nfci": {
                      "definition": "The NFCI provides a comprehensive weekly update on U.S. financial conditions in money markets, debt and equity markets and the traditional and shadow banking systems.",
                      "units_as_published": "Index",
                      "source": "Federal Reserve Bank of Chicago",
                      "fred_id": "NFCI",
                      "last_updated": "2026-10-15"
                    }
                  },
                  "attribution": {
                    "source": "Board of Governors of the Federal Reserve System (US); Federal Reserve Bank of Chicago via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/NFCI",
                      "https://fred.stlouisfed.org/series/DTWEXBGS"
                    ]
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_financial_conditions?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "daily",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: nfci, dollar_index, high_yield_spread, ig_spread, vix.",
            "schema": {
              "type": "string",
              "default": "nfci, dollar_index"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_international": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_international",
        "summary": "International",
        "description": "OECD indicators of other countries from FRED (Main Economic Indicators): the harmonized unemployment rate (LRHUTTTT..M156S, monthly) and real GDP growth on the previous quarter (NAEXKP01..Q657S) by default, plus CPI inflation year on year and the immediate (call money / interbank) interest rate.",
        "responses": {
          "200": {
            "description": "International response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "international": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "area": {
                            "type": "string",
                            "description": "Reference area code: ISO country code (BR) or BIS aggregate (XM euro area, 5R advanced economies)."
                          },
                          "country": {
                            "type": "string",
                            "description": "Country or currency area."
                          },
                          "measure": {
                            "type": "string",
                            "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED (OECD) rows per country and measure, newest first."
                    },
                    "definition": {
                      "type": "string",
                      "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                    },
                    "units_as_published": {
                      "type": "string",
                      "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                    },
                    "seasonal_adjustment": {
                      "type": "string",
                      "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                    },
                    "licence_tier": {
                      "type": "string",
                      "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "GB|unemployment": {
                          "type": "object",
                          "description": "GB|unemployment.",
                          "properties": {
                            "citation": {
                              "type": "string",
                              "description": "The owner's copyright notice and FRED's recommended citation, verbatim; present when the licence tier requires it."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        },
                        "JP|unemployment": {
                          "type": "object",
                          "description": "JP|unemployment.",
                          "properties": {
                            "citation": {
                              "type": "string",
                              "description": "The owner's copyright notice and FRED's recommended citation, verbatim; present when the licence tier requires it."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        },
                        "citation": {
                          "type": "string",
                          "description": "The owner's copyright notice and FRED's recommended citation, verbatim; present when the licence tier requires it."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "international": [
                    {
                      "area": "GB",
                      "country": "United Kingdom",
                      "measure": "unemployment",
                      "date": "2026-07",
                      "value": 4.9,
                      "unit": "percent"
                    },
                    {
                      "area": "JP",
                      "country": "Japan",
                      "measure": "unemployment",
                      "date": "2026-08",
                      "value": 2.5,
                      "unit": "percent"
                    }
                  ],
                  "definition": "Unemployed people as a percentage of the labor force, harmonized by the OECD across countries, seasonally adjusted.",
                  "units_as_published": "Percent",
                  "seasonal_adjustment": "Seasonally Adjusted",
                  "licence_tier": "citation_required",
                  "series": {
                    "GB|unemployment": {
                      "citation": "Copyright, 2016, OECD. Reprinted with permission. Organization for Economic Co-operation and Development, Infra-Annual Labor Statistics: Monthly Unemployment Rate Total: 15 Years or over for United Kingdom [LRHUTTTTGBM156S], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/LRHUTTTTGBM156S",
                      "fred_id": "LRHUTTTTGBM156S",
                      "last_updated": "2026-10-14"
                    },
                    "JP|unemployment": {
                      "citation": "Copyright, 2016, OECD. Reprinted with permission. Organization for Economic Co-operation and Development, Infra-Annual Labor Statistics: Monthly Unemployment Rate Total: 15 Years or over for Japan [LRHUTTTTJPM156S], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/LRHUTTTTJPM156S",
                      "fred_id": "LRHUTTTTJPM156S",
                      "last_updated": "2026-10-14"
                    }
                  },
                  "attribution": {
                    "source": "Organization for Economic Co-operation and Development via FRED, Federal Reserve Bank of St. Louis",
                    "url": [
                      "https://fred.stlouisfed.org/series/LRHUTTTTGBM156S",
                      "https://fred.stlouisfed.org/series/LRHUTTTTJPM156S"
                    ],
                    "citation": "Copyright, 2016, OECD. Reprinted with permission. … [LRHUTTTTGBM156S] … [LRHUTTTTJPM156S] …"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 2,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_international?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": true,
            "description": "Countries as ISO codes or names, comma-separated (GB, Japan; XM for the euro area).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Comma-separated: unemployment, gdp_growth, cpi, policy_rate.",
            "schema": {
              "type": "string",
              "default": "unemployment, gdp_growth"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_series": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_series",
        "summary": "Series",
        "description": "Any FRED series by id, in full units: the escape hatch for the series no concept tool names. Without dates: the latest value; with dates: history, newest first.",
        "responses": {
          "200": {
            "description": "Series response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "observations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "fred_id": {
                            "type": "string",
                            "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          },
                          "unit": {
                            "type": "string",
                            "description": "Unit the value is expressed in."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "FRED_get_series rows, newest first, one per series and period."
                    },
                    "series": {
                      "type": "object",
                      "description": "Series identifier inside a macro dataset (GPU prices: h100, h200, b200, b300); in BIS and FRED tools, per-series metadata (BIS: definition, effective_since, source_key; FRED: definition, units, licence tier, fred_id).",
                      "properties": {
                        "CPIAUCSL": {
                          "type": "object",
                          "description": "CPIAUCSL.",
                          "properties": {
                            "definition": {
                              "type": "string",
                              "description": "What a series measures (the BIS compilation note where BIS has one; the first paragraph of the FRED notes); at the top level when every series of the answer shares it (FRED: else the one most series share; a series without its own `definition` is defined by it)."
                            },
                            "units_as_published": {
                              "type": "string",
                              "description": "FRED's unit text, e.g. Billions of Dollars; values are returned in full units."
                            },
                            "seasonal_adjustment": {
                              "type": "string",
                              "description": "FRED seasonal adjustment, e.g. Seasonally Adjusted Annual Rate."
                            },
                            "source": {
                              "type": "string",
                              "description": "Publisher or official source; for a FRED series, the originating agency."
                            },
                            "licence_tier": {
                              "type": "string",
                              "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                            },
                            "fred_id": {
                              "type": "string",
                              "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                            },
                            "last_updated": {
                              "type": "string",
                              "format": "date",
                              "description": "When FRED last updated the series."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "observations": [
                    {
                      "fred_id": "CPIAUCSL",
                      "date": "2026-Q3",
                      "value": 2.94,
                      "unit": "percent, year-on-year"
                    },
                    {
                      "fred_id": "CPIAUCSL",
                      "date": "2026-Q2",
                      "value": 2.81,
                      "unit": "percent, year-on-year"
                    },
                    {
                      "fred_id": "CPIAUCSL",
                      "date": "2026-Q1",
                      "value": 2.88,
                      "unit": "percent, year-on-year"
                    }
                  ],
                  "series": {
                    "CPIAUCSL": {
                      "definition": "The Consumer Price Index for All Urban Consumers: All Items is a price index of a basket of goods and services paid by urban consumers.",
                      "units_as_published": "Index 1982-1984=100",
                      "seasonal_adjustment": "Seasonally Adjusted",
                      "source": "U.S. Bureau of Labor Statistics",
                      "licence_tier": "public_domain",
                      "fred_id": "CPIAUCSL",
                      "last_updated": "2026-10-15"
                    }
                  },
                  "attribution": {
                    "source": "U.S. Bureau of Labor Statistics via FRED, Federal Reserve Bank of St. Louis",
                    "url": "https://fred.stlouisfed.org/series/CPIAUCSL"
                  },
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_get_series?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start of the history. Leave both dates empty for the latest value. With only end_date: trailing five years (daily and weekly) or ten years.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "series_id",
            "in": "query",
            "required": true,
            "description": "FRED ids, comma-separated, up to 10, e.g. `UNRATE,DGS10`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Native or coarser than the selected series publishes. Finer than native is returned as published, not interpolated.",
            "schema": {
              "type": "string",
              "enum": [
                "native",
                "daily",
                "weekly",
                "monthly",
                "quarterly",
                "annual"
              ],
              "default": "native"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Transform the values, as FRED does: `change`, `percent_change`, `year_on_year`, `annualized`, `log`.",
            "schema": {
              "type": "string",
              "enum": [
                "level",
                "change",
                "percent_change",
                "year_on_year",
                "annualized",
                "log"
              ],
              "default": "level"
            }
          },
          {
            "name": "aggregation",
            "in": "query",
            "required": false,
            "description": "How `frequency` combines a period: `average`, `sum` or `end_of_period`.",
            "schema": {
              "type": "string",
              "enum": [
                "average",
                "sum",
                "end_of_period"
              ],
              "default": "average"
            }
          },
          {
            "name": "changes_only",
            "in": "query",
            "required": false,
            "description": "History only: keep rows where the value changed. Pages are of those rows, not of every published period.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "Values as first published on this past date (before revisions).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "History page (1 is newest). Ignored when `cursor` is set.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_get_release_calendar": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_get_release_calendar",
        "summary": "Release Calendar",
        "description": "When US data is released, for every source on FRED, soonest first, with the FRED tools each release updates (`covers`). Default: the next 30 days, limited to the releases behind the FRED concept tools; name a `source` or `release` for any other.",
        "responses": {
          "200": {
            "description": "Release Calendar response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "release_calendar": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "release_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Date the source publishes (or published) the release."
                          },
                          "release": {
                            "type": "string",
                            "description": "Release name, e.g. Employment Situation."
                          },
                          "release_id": {
                            "type": "integer",
                            "description": "FRED release id."
                          },
                          "source": {
                            "type": "string",
                            "description": "Publisher or official source; for a FRED series, the originating agency."
                          },
                          "covers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "FRED tools and options whose series the release updates."
                          },
                          "release_dates": {
                            "type": "object",
                            "description": "The dates a repeating release has in the window, soonest first: BIS, a list of dates; FRED, an object with `count` and the `dates` (up to five), or `count`, `first` and `last`.",
                            "properties": {
                              "count": {
                                "type": "integer",
                                "description": "Rows on this history page, or members in a group."
                              },
                              "first": {
                                "type": "string",
                                "format": "date",
                                "description": "First."
                              },
                              "last": {
                                "type": "number",
                                "description": "Last trade price."
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Release dates (BIS or FRED), soonest first."
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "release_calendar": [
                    {
                      "release_date": "2026-10-21",
                      "release": "H.15 Selected Interest Rates",
                      "release_id": 18,
                      "source": "Board of Governors of the Federal Reserve System (US)",
                      "covers": [
                        "FRED_get_interest_rates: fed_funds, treasury_2y, treasury_10y, prime"
                      ],
                      "release_dates": {
                        "count": 21,
                        "first": "2026-10-21",
                        "last": "2026-11-20"
                      }
                    },
                    {
                      "release_date": "2026-10-30",
                      "release": "Gross Domestic Product",
                      "release_id": 53,
                      "source": "U.S. Bureau of Economic Analysis",
                      "covers": [
                        "FRED_get_gdp: real_growth, nominal, real"
                      ]
                    },
                    {
                      "release_date": "2026-11-06",
                      "release": "Employment Situation",
                      "release_id": 50,
                      "source": "U.S. Bureau of Labor Statistics",
                      "covers": [
                        "FRED_get_labor_market: unemployment_rate, payrolls, participation, hourly_earnings, u6"
                      ]
                    }
                  ],
                  "note": "Releases from 2026-10-21 to 2026-11-20, soonest first (dates scheduled by each source and may change). Only releases that update the FRED_get_* tools' series; pass source or release for others.",
                  "attribution": {
                    "source": "FRED, Federal Reserve Bank of St. Louis, release calendar",
                    "url": "https://fred.stlouisfed.org/releases/calendar"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First release date. Empty: today, or 30 days before end_date when that is in the past. Together with end_date, at most one year.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "Release name on FRED (e.g. Employment Situation). Try-it lists releases on the cached calendar (narrowed by source when set); free text still matches by words.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "Originating agency on FRED (e.g. Bureau of Labor Statistics). Try-it lists the agencies on the cached calendar; free text still matches by words.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/FRED_search_series": {
      "get": {
        "tags": [
          "FRED statistics"
        ],
        "operationId": "FRED_search_series",
        "summary": "Search Series",
        "description": "Find which FRED tool, with which arguments, returns a series, from plain words such as 'core PCE' or 'jobless claims': the concept tools first, then FRED's own series search (any id, through `FRED_get_series`).",
        "responses": {
          "200": {
            "description": "Search Series response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "fred_id": {
                            "type": "string",
                            "description": "FRED series id, e.g. UNRATE; the series page is fred.stlouisfed.org/series/<fred_id>."
                          },
                          "title": {
                            "type": "string",
                            "description": "Role, headline, or section title; in FRED search hits, the series' short title."
                          },
                          "frequency": {
                            "type": "string",
                            "description": "Frequency of the data: daily, weekly, monthly, quarterly, semiannual or annual; for a dividend, payments per year (1, 2, 4, 12)."
                          },
                          "licence_tier": {
                            "type": "string",
                            "description": "public_domain, citation_required (cite `citation`) or pre_approval_required (never served)."
                          },
                          "tool": {
                            "type": "string",
                            "description": "Tool name."
                          },
                          "arguments": {
                            "type": "object",
                            "description": "Arguments that return the hit with its tool.",
                            "properties": {
                              "measure": {
                                "type": "string",
                                "description": "Measure of the row: a BIS variant (gap, ratio, trend) or the FRED option asked for (core_pce, payrolls)."
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Search hits, best first, with the tool and arguments that return each."
                    },
                    "page": {
                      "type": "integer",
                      "description": "1-based history page (1 is newest)."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "Number of history pages for this query."
                    },
                    "count": {
                      "type": "integer",
                      "description": "Rows on this history page, or members in a group."
                    },
                    "note": {
                      "type": "string",
                      "description": "Extra context for this row or payload."
                    },
                    "attribution": {
                      "type": "object",
                      "description": "The source to cite with the data: for GPU prices, the GPU index credit line; the BIS dataset and data.bis.org URL, or the originating agency via FRED with the FRED series URL (and the owner's citation where required).",
                      "properties": {
                        "source": {
                          "type": "string",
                          "description": "Publisher or official source; for a FRED series, the originating agency."
                        },
                        "url": {
                          "type": "string",
                          "description": "Link to the source document or article."
                        }
                      },
                      "additionalProperties": true
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "Opaque cursor of the next page; pass it back as `cursor`. Present only while more rows remain. Ignored when jumping with `page`."
                    },
                    "next_page_url": {
                      "type": "string",
                      "description": "The next page on the public REST endpoint (absolute URL). Present only while more rows remain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "matches": [
                    {
                      "fred_id": "PCEPILFE",
                      "title": "PCE price index less food and energy",
                      "frequency": "monthly",
                      "licence_tier": "public_domain",
                      "tool": "FRED_get_inflation",
                      "arguments": {
                        "measure": "core_pce"
                      }
                    },
                    {
                      "fred_id": "PCEPI",
                      "title": "PCE price index",
                      "frequency": "monthly",
                      "licence_tier": "public_domain",
                      "tool": "FRED_get_inflation",
                      "arguments": {
                        "measure": "pce"
                      }
                    },
                    {
                      "fred_id": "DPCCRV1Q225SBEA",
                      "title": "Personal consumption expenditures excluding food and energy (chain-type price index)",
                      "frequency": "quarterly",
                      "licence_tier": "public_domain",
                      "tool": "FRED_get_series",
                      "arguments": {
                        "series_id": "DPCCRV1Q225SBEA"
                      }
                    }
                  ],
                  "page": 1,
                  "pages": 4,
                  "count": 3,
                  "note": "Page 1 of 4 (3 matches); pass next_cursor as cursor, open next_page_url, or set page=N to jump.",
                  "attribution": {
                    "source": "FRED, Federal Reserve Bank of St. Louis",
                    "url": "https://fred.stlouisfed.org/"
                  },
                  "next_cursor": "eyJwIjoyfQ.example",
                  "next_page_url": "https://mcp.alphamomentum.ai/v1/FRED_search_series?cursor=eyJwIjoyfQ.example&apiKey=YOUR_API_KEY"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Plain words: 'core PCE', '10-year Treasury', 'jobless claims'.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page (1 is first). Ignored when cursor is set. The response has page and pages.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous response. On tools that return everything in one page, any value returns `400 Invalid cursor`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_market_regime": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_market_regime",
        "summary": "Market Regime",
        "description": "Market regime in one call: SPY trend, breadth, RSP/SPY, VIX and term structure, momentum-crash risk, next tier-1 release, regime label and the desk's long/short book split.",
        "responses": {
          "200": {
            "description": "Market Regime response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "as_of": {
                      "type": "string",
                      "description": "When the data was current: in GPU prices, when the GPU index generated the print behind the day's value (UTC, ISO 8601); in rankings snapshots, an object of as-of dates and context."
                    },
                    "session_state": {
                      "type": "string",
                      "description": "Regular hours, premarket, or after hours."
                    },
                    "regime_label": {
                      "type": "string",
                      "description": "Current market-regime label."
                    },
                    "suggested_mix": {
                      "type": "string",
                      "description": "Suggested long/short mix for the regime."
                    },
                    "regime_note": {
                      "type": "string",
                      "description": "Short explanation of the regime."
                    },
                    "spy": {
                      "type": "object",
                      "description": "SPY trend snapshot.",
                      "properties": {
                        "price": {
                          "type": "number",
                          "description": "Last price, or alias of stock_price in the screener."
                        },
                        "sma50": {
                          "type": "number",
                          "description": "50-day simple moving average."
                        },
                        "sma200": {
                          "type": "number",
                          "description": "200-day simple moving average."
                        },
                        "trend_score": {
                          "type": "number",
                          "description": "Trend score (sum of SMA legs)."
                        },
                        "lean": {
                          "type": "string",
                          "description": "Long, short, or neutral lean."
                        }
                      },
                      "additionalProperties": true
                    },
                    "breadth": {
                      "type": "object",
                      "description": "Market-breadth snapshot.",
                      "properties": {
                        "n_stocks": {
                          "type": "integer",
                          "description": "Number of stocks in the breadth universe."
                        },
                        "pct_above_50d": {
                          "type": "number",
                          "description": "Percent of names above the 50-day average."
                        },
                        "pct_above_200d": {
                          "type": "number",
                          "description": "Percent of names above the 200-day average."
                        },
                        "lean_long_count": {
                          "type": "integer",
                          "description": "Names leaning long on trend."
                        },
                        "lean_short_count": {
                          "type": "integer",
                          "description": "Names leaning short on trend."
                        }
                      },
                      "additionalProperties": true
                    },
                    "breadth_universe": {
                      "type": "object",
                      "description": "Universe breadth: highs, lows, percent above MAs.",
                      "properties": {
                        "n_stocks": {
                          "type": "integer",
                          "description": "Number of stocks in the breadth universe."
                        },
                        "pct_above_50d": {
                          "type": "number",
                          "description": "Percent of names above the 50-day average."
                        },
                        "pct_above_200d": {
                          "type": "number",
                          "description": "Percent of names above the 200-day average."
                        },
                        "new_highs": {
                          "type": "integer",
                          "description": "Count of new 52-week highs."
                        },
                        "new_lows": {
                          "type": "integer",
                          "description": "Count of new 52-week lows."
                        }
                      },
                      "additionalProperties": true
                    },
                    "rsp_spy_ratio_vs_sma50_pct": {
                      "type": "number",
                      "description": "Equal-weight vs SPY versus its 50-day average, percent."
                    },
                    "vix": {
                      "type": "number",
                      "description": "VIX spot."
                    },
                    "vix_3m": {
                      "type": "number",
                      "description": "3-month VIX."
                    },
                    "vix_term": {
                      "type": "number",
                      "description": "VIX term structure (3m minus spot)."
                    },
                    "hy_oas_bp": {
                      "type": "number",
                      "description": "High-yield option-adjusted spread, basis points."
                    },
                    "us10y": {
                      "type": "number",
                      "description": "10-year US Treasury yield, percent."
                    },
                    "us2y": {
                      "type": "number",
                      "description": "2-year US Treasury yield, percent."
                    },
                    "dxy": {
                      "type": "number",
                      "description": "US Dollar Index."
                    },
                    "wti": {
                      "type": "number",
                      "description": "WTI crude, USD/bbl."
                    },
                    "momentum_crash_risk": {
                      "type": "string",
                      "description": "Desk label for momentum-crash risk."
                    },
                    "sector_etfs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "symbol": {
                            "type": "string",
                            "description": "Ticker or instrument symbol."
                          },
                          "trend_score": {
                            "type": "number",
                            "description": "Trend score (sum of SMA legs)."
                          },
                          "lean": {
                            "type": "string",
                            "description": "Long, short, or neutral lean."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Sector ETF trend leans."
                    },
                    "regime_table": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "regime_label": {
                            "type": "string",
                            "description": "Current market-regime label."
                          },
                          "rule": {
                            "type": "string",
                            "description": "How this regime is classified."
                          },
                          "suggested_mix": {
                            "type": "string",
                            "description": "Suggested long/short mix for the regime."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Regime rules and suggested book mix."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "as_of": "2026-10-19T21:31:44+00:00",
                  "session_state": "closed",
                  "regime_label": "narrow_uptrend",
                  "suggested_mix": "50/50",
                  "regime_note": "Narrow breadth: longs above beta 2 wait.",
                  "spy": {
                    "price": 766.48,
                    "sma50": 768.37,
                    "sma200": 725.44,
                    "trend_score": 3,
                    "lean": "long"
                  },
                  "breadth": {
                    "n_stocks": 496,
                    "pct_above_50d": 42.3,
                    "pct_above_200d": 53.3,
                    "lean_long_count": 89,
                    "lean_short_count": 47
                  },
                  "breadth_universe": {
                    "n_stocks": 1680,
                    "pct_above_50d": 33.3,
                    "pct_above_200d": 46.2,
                    "new_highs": 27,
                    "new_lows": 26
                  },
                  "rsp_spy_ratio_vs_sma50_pct": -0.83,
                  "vix": 19.99,
                  "vix_3m": 20.5,
                  "vix_term": 0.975,
                  "hy_oas_bp": 331,
                  "us10y": 5.15,
                  "us2y": 4.77,
                  "dxy": 101.97,
                  "wti": 101.91,
                  "momentum_crash_risk": false,
                  "sector_etfs": [
                    {
                      "symbol": "XLK",
                      "trend_score": 4,
                      "lean": "long"
                    },
                    {
                      "symbol": "XLE",
                      "trend_score": 4,
                      "lean": "long"
                    },
                    {
                      "symbol": "XLY",
                      "trend_score": -1,
                      "lean": "neutral"
                    }
                  ],
                  "regime_table": [
                    {
                      "regime_label": "stress",
                      "rule": "VIX >= 30 or momentum_crash_risk",
                      "suggested_mix": "30/70"
                    },
                    {
                      "regime_label": "broad_uptrend",
                      "rule": "SPY lean long and >= 50% of large caps above their 50-day",
                      "suggested_mix": "70/30"
                    },
                    {
                      "regime_label": "narrow_uptrend",
                      "rule": "SPY lean long and < 50% above the 50-day",
                      "suggested_mix": "50/50"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "as_of",
            "in": "query",
            "required": false,
            "description": "A past close instead of now.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "now"
            }
          }
        ]
      }
    },
    "/get_option_chain": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_option_chain",
        "summary": "Option Chain",
        "description": "Option chain (15-minute delayed): per expiry DTE, monthly flag, earnings span, ATM IV; per contract the OCC symbol (`contract`), strike, type, `shares_per_contract`, last, volume, OI, IV, delta and `updated` (time of the day bar).",
        "responses": {
          "200": {
            "description": "Option Chain response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ticker": {
                      "type": "string",
                      "description": "Company ticker for this row (e.g. AAPL)."
                    },
                    "spot": {
                      "type": "number",
                      "description": "Spot level of the series."
                    },
                    "next_earnings_date": {
                      "type": "string",
                      "format": "date",
                      "description": "Next expected earnings date."
                    },
                    "expiries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "expiry": {
                            "type": "string",
                            "format": "date",
                            "description": "Option expiration date."
                          },
                          "dte": {
                            "type": "integer",
                            "description": "Days to expiration."
                          },
                          "is_monthly": {
                            "type": "boolean",
                            "description": "True if this is a standard monthly expiry."
                          },
                          "spans_earnings": {
                            "type": "boolean",
                            "description": "True if the expiry spans the next earnings date."
                          },
                          "atm_iv": {
                            "type": "number",
                            "description": "At-the-money implied volatility."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Option expiries in the chain."
                    },
                    "contracts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "contract": {
                            "type": "string",
                            "description": "OCC option contract symbol, e.g. O:AAPL261120C00270000."
                          },
                          "expiry": {
                            "type": "string",
                            "format": "date",
                            "description": "Option expiration date."
                          },
                          "strike": {
                            "type": "number",
                            "description": "Option strike."
                          },
                          "type": {
                            "type": "string",
                            "description": "Discriminating type for this object."
                          },
                          "shares_per_contract": {
                            "type": "integer",
                            "description": "Shares of the underlying per option contract (100 for standard contracts)."
                          },
                          "exercise_style": {
                            "type": "string",
                            "description": "Option exercise style, e.g. american."
                          },
                          "break_even_price": {
                            "type": "number",
                            "description": "Underlying price at which the option contract breaks even."
                          },
                          "fmv": {
                            "type": "number",
                            "description": "Fair market value; null when unavailable."
                          },
                          "bid": {
                            "type": "number",
                            "description": "Bid price: option contract bid, or the stock's last quote bid (null when quotes are unavailable)."
                          },
                          "ask": {
                            "type": "number",
                            "description": "Ask price: option contract ask, or the stock's last quote ask (null when quotes are unavailable)."
                          },
                          "mid": {
                            "type": "number",
                            "description": "Mid price."
                          },
                          "last": {
                            "type": "number",
                            "description": "Last trade price."
                          },
                          "volume": {
                            "type": "number",
                            "description": "Traded volume."
                          },
                          "oi": {
                            "type": "integer",
                            "description": "Oi."
                          },
                          "iv": {
                            "type": "number",
                            "description": "Implied volatility."
                          },
                          "delta": {
                            "type": "number",
                            "description": "Option delta."
                          },
                          "updated": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Time the contract's day bar last changed (US Eastern)."
                          },
                          "gamma": {
                            "type": "number",
                            "description": "Option gamma."
                          },
                          "theta": {
                            "type": "number",
                            "description": "Option theta."
                          },
                          "vega": {
                            "type": "number",
                            "description": "Option vega."
                          },
                          "day_open": {
                            "type": "number",
                            "description": "Open of the contract's day bar."
                          },
                          "day_high": {
                            "type": "number",
                            "description": "High of the contract's day bar."
                          },
                          "day_low": {
                            "type": "number",
                            "description": "Low of the contract's day bar."
                          },
                          "day_close": {
                            "type": "number",
                            "description": "Close of the contract's day bar."
                          },
                          "day_vwap": {
                            "type": "number",
                            "description": "Volume-weighted average price of the contract's day bar."
                          },
                          "day_prev_close": {
                            "type": "number",
                            "description": "Previous session's close for the contract."
                          },
                          "day_change": {
                            "type": "number",
                            "description": "Price change versus the previous close."
                          },
                          "day_change_pct": {
                            "type": "number",
                            "description": "Percent change of the contract versus its previous close."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Option contracts in the chain."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "ticker": "NKE",
                  "spot": 71.42,
                  "next_earnings_date": "2026-12-18",
                  "expiries": [
                    {
                      "expiry": "2026-11-20",
                      "dte": 32,
                      "is_monthly": true,
                      "spans_earnings": false,
                      "atm_iv": 31.8
                    },
                    {
                      "expiry": "2026-12-18",
                      "dte": 60,
                      "is_monthly": true,
                      "spans_earnings": true,
                      "atm_iv": 36.4
                    }
                  ],
                  "contracts": [
                    {
                      "contract": "O:NKE261120C00072500",
                      "expiry": "2026-11-20",
                      "strike": 72.5,
                      "type": "call",
                      "shares_per_contract": 100,
                      "exercise_style": "american",
                      "break_even_price": 74.68,
                      "fmv": null,
                      "bid": null,
                      "ask": null,
                      "mid": null,
                      "last": 2.18,
                      "volume": 1432,
                      "oi": 9876,
                      "iv": 31.5,
                      "delta": 0.44,
                      "updated": "2026-10-19T15:46:22-04:00",
                      "gamma": 0.062,
                      "theta": -0.034,
                      "vega": 0.098,
                      "day_open": 2.05,
                      "day_high": 2.31,
                      "day_low": 2.01,
                      "day_close": 2.18,
                      "day_vwap": 2.16,
                      "day_prev_close": 2.07,
                      "day_change": 0.11,
                      "day_change_pct": 5.31
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expiration_date_gte",
            "in": "query",
            "required": false,
            "description": "Earliest expiration (YYYY-MM-DD). Narrows monthly/all selection.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "strike_price_gte",
            "in": "query",
            "required": false,
            "description": "Minimum strike. Empty: spot × (1 − band).",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "expiration_date_lte",
            "in": "query",
            "required": false,
            "description": "Latest expiration (YYYY-MM-DD). Narrows monthly/all selection.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "strike_price_lte",
            "in": "query",
            "required": false,
            "description": "Maximum strike. Empty: spot × (1 + band).",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "expiries",
            "in": "query",
            "required": false,
            "description": "Which expiries to include: `monthly` (third Fridays), `all` (includes weeklies), or an explicit list of dates.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "monthly",
                  "all"
                ]
              },
              "default": "monthly"
            }
          },
          {
            "name": "n_expiries",
            "in": "query",
            "required": false,
            "description": "Nearest expiries to return (1-8).",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "strikes_around",
            "in": "query",
            "required": false,
            "description": "Strikes on each side of the spot price. `null`: filter by delta instead.",
            "schema": {
              "type": "integer",
              "default": 5
            }
          },
          {
            "name": "delta_min",
            "in": "query",
            "required": false,
            "description": "With `strikes_around` null: minimum absolute delta.",
            "schema": {
              "type": "number",
              "default": 0.1
            }
          },
          {
            "name": "delta_max",
            "in": "query",
            "required": false,
            "description": "With `strikes_around` null: maximum absolute delta.",
            "schema": {
              "type": "number",
              "default": 0.9
            }
          },
          {
            "name": "greeks",
            "in": "query",
            "required": false,
            "description": "`true`: add gamma, theta and vega (delta is always there).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "day_ohlc",
            "in": "query",
            "required": false,
            "description": "When true, attach the underlying’s day session OHLC fields (`day_open`, `day_high`, `day_low`, `day_close`, `day_vwap`, `day_prev_close`, `day_change`, …) on each contract row.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "max_contracts",
            "in": "query",
            "required": false,
            "description": "Cap on contracts (1-300); nearest to spot are kept.",
            "schema": {
              "type": "integer",
              "default": 40
            }
          },
          {
            "name": "contract_type",
            "in": "query",
            "required": false,
            "description": "Only calls or only puts. Empty: both.",
            "schema": {
              "type": "string",
              "enum": [
                "call",
                "put"
              ],
              "default": "No"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "Sort direction for the chosen `sort` field.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "No"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Field used to order results.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_events": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_events",
        "summary": "Events",
        "description": "Typed corporate events, newest first: analyst rating and target changes, ex-dividend dates, splits, insider trades and headline-typed guidance / M&A / offering news. Use it for \"what changed overnight\".",
        "responses": {
          "200": {
            "description": "Events response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "event_type": {
                            "type": "string",
                            "description": "Kind of event, e.g. rating_change or target_change."
                          },
                          "datetime_et": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Timestamp in US Eastern time."
                          },
                          "is_premarket": {
                            "type": "boolean",
                            "description": "True if the item is before the regular session."
                          },
                          "session": {
                            "type": "string",
                            "description": "Session the event falls in."
                          },
                          "firm": {
                            "type": "string",
                            "description": "Analyst firm name."
                          },
                          "from_rating": {
                            "type": "string",
                            "description": "Previous rating."
                          },
                          "to_rating": {
                            "type": "string",
                            "description": "New rating."
                          },
                          "old_target": {
                            "type": "number",
                            "description": "Previous price target."
                          },
                          "new_target": {
                            "type": "number",
                            "description": "New price target."
                          },
                          "source": {
                            "type": "string",
                            "description": "Publisher or official source; for a FRED series, the originating agency."
                          },
                          "as_of": {
                            "type": "string",
                            "description": "When the data was current: in GPU prices, when the GPU index generated the print behind the day's value (UTC, ISO 8601); in rankings snapshots, an object of as-of dates and context."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Typed corporate or macro events."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "events": [
                    {
                      "ticker": "HD",
                      "event_type": "rating_change",
                      "datetime_et": "2026-10-19T06:45:00-04:00",
                      "is_premarket": true,
                      "session": "premarket",
                      "firm": "Goldman Sachs",
                      "from_rating": "Neutral",
                      "to_rating": "Buy",
                      "old_target": 410,
                      "new_target": 465,
                      "source": "analyst feed",
                      "as_of": "2026-10-19T07:00:00-04:00"
                    },
                    {
                      "ticker": "XOM",
                      "event_type": "exdiv",
                      "datetime_et": "2026-10-20",
                      "is_premarket": null,
                      "session": null,
                      "amount": 1.03,
                      "currency": "USD",
                      "ex_dividend_date": "2026-10-20",
                      "declaration_date": "2026-09-30",
                      "record_date": "2026-10-20",
                      "pay_date": "2026-11-10",
                      "frequency": 4,
                      "distribution_type": "recurring",
                      "dividend_type": null,
                      "split_adjusted_cash_amount": 1.03,
                      "historical_adjustment_factor": 0.998,
                      "headline": "XOM ex-dividend 1.03 USD",
                      "source": "dividend calendar",
                      "as_of": "2026-10-19T07:00:00-04:00"
                    },
                    {
                      "ticker": "SITM",
                      "event_type": "split",
                      "datetime_et": "2026-12-07",
                      "is_premarket": null,
                      "session": null,
                      "execution_date": "2026-12-07",
                      "split_from": 1,
                      "split_to": 3,
                      "adjustment_type": "forward_split",
                      "historical_adjustment_factor": 0.333333,
                      "headline": "SITM 3-for-1 split",
                      "source": "split calendar",
                      "as_of": "2026-10-19T07:00:00-04:00"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "description": "Up to 50 tickers. Empty: all stocks (analyst, dividend and split events only).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Start of the window (US Eastern if no timezone). Empty: 24 hours ago.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "24 hours ago"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "description": "End of the window. Empty: now.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "now"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "Observation frequency to request when more than one is available.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "description": "Event types. `insider`, `guidance`, `mna`, `offering` need `tickers`.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rating_change",
                  "target_change",
                  "guidance",
                  "mna",
                  "offering",
                  "index_change",
                  "split",
                  "exdiv",
                  "insider"
                ]
              },
              "default": "all"
            }
          },
          {
            "name": "distribution_type",
            "in": "query",
            "required": false,
            "description": "Dividend `distribution_type` (exdiv only).",
            "schema": {
              "type": "string",
              "enum": [
                "recurring",
                "special",
                "supplemental",
                "irregular",
                "unknown"
              ],
              "default": "supplemental"
            }
          },
          {
            "name": "adjustment_type",
            "in": "query",
            "required": false,
            "description": "Split `adjustment_type` (split only).",
            "schema": {
              "type": "string",
              "enum": [
                "forward_split",
                "reverse_split",
                "stock_dividend"
              ],
              "default": "stock_dividend"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Which bar fields to include when requesting multiple tickers.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_factor_sensitivities": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_factor_sensitivities",
        "summary": "Factor Sensitivities",
        "description": "Factor betas of stocks over a rolling window of daily returns: per factor the beta, t-stat, R² and observations. Rate beta is in % per 10bp rise in the 10-year yield (also given net of SPY).",
        "responses": {
          "200": {
            "description": "Factor Sensitivities response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "window": {
                      "type": "string",
                      "description": "Lookback window used for the calculation."
                    },
                    "end_date": {
                      "type": "string",
                      "format": "date",
                      "description": "Last date in the series."
                    },
                    "sensitivities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "factors": {
                            "type": "object",
                            "description": "Factor legs (SPY, sector, rates, oil).",
                            "properties": {
                              "spy": {
                                "type": "object",
                                "description": "SPY trend snapshot.",
                                "properties": {
                                  "beta": {
                                    "type": "number",
                                    "description": "Regression beta to the factor."
                                  },
                                  "t_stat": {
                                    "type": "number",
                                    "description": "t-statistic of the beta."
                                  },
                                  "r2": {
                                    "type": "number",
                                    "description": "R-squared of the regression."
                                  },
                                  "n": {
                                    "type": "integer",
                                    "description": "Observations in the regression window."
                                  }
                                },
                                "additionalProperties": true
                              },
                              "us10y": {
                                "type": "object",
                                "description": "10-year US Treasury yield, percent.",
                                "properties": {
                                  "beta": {
                                    "type": "number",
                                    "description": "Regression beta to the factor."
                                  },
                                  "beta_net_spy": {
                                    "type": "number",
                                    "description": "Rate beta net of SPY, percent per 10bp."
                                  },
                                  "t_stat": {
                                    "type": "number",
                                    "description": "t-statistic of the beta."
                                  },
                                  "r2": {
                                    "type": "number",
                                    "description": "R-squared of the regression."
                                  },
                                  "n": {
                                    "type": "integer",
                                    "description": "Observations in the regression window."
                                  }
                                },
                                "additionalProperties": true
                              },
                              "wti": {
                                "type": "object",
                                "description": "WTI crude, USD/bbl.",
                                "properties": {
                                  "beta": {
                                    "type": "number",
                                    "description": "Regression beta to the factor."
                                  },
                                  "t_stat": {
                                    "type": "number",
                                    "description": "t-statistic of the beta."
                                  },
                                  "r2": {
                                    "type": "number",
                                    "description": "R-squared of the regression."
                                  },
                                  "n": {
                                    "type": "integer",
                                    "description": "Observations in the regression window."
                                  }
                                },
                                "additionalProperties": true
                              },
                              "sector": {
                                "type": "object",
                                "description": "GICS-style sector name.",
                                "properties": {
                                  "etf": {
                                    "type": "string",
                                    "description": "Sector ETF used as the factor."
                                  },
                                  "beta": {
                                    "type": "number",
                                    "description": "Regression beta to the factor."
                                  },
                                  "t_stat": {
                                    "type": "number",
                                    "description": "t-statistic of the beta."
                                  },
                                  "r2": {
                                    "type": "number",
                                    "description": "R-squared of the regression."
                                  },
                                  "n": {
                                    "type": "integer",
                                    "description": "Observations in the regression window."
                                  }
                                },
                                "additionalProperties": true
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Per-ticker factor betas."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "window": 60,
                  "end_date": "2026-10-19",
                  "sensitivities": [
                    {
                      "ticker": "HD",
                      "factors": {
                        "spy": {
                          "beta": 1.02,
                          "t_stat": 6.8,
                          "r2": 0.44,
                          "n": 60
                        },
                        "us10y": {
                          "beta": -0.91,
                          "beta_net_spy": -0.64,
                          "t_stat": -4.1,
                          "r2": 0.22,
                          "n": 60
                        },
                        "wti": {
                          "beta": -0.05,
                          "t_stat": -0.6,
                          "r2": 0.01,
                          "n": 60
                        },
                        "sector": {
                          "etf": "XLY",
                          "beta": 0.88,
                          "t_stat": 7.4,
                          "r2": 0.48,
                          "n": 60
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last date to include (`YYYY-MM-DD`).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today"
            }
          },
          {
            "name": "tickers",
            "in": "query",
            "required": true,
            "description": "Up to 25 tickers or ETFs.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "window",
            "in": "query",
            "required": false,
            "description": "Trading days of returns (40-500).",
            "schema": {
              "type": "integer",
              "default": 60
            }
          },
          {
            "name": "factors",
            "in": "query",
            "required": false,
            "description": "Factors to measure against. `us10y` beta is % per 10bp yield rise.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "spy",
                  "us10y",
                  "wti",
                  "dxy",
                  "sox",
                  "sector"
                ]
              },
              "default": "all"
            }
          }
        ]
      }
    },
    "/compute_portfolio_exposure": {
      "post": {
        "tags": [
          "Options desk"
        ],
        "operationId": "compute_portfolio_exposure",
        "summary": "Portfolio Exposure",
        "description": "Risk of a book of stocks and options: net/gross dollar delta, beta-adjusted exposure, rate exposure ($ per 10bp), net exposure per sector, correlation matrix, and clusters of positions that are the same bet.",
        "responses": {
          "200": {
            "description": "Portfolio Exposure response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "positions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "qty": {
                            "type": "integer",
                            "description": "Qty."
                          },
                          "instrument": {
                            "type": "string",
                            "description": "stock, call, or put."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Book positions with dollar delta."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "positions": [
                    {
                      "ticker": "NKE",
                      "qty": -500,
                      "instrument": "stock"
                    },
                    {
                      "ticker": "LULU",
                      "qty": -10,
                      "instrument": "put",
                      "strike": 180,
                      "expiry": "2026-11-20"
                    },
                    {
                      "ticker": "MU",
                      "qty": 300,
                      "instrument": "stock"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "window": {
                    "type": "integer",
                    "default": 60,
                    "description": "Trading days for betas and correlations (40-500)."
                  },
                  "positions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "description": "Up to 50 positions. Negative quantity = short; options are contracts of 100."
                  },
                  "cluster_threshold": {
                    "type": "number",
                    "default": 0.4,
                    "description": "Correlation at which positions count as the same bet."
                  }
                },
                "required": [
                  "positions"
                ]
              }
            }
          }
        }
      }
    },
    "/get_earnings_reactions": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_earnings_reactions",
        "summary": "Earnings Reactions",
        "description": "How a stock reacted to its last earnings reports: opening gap, close-to-close move and 5-day follow-through (%), with EPS and revenue surprise, plus averages, the next report, and `last_report` (the export's drift-rule columns: last_report_date, days_since_report, last_eps/rev_surprise_pct, reaction_gap_pct, reaction_close_to_close_pct, reaction_day_high/low, follow_through_5d_avg_pct, follow_through_same_dir_pct).",
        "responses": {
          "200": {
            "description": "Earnings Reactions response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ticker": {
                      "type": "string",
                      "description": "Company ticker for this row (e.g. AAPL)."
                    },
                    "reactions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "report_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Period the filing reports on; null in get_filings (the filings index does not carry it)."
                          },
                          "timing": {
                            "type": "string",
                            "description": "bmo, amc, or during market hours."
                          },
                          "gap_pct": {
                            "type": "number",
                            "description": "Opening gap versus prior close, percent."
                          },
                          "close_to_close_pct": {
                            "type": "number",
                            "description": "Close-to-close move on the report, percent."
                          },
                          "follow_through_5d_pct": {
                            "type": "number",
                            "description": "Five-day follow-through after the report, percent."
                          },
                          "eps_surprise_pct": {
                            "type": "number",
                            "description": "EPS surprise versus consensus, percent."
                          },
                          "revenue_surprise_pct": {
                            "type": "number",
                            "description": "Revenue surprise versus consensus, percent."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "How the stock moved around past reports."
                    },
                    "averages": {
                      "type": "object",
                      "description": "Average gap, close-to-close, and fade stats.",
                      "properties": {
                        "abs_gap_pct": {
                          "type": "number",
                          "description": "Average absolute opening gap, percent."
                        },
                        "abs_close_to_close_pct": {
                          "type": "number",
                          "description": "Average absolute close-to-close move, percent."
                        },
                        "gap_fade_rate_pct": {
                          "type": "number",
                          "description": "Share of reports where the gap faded, percent."
                        }
                      },
                      "additionalProperties": true
                    },
                    "next_report": {
                      "type": "object",
                      "description": "Next scheduled earnings report.",
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "Calendar date for this row."
                        },
                        "timing": {
                          "type": "string",
                          "description": "bmo, amc, or during market hours."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "ticker": "NFLX",
                  "reactions": [
                    {
                      "report_date": "2026-10-16",
                      "timing": "AMC",
                      "gap_pct": -4.8,
                      "close_to_close_pct": -6.1,
                      "follow_through_5d_pct": -2.3,
                      "eps_surprise_pct": 3.3,
                      "revenue_surprise_pct": 1
                    },
                    {
                      "report_date": "2026-07-17",
                      "timing": "AMC",
                      "gap_pct": 2.1,
                      "close_to_close_pct": 1.4,
                      "follow_through_5d_pct": 3.9,
                      "eps_surprise_pct": 2,
                      "revenue_surprise_pct": 0.4
                    }
                  ],
                  "averages": {
                    "abs_gap_pct": 5.6,
                    "abs_close_to_close_pct": 6.2,
                    "gap_fade_rate_pct": 37.5
                  },
                  "next_report": {
                    "date": "2027-01-20",
                    "timing": "AMC"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Company ticker to query, e.g. `AAPL` (case-insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "n",
            "in": "query",
            "required": false,
            "description": "Past reports to include (1-16).",
            "schema": {
              "type": "integer",
              "default": 8
            }
          }
        ]
      }
    },
    "/backtest_rules": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "backtest_rules",
        "summary": "Backtest Rules",
        "description": "Backtest a desk screener `rule_set` over archived daily close snapshots: each Go signal filled at the next session's open after the Go close (the desk's Outcomes-tab convention), stopped/targeted with ATR multiples from that fill (drift lists: stop at the reaction-day low / high, at most 10 sessions), costs in R.",
        "responses": {
          "200": {
            "description": "Backtest Rules response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rule_set": {
                      "type": "string",
                      "description": "Desk screener list applied, if any."
                    },
                    "start": {
                      "type": "string",
                      "format": "date",
                      "description": "Inclusive start of the window."
                    },
                    "end": {
                      "type": "string",
                      "format": "date",
                      "description": "Inclusive end of the window."
                    },
                    "first_snapshot": {
                      "type": "string",
                      "format": "date",
                      "description": "Earliest stored close snapshot."
                    },
                    "trades": {
                      "type": "integer",
                      "description": "Number of trades."
                    },
                    "hit_rate_pct": {
                      "type": "number",
                      "description": "Percent of trades that were winners."
                    },
                    "payoff_ratio": {
                      "type": "number",
                      "description": "Average win divided by average loss."
                    },
                    "expectancy_r": {
                      "type": "number",
                      "description": "Expected R per trade."
                    },
                    "total_r": {
                      "type": "number",
                      "description": "Total R over the backtest."
                    },
                    "max_drawdown_r": {
                      "type": "number",
                      "description": "Maximum drawdown in R."
                    },
                    "equity_curve": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Calendar date for this row."
                          },
                          "cum_r": {
                            "type": "number",
                            "description": "Cumulative R multiple."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Backtest equity curve in R units."
                    },
                    "by_list": {
                      "type": "object",
                      "description": "Backtest stats split by screener list.",
                      "properties": {
                        "washout_long": {
                          "type": "object",
                          "description": "Washout-long screener list stats.",
                          "properties": {
                            "trades": {
                              "type": "integer",
                              "description": "Number of trades."
                            },
                            "hit_rate_pct": {
                              "type": "number",
                              "description": "Percent of trades that were winners."
                            },
                            "expectancy_r": {
                              "type": "number",
                              "description": "Expected R per trade."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "by_regime": {
                      "type": "object",
                      "description": "Backtest stats split by market regime.",
                      "properties": {
                        "broad_uptrend": {
                          "type": "object",
                          "description": "Broad-uptrend regime stats.",
                          "properties": {
                            "trades": {
                              "type": "integer",
                              "description": "Number of trades."
                            },
                            "hit_rate_pct": {
                              "type": "number",
                              "description": "Percent of trades that were winners."
                            },
                            "expectancy_r": {
                              "type": "number",
                              "description": "Expected R per trade."
                            }
                          },
                          "additionalProperties": true
                        },
                        "narrow_uptrend": {
                          "type": "object",
                          "description": "Narrow-uptrend regime stats.",
                          "properties": {
                            "trades": {
                              "type": "integer",
                              "description": "Number of trades."
                            },
                            "hit_rate_pct": {
                              "type": "number",
                              "description": "Percent of trades that were winners."
                            },
                            "expectancy_r": {
                              "type": "number",
                              "description": "Expected R per trade."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "parameters": {
                      "type": "object",
                      "description": "Run parameters for this result.",
                      "properties": {
                        "stop_atr": {
                          "type": "number",
                          "description": "Stop distance in ATRs."
                        },
                        "target_atr": {
                          "type": "number",
                          "description": "Target distance in ATRs."
                        },
                        "max_hold_days": {
                          "type": "integer",
                          "description": "Maximum holding period in days."
                        },
                        "costs_bp": {
                          "type": "number",
                          "description": "Assumed round-trip cost in basis points."
                        },
                        "min_mcap_b": {
                          "type": "number",
                          "description": "Minimum market cap in USD billions."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "rule_set": "washout_long",
                  "start": "2026-03-02",
                  "end": "2026-10-19",
                  "first_snapshot": "2026-03-02",
                  "trades": 64,
                  "hit_rate_pct": 46.9,
                  "payoff_ratio": 1.71,
                  "expectancy_r": 0.27,
                  "total_r": 17.3,
                  "max_drawdown_r": -5.4,
                  "equity_curve": [
                    {
                      "date": "2026-03-04",
                      "cum_r": 1
                    },
                    {
                      "date": "2026-03-09",
                      "cum_r": 0
                    },
                    {
                      "date": "2026-10-16",
                      "cum_r": 17.3
                    }
                  ],
                  "by_list": {
                    "washout_long": {
                      "trades": 64,
                      "hit_rate_pct": 46.9,
                      "expectancy_r": 0.27
                    }
                  },
                  "by_regime": {
                    "broad_uptrend": {
                      "trades": 29,
                      "hit_rate_pct": 55.2,
                      "expectancy_r": 0.48
                    },
                    "narrow_uptrend": {
                      "trades": 35,
                      "hit_rate_pct": 40,
                      "expectancy_r": 0.1
                    }
                  },
                  "parameters": {
                    "stop_atr": 1,
                    "target_atr": 2,
                    "max_hold_days": 10,
                    "costs_bp": 10,
                    "min_mcap_b": 20
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "description": "First day. Days before the first stored snapshot are skipped.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "description": "Last day, at most 400 days after `start`.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today (US Eastern)"
            }
          },
          {
            "name": "rule_set",
            "in": "query",
            "required": true,
            "description": "Screener list to replay, or `all`.",
            "schema": {
              "type": "string",
              "enum": [
                "continuation_long",
                "pullback_long",
                "short",
                "spike_fade",
                "washout_long",
                "drift_long",
                "drift_short",
                "all"
              ],
              "default": "short"
            }
          },
          {
            "name": "max_hold_days",
            "in": "query",
            "required": false,
            "description": "Sessions before a time exit (1-60).",
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "costs_bp",
            "in": "query",
            "required": false,
            "description": "Round-trip cost in basis points.",
            "schema": {
              "type": "number",
              "default": 10
            }
          },
          {
            "name": "min_mcap_b",
            "in": "query",
            "required": false,
            "description": "Minimum market cap in $B. `0` = all stocks.",
            "schema": {
              "type": "number",
              "default": 20
            }
          },
          {
            "name": "rule_params",
            "in": "query",
            "required": false,
            "description": "Override thresholds, e.g. `rsi_max` = 75. Not with `all`.",
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    },
    "/get_catalysts": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_catalysts",
        "summary": "Get Catalysts",
        "description": "Company catalyst calendar: per ticker the next dated event (`next_catalyst`, `next_catalyst_date`, tier 1–3 like the macro calendar) and every event in the window: earnings (tier 1), FDA / PDUFA dates, advisory committees and topline data (1), major medical meetings, investor days, product events, index changes and expiry windows the options price as an event (2), investor conferences and ex-dividend dates (3).",
        "responses": {
          "200": {
            "description": "Get Catalysts response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "window_days": {
                      "type": "integer",
                      "description": "Window days."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "description": "Company ticker for this row (e.g. AAPL)."
                          },
                          "next_catalyst": {
                            "type": "string",
                            "description": "Next catalyst."
                          },
                          "next_catalyst_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Next catalyst date."
                          },
                          "next_catalyst_kind": {
                            "type": "string",
                            "description": "Next catalyst kind."
                          },
                          "next_catalyst_tier": {
                            "type": "integer",
                            "description": "Next catalyst tier."
                          },
                          "next_tier1_catalyst_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Next tier1 catalyst date."
                          },
                          "catalysts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "format": "date",
                                  "description": "Calendar date for this row."
                                },
                                "kind": {
                                  "type": "string",
                                  "description": "Kind."
                                },
                                "tier": {
                                  "type": "integer",
                                  "description": "Macro-release importance (1 is highest)."
                                },
                                "event": {
                                  "type": "string",
                                  "description": "Event name."
                                },
                                "source": {
                                  "type": "string",
                                  "description": "Publisher or official source; for a FRED series, the originating agency."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Catalysts."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Search or screen matches."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "window_days": 90,
                  "results": [
                    {
                      "ticker": "IBRX",
                      "next_catalyst": "Earnings report (BMO)",
                      "next_catalyst_date": "2026-11-03",
                      "next_catalyst_kind": "earnings",
                      "next_catalyst_tier": 1,
                      "next_tier1_catalyst_date": "2026-11-03",
                      "catalysts": [
                        {
                          "date": "2026-11-03",
                          "kind": "earnings",
                          "tier": 1,
                          "event": "Earnings report (BMO)",
                          "source": "factor rankings"
                        },
                        {
                          "date": "2026-12-04",
                          "window_start": "2026-11-27",
                          "kind": "options_implied",
                          "tier": 2,
                          "event": "Options price an event between 2026-11-27 and 2026-12-04: forward IV 204% vs 111% typical (implied move ~9.8%)"
                        },
                        {
                          "date": "2027-01-06",
                          "kind": "fda",
                          "tier": 1,
                          "event": "FDA accepts expanded-use filing; PDUFA date January 6, 2027",
                          "source": "GlobeNewswire Inc."
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "tickers",
            "in": "query",
            "required": true,
            "description": "Up to 25 tickers.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Days ahead to look (1-365).",
            "schema": {
              "type": "integer",
              "default": 90
            }
          }
        ]
      }
    },
    "/log_idea": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "log_idea",
        "summary": "Log Idea",
        "description": "Write to the desk's ideas ledger (the Ideas tab, server-side, one ledger per API key): log a new idea, or pass `idea_id` to update, cancel or close one at an exit price (its R multiple is computed).",
        "responses": {
          "200": {
            "description": "Log Idea response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "string",
                      "description": "Action."
                    },
                    "idea": {
                      "type": "object",
                      "description": "Idea.",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "Id."
                        },
                        "idea_date": {
                          "type": "string",
                          "format": "date",
                          "description": "Idea date."
                        },
                        "symbol": {
                          "type": "string",
                          "description": "Ticker or instrument symbol."
                        },
                        "side": {
                          "type": "string",
                          "description": "Side."
                        },
                        "ref_price": {
                          "type": "number",
                          "description": "Ref price."
                        },
                        "stop": {
                          "type": "number",
                          "description": "1-ATR stop."
                        },
                        "target": {
                          "type": "number",
                          "description": "2-ATR target."
                        },
                        "horizon_days": {
                          "type": "integer",
                          "description": "Horizon days."
                        },
                        "status": {
                          "type": "string",
                          "description": "Status."
                        },
                        "rule": {
                          "type": "string",
                          "description": "How this regime is classified."
                        },
                        "thesis": {
                          "type": "string",
                          "description": "Thesis."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "action": "logged",
                  "idea": {
                    "id": 42,
                    "idea_date": "2026-10-22",
                    "symbol": "NKE",
                    "side": "long",
                    "ref_price": 62.1,
                    "stop": 59.8,
                    "target": 66.7,
                    "horizon_days": 10,
                    "status": "open",
                    "rule": "continuation_long",
                    "thesis": "Decile 10, trend +4, pullback to the 20-day."
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Ticker. Required for a new idea.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "author",
            "in": "query",
            "required": false,
            "description": "Who logged it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "idea_id",
            "in": "query",
            "required": false,
            "description": "Update this idea instead of logging a new one.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "idea_date",
            "in": "query",
            "required": false,
            "description": "Date of the idea.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "today (US Eastern)"
            }
          },
          {
            "name": "exit_date",
            "in": "query",
            "required": false,
            "description": "With `exit_price`: exit date.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "horizon_days",
            "in": "query",
            "required": false,
            "description": "Sessions before a time exit.",
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "Required for a new idea.",
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "short"
              ],
              "default": "Conditional"
            }
          },
          {
            "name": "ref_price",
            "in": "query",
            "required": false,
            "description": "Entry price. Required for a new idea.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "stop",
            "in": "query",
            "required": false,
            "description": "Stop price. Required for a new idea; sets 1R.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "target",
            "in": "query",
            "required": false,
            "description": "Target price.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "e.g. `entry`, `hedge`, `earnings`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "e.g. `stock`, `call spread`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "thesis",
            "in": "query",
            "required": false,
            "description": "One or two sentences.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rule",
            "in": "query",
            "required": false,
            "description": "Rule or list behind it, e.g. `continuation_long`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "risk_pct",
            "in": "query",
            "required": false,
            "description": "Equity at risk, % (max 10).",
            "schema": {
              "type": "number",
              "default": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "With `idea_id`: new status.",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "closed",
                "cancelled"
              ]
            }
          },
          {
            "name": "exit_price",
            "in": "query",
            "required": false,
            "description": "With `idea_id`: close at this price.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "exit_reason",
            "in": "query",
            "required": false,
            "description": "With `exit_price`: e.g. `target`, `stop`.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get_ledger": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "get_ledger",
        "summary": "Get Ledger",
        "description": "Read the desk's ideas ledger, newest first: each idea with its levels, status and latest mark (price, open R) or outcome (exit, R multiple), plus the closed ideas' hit rate and expectancy in R, overall and by rule.",
        "responses": {
          "200": {
            "description": "Get Ledger response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "returned": {
                      "type": "integer",
                      "description": "Returned."
                    },
                    "open": {
                      "type": "number",
                      "description": "Open price of the bar or session."
                    },
                    "closed_summary": {
                      "type": "object",
                      "description": "Closed summary.",
                      "properties": {
                        "n_trades": {
                          "type": "integer",
                          "description": "N trades."
                        },
                        "hit_rate": {
                          "type": "integer",
                          "description": "Hit rate."
                        },
                        "expectancy_r": {
                          "type": "number",
                          "description": "Expected R per trade."
                        },
                        "by_rule": {
                          "type": "object",
                          "description": "By rule.",
                          "properties": {
                            "continuation_long": {
                              "type": "object",
                              "description": "Continuation long.",
                              "properties": {
                                "n_trades": {
                                  "type": "integer",
                                  "description": "N trades."
                                },
                                "expectancy_r": {
                                  "type": "number",
                                  "description": "Expected R per trade."
                                }
                              },
                              "additionalProperties": true
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "ideas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Id."
                          },
                          "symbol": {
                            "type": "string",
                            "description": "Ticker or instrument symbol."
                          },
                          "side": {
                            "type": "string",
                            "description": "Side."
                          },
                          "status": {
                            "type": "string",
                            "description": "Status."
                          },
                          "ref_price": {
                            "type": "number",
                            "description": "Ref price."
                          },
                          "stop": {
                            "type": "number",
                            "description": "1-ATR stop."
                          },
                          "mark": {
                            "type": "object",
                            "description": "Mark.",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "description": "Calendar date for this row."
                              },
                              "price": {
                                "type": "number",
                                "description": "Last price, or alias of stock_price in the screener."
                              },
                              "r_open": {
                                "type": "number",
                                "description": "R open."
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Ideas."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "returned": 2,
                  "open": 1,
                  "closed_summary": {
                    "n_trades": 1,
                    "hit_rate": 1,
                    "expectancy_r": 1.92,
                    "by_rule": {
                      "continuation_long": {
                        "n_trades": 1,
                        "expectancy_r": 1.92
                      }
                    }
                  },
                  "ideas": [
                    {
                      "id": 43,
                      "symbol": "NKE",
                      "side": "long",
                      "status": "open",
                      "ref_price": 62.1,
                      "stop": 59.8,
                      "mark": {
                        "date": "2026-10-22",
                        "price": 63.05,
                        "r_open": 0.41
                      }
                    },
                    {
                      "id": 41,
                      "symbol": "AAPL",
                      "side": "long",
                      "status": "closed",
                      "exit_date": "2026-10-02",
                      "exit_price": 242,
                      "exit_reason": "target",
                      "r_multiple": 1.92
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Only this ticker.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Ideas on or after this date.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "description": "Ideas on or before this date.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only this status. Empty: all.",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "closed",
                "cancelled"
              ],
              "default": "all"
            }
          },
          {
            "name": "rule",
            "in": "query",
            "required": false,
            "description": "Only this rule or list.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return, newest first, after any date filters.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ]
      }
    },
    "/score_ledger": {
      "get": {
        "tags": [
          "Options desk"
        ],
        "operationId": "score_ledger",
        "summary": "Score Ledger",
        "description": "Mark and score every open idea by the same R rules as `backtest_rules`: entry at the ref price, the daily bars after the idea date, stop first when stop and target print the same session, a time exit at the horizon, costs in R.",
        "responses": {
          "200": {
            "description": "Score Ledger response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "closed_now": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Id."
                          },
                          "symbol": {
                            "type": "string",
                            "description": "Ticker or instrument symbol."
                          },
                          "side": {
                            "type": "string",
                            "description": "Side."
                          },
                          "exit_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Exit date."
                          },
                          "exit": {
                            "type": "integer",
                            "description": "Exit."
                          },
                          "exit_reason": {
                            "type": "string",
                            "description": "Exit reason."
                          },
                          "r_net": {
                            "type": "number",
                            "description": "R net."
                          },
                          "hold_days": {
                            "type": "integer",
                            "description": "Hold days."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Closed now."
                    },
                    "marked": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Id."
                          },
                          "symbol": {
                            "type": "string",
                            "description": "Ticker or instrument symbol."
                          },
                          "side": {
                            "type": "string",
                            "description": "Side."
                          },
                          "mark_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Mark date."
                          },
                          "price": {
                            "type": "number",
                            "description": "Last price, or alias of stock_price in the screener."
                          },
                          "r_open": {
                            "type": "number",
                            "description": "R open."
                          },
                          "sessions": {
                            "type": "integer",
                            "description": "Sessions."
                          },
                          "horizon_days": {
                            "type": "integer",
                            "description": "Horizon days."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Marked."
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Errors."
                    },
                    "closed_summary": {
                      "type": "object",
                      "description": "Closed summary.",
                      "properties": {
                        "n_trades": {
                          "type": "integer",
                          "description": "N trades."
                        },
                        "hit_rate": {
                          "type": "integer",
                          "description": "Hit rate."
                        },
                        "expectancy_r": {
                          "type": "number",
                          "description": "Expected R per trade."
                        }
                      },
                      "additionalProperties": true
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "closed_now": [
                    {
                      "id": 41,
                      "symbol": "AAPL",
                      "side": "long",
                      "exit_date": "2026-10-02",
                      "exit": 242,
                      "exit_reason": "target",
                      "r_net": 1.92,
                      "hold_days": 1
                    }
                  ],
                  "marked": [
                    {
                      "id": 43,
                      "symbol": "NKE",
                      "side": "long",
                      "mark_date": "2026-10-22",
                      "price": 63.05,
                      "r_open": 0.41,
                      "sessions": 3,
                      "horizon_days": 10
                    }
                  ],
                  "errors": [],
                  "closed_summary": {
                    "n_trades": 1,
                    "hit_rate": 1,
                    "expectancy_r": 1.92
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "parameters": [
          {
            "name": "costs_bp",
            "in": "query",
            "required": false,
            "description": "Round-trip cost in basis points.",
            "schema": {
              "type": "number",
              "default": 10
            }
          }
        ]
      }
    },
    "/screen_stocks": {
      "post": {
        "tags": [
          "Screener"
        ],
        "operationId": "screen_stocks",
        "summary": "Screen Stocks",
        "description": "Screen US stocks by financial metrics, valuation ratios and company attributes. Results sorted by market cap.",
        "responses": {
          "200": {
            "description": "Screen Stocks response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "filters": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "Metric or column name."
                          },
                          "operator": {
                            "type": "string",
                            "description": "Operator."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value: the observation in `unit` (macro and BIS tools) or the value factor weight (rankings)."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Filters."
                    },
                    "limit": {
                      "type": "integer",
                      "description": "Page size requested."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "filters": [
                    {
                      "field": "sector",
                      "operator": "eq",
                      "value": "Technology"
                    },
                    {
                      "field": "revenue",
                      "operator": "gt",
                      "value": 1000000000
                    },
                    {
                      "field": "pe_ratio",
                      "operator": "lt",
                      "value": 20
                    }
                  ],
                  "limit": 3
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "exchange": {
                    "type": "string",
                    "description": "Exchange, e.g. `NASDAQ`. Empty: every exchange in that country."
                  },
                  "country": {
                    "type": "string",
                    "default": "US",
                    "description": "Country or area code to filter on (ISO where applicable)."
                  },
                  "currency": {
                    "type": "string",
                    "default": "USD",
                    "description": "Only `USD` is supported."
                  },
                  "filters": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Conditions that must all hold, e.g. revenue > 1e9. Fields: `list_stock_screener_filters`."
                  },
                  "limit": {
                    "type": "integer",
                    "default": 10,
                    "description": "Maximum rows to return, newest first, after any date filters."
                  },
                  "include_etfs": {
                    "type": "boolean",
                    "default": false,
                    "description": "Include ETFs."
                  },
                  "include_funds": {
                    "type": "boolean",
                    "default": false,
                    "description": "Include funds."
                  },
                  "include_inactive": {
                    "type": "boolean",
                    "default": false,
                    "description": "When true, include companies that are not actively trading."
                  }
                },
                "required": [
                  "filters"
                ]
              }
            }
          }
        }
      }
    },
    "/list_stock_screener_filters": {
      "get": {
        "tags": [
          "Screener"
        ],
        "operationId": "list_stock_screener_filters",
        "summary": "Screener Filters",
        "description": "Fields, operators, aliases and sector / industry values that `screen_stocks` accepts. _No parameters._.",
        "responses": {
          "200": {
            "description": "Screener Filters response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "metrics": {
                      "type": "object",
                      "description": "Screener metric names grouped by statement.",
                      "properties": {
                        "income_statement": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Income-statement metric names the screener accepts."
                        },
                        "balance_sheet": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Balance-sheet metric names the screener accepts."
                        },
                        "cash_flow_statement": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Cash-flow metric names the screener accepts."
                        },
                        "financial_metrics": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Historical valuation, profitability, and growth metrics."
                        },
                        "market": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Market metric names the screener accepts."
                        },
                        "company": {
                          "type": "object",
                          "description": "Company-attribute filters and allowed values.",
                          "properties": {
                            "sector": {
                              "type": "string",
                              "description": "GICS-style sector name."
                            },
                            "industry": {
                              "type": "string",
                              "description": "Industry name."
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    },
                    "aliases": {
                      "type": "object",
                      "description": "Screener field aliases mapped to canonical names.",
                      "properties": {
                        "pe_ratio": {
                          "type": "string",
                          "description": "Alias of price_to_earnings_ratio."
                        },
                        "pb_ratio": {
                          "type": "string",
                          "description": "Alias of price_to_book_ratio."
                        },
                        "price": {
                          "type": "number",
                          "description": "Last price, or alias of stock_price in the screener."
                        }
                      },
                      "additionalProperties": true
                    },
                    "company_filters": {
                      "type": "object",
                      "description": "Company fields and operators the screener accepts.",
                      "properties": {
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Field list or field metadata."
                        },
                        "operators": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Comparison operators this field accepts."
                        }
                      },
                      "additionalProperties": true
                    },
                    "operators": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Comparison operators this field accepts."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Short reasons or caveats."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "metrics": {
                    "income_statement": [
                      "revenue",
                      "gross_profit",
                      "operating_income",
                      "net_income",
                      "earnings_per_share"
                    ],
                    "balance_sheet": [
                      "total_assets",
                      "cash_and_equivalents",
                      "total_debt",
                      "shareholders_equity"
                    ],
                    "cash_flow_statement": [
                      "net_cash_flow_from_operations",
                      "capital_expenditure",
                      "free_cash_flow"
                    ],
                    "financial_metrics": [
                      "market_cap",
                      "price_to_earnings_ratio",
                      "return_on_equity",
                      "revenue_growth",
                      "dividend_yield"
                    ],
                    "market": [
                      "market_cap",
                      "stock_price",
                      "beta",
                      "volume",
                      "average_volume",
                      "last_annual_dividend"
                    ],
                    "company": {
                      "sector": [
                        "Technology",
                        "Healthcare",
                        "Energy"
                      ],
                      "industry": [
                        "Semiconductors",
                        "Banks - Regional"
                      ]
                    }
                  },
                  "aliases": {
                    "pe_ratio": "price_to_earnings_ratio",
                    "pb_ratio": "price_to_book_ratio",
                    "price": "stock_price"
                  },
                  "company_filters": {
                    "fields": [
                      "sector",
                      "industry",
                      "exchange"
                    ],
                    "operators": [
                      "eq",
                      "in"
                    ]
                  },
                  "operators": [
                    "gt",
                    "lt",
                    "gte",
                    "lte",
                    "eq",
                    "in"
                  ],
                  "notes": "Statement fields are TTM values; market fields are refreshed daily."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        }
      }
    },
    "/list_capabilities": {
      "get": {
        "tags": [
          "About"
        ],
        "operationId": "list_capabilities",
        "summary": "Capabilities",
        "description": "Everything the server can do: every tool grouped by area, with a one-line description, availability and example questions. _No parameters._.",
        "responses": {
          "200": {
            "description": "Capabilities response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "server": {
                      "type": "string",
                      "description": "Server identifier."
                    },
                    "summary": {
                      "type": "string",
                      "description": "Short summary of the payload."
                    },
                    "tool_count": {
                      "type": "integer",
                      "description": "Number of tools advertised."
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group": {
                            "type": "string",
                            "description": "Group key for this bucket."
                          },
                          "tools": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "tool": {
                                  "type": "string",
                                  "description": "Tool name."
                                },
                                "description": {
                                  "type": "string",
                                  "description": "One-line description."
                                },
                                "available": {
                                  "type": "boolean",
                                  "description": "False when this dataset is reserved and not shipped yet."
                                }
                              },
                              "additionalProperties": true
                            },
                            "description": "Tools in this group."
                          },
                          "example_questions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Example questions this tool answers."
                          }
                        },
                        "additionalProperties": true
                      },
                      "description": "Grouped summaries."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "server": "AlphaMomentum Financial Data",
                  "summary": "Market data and fundamentals of US-listed companies, macro, BIS and FRED statistics, GPU rental prices, and the AlphaMomentum factor rankings.",
                  "tool_count": 81,
                  "groups": [
                    {
                      "group": "Macro",
                      "tools": [
                        {
                          "tool": "get_macro_data",
                          "description": "Treasury yield curve, policy rates, inflation, labor...",
                          "available": true
                        },
                        {
                          "tool": "next_macro_events",
                          "description": "The next scheduled US macro releases...",
                          "available": true
                        }
                      ],
                      "example_questions": [
                        "Is the yield curve inverted?",
                        "When is the next CPI print?"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        }
      }
    },
    "/get_presentation_guide": {
      "get": {
        "tags": [
          "About"
        ],
        "operationId": "get_presentation_guide",
        "summary": "Presentation Guide",
        "description": "Guidance on presenting Alpha Momentum data: when to draw charts (and which kind), tables vs prose, number formatting, explanations and caveats. _No parameters._.",
        "responses": {
          "200": {
            "description": "Presentation Guide response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "charts": {
                      "type": "object",
                      "description": "When to draw which chart.",
                      "properties": {
                        "price_history": {
                          "type": "string",
                          "description": "Guidance for price charts."
                        },
                        "statements": {
                          "type": "string",
                          "description": "Guidance for statement charts."
                        },
                        "rankings": {
                          "type": "string",
                          "description": "Guidance for ranking charts."
                        }
                      },
                      "additionalProperties": true
                    },
                    "tables_vs_prose": {
                      "type": "string",
                      "description": "When to use a table versus prose."
                    },
                    "number_formatting": {
                      "type": "string",
                      "description": "How to format large numbers and percents."
                    },
                    "caveats": {
                      "type": "string",
                      "description": "Required caveats when presenting the data."
                    },
                    "how_to_present": {
                      "type": "string",
                      "description": "Display hint for agent UIs (tables vs prose, charts). Omitted from demo payloads unless relevant."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "charts": {
                    "price_history": "Line chart of close; add SMA50/200 when trend matters.",
                    "statements": "Grouped bars for revenue / net income by period.",
                    "rankings": "Horizontal bars for composite z-scores; never pie charts."
                  },
                  "tables_vs_prose": "Tables for 3+ comparable rows; prose for a single value.",
                  "number_formatting": "Large USD as $1.2B / $345M; percentages to 1 decimal; z-scores signed to 2 decimals.",
                  "caveats": "Rankings and trade ideas are model output, not investment advice."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-API-KEY": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "description": "API key for authentication.",
        "in": "header"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "A short error code."
          },
          "message": {
            "type": "string",
            "description": "A more detailed error message."
          }
        }
      },
      "AgentSignupRequest": {
        "type": "object",
        "required": [
          "email",
          "agent_name"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "The account owner's real inbox. Placeholder domains (example.com, test.com, ...) are rejected."
          },
          "agent_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9 ._-]{1,64}$",
            "description": "A name the account owner will recognize; it appears in the confirmation email."
          }
        }
      },
      "AgentSignupResponse": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "description": "Shown once; save it immediately."
          },
          "email": {
            "type": "string"
          },
          "agent_name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "unfunded"
            ],
            "description": "Data calls return 402 until the account is funded."
          },
          "message": {
            "type": "string",
            "description": "What to do next."
          },
          "docs_url": {
            "type": "string"
          }
        }
      },
      "AgentCheckoutLinkRequest": {
        "type": "object",
        "properties": {
          "amount_to_add": {
            "type": "number",
            "minimum": 20,
            "description": "Dollars of credit to purchase. Optional; defaults to the $20 minimum."
          }
        }
      },
      "AgentCheckoutLinkResponse": {
        "type": "object",
        "properties": {
          "checkout_url": {
            "type": "string",
            "description": "Stripe Checkout page; give this to the account owner."
          },
          "amount": {
            "type": "number",
            "description": "Dollar amount the link charges."
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "BadRequestError": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "UnauthorizedError": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFoundError": {
        "description": "The specified resource was not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "PaymentRequiredError": {
        "description": "The request requires a funded account",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  }
}
