{
  "components": {
    "schemas": {
      "StandardResponse": {
        "description": "The envelope every tn-api response is wrapped in.",
        "properties": {
          "code": {
            "description": "Error code if failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "data": {
            "description": "Response payload. Shape depends on the endpoint."
          },
          "failed": {
            "default": false,
            "description": "Whether the request failed.",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable message.",
            "type": [
              "string",
              "null"
            ]
          },
          "success": {
            "default": true,
            "description": "Whether the request succeeded.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "TnapiCoinbasePremiumInput": {
        "properties": {
          "interval": {
            "default": "1h",
            "description": "Bucket interval: 1m, 5m, 15m, 1h, 1d",
            "title": "Interval",
            "type": "string"
          },
          "limit": {
            "default": 500,
            "description": "Max buckets fetched per venue leg",
            "maximum": 1000,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "CoinbasePremiumInput",
        "type": "object"
      },
      "TnapiDerivativesAnalysisInput": {
        "additionalProperties": false,
        "description": "Input parameters for the derivatives_analysis tool.",
        "properties": {
          "exchange_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional derivatives venue pin, e.g. 'hyperliquid_perp' for HIP-3 builder-dex assets (xyz:* pairs), 'binance_futures', or 'bybit_futures'. Omit to let the data layer select the venue.",
            "title": "Exchange Id"
          },
          "sections": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TnapiDerivativesAnalysisInputDerivativesSection"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional response evidence scope. Null or omission uses the least-privilege funding/open-interest scope; liquidation evidence is returned only when 'liquidations' is selected.",
            "title": "Sections"
          },
          "token_address": {
            "description": "Token identifier (e.g. 'bitcoin', 'ethereum')",
            "title": "Token Address",
            "type": "string"
          }
        },
        "required": [
          "token_address"
        ],
        "title": "DerivativesAnalysisInput",
        "type": "object"
      },
      "TnapiDerivativesAnalysisInputDerivativesSection": {
        "description": "Independently selectable sections of the derivatives response.",
        "enum": [
          "funding",
          "open_interest",
          "liquidations"
        ],
        "title": "DerivativesSection",
        "type": "string"
      },
      "TnapiEtfFlowInput": {
        "properties": {
          "asset": {
            "default": "btc",
            "description": "Base coin: btc or eth",
            "title": "Asset",
            "type": "string"
          },
          "limit": {
            "default": 365,
            "description": "Max trading days returned",
            "maximum": 1000,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "EtfFlowInput",
        "type": "object"
      },
      "TnapiEventV2Input": {
        "description": "Input parameters for the event_v2 tool.\n\n``token_address`` and ``query`` are the two independent selection axes and at least one\nis required (see ``_require_a_selector``):\n\n* ``token_address`` \u2014 WHICH asset, matched structurally against the story's resolved\n  entities. Alias-resolved on both sides already (the pipeline resolves each article's\n  entities at ingest; the caller holds a canonical id), so it never depends on wording.\n* ``query`` \u2014 WHAT about it, matched as text against the article title/summary/body.\n\nNever restate the asset in ``query`` when ``token_address`` is set: as a text clause it\nadditionally demands that the article literally spell that word, which silently drops the\nmajority of the asset's own coverage (articles write \"Nvidia\", not \"NVDA\").",
        "properties": {
          "event_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filter to a single event type",
            "title": "Event Type"
          },
          "include_body": {
            "default": false,
            "description": "Include full article/analysis body in results",
            "title": "Include Body",
            "type": "boolean"
          },
          "include_full_summary": {
            "default": false,
            "description": "Include the complete enrichment summary in addition to the compact preview",
            "title": "Include Full Summary",
            "type": "boolean"
          },
          "limit": {
            "default": 20,
            "description": "Max results to request from the index",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "min_rank_score": {
            "anyOf": [
              {
                "maximum": 100,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Minimum final rank score",
            "title": "Min Rank Score"
          },
          "query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "TOPIC to look for, as free text matched against article text (e.g. 'earnings', 'China export', 'Fed', 'tariffs'). At least one of token_address or query is required. Omit it to get the asset's events unfiltered. Do NOT pass the asset's own symbol/name here when token_address is set \u2014 that filters on wording, not identity. Without token_address a recognized asset name here is resolved to its canonical token identity instead of being matched as text.",
            "title": "Query"
          },
          "sort_by": {
            "default": "relevance",
            "description": "Result order: 'relevance' for free-form catalyst research within the selected time window, or 'time' for newest-first information feeds.",
            "enum": [
              "relevance",
              "time"
            ],
            "title": "Sort By",
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filter to a single source",
            "title": "Source"
          },
          "ticker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Deprecated \u2014 prefer token_address. Names the asset by ticker (e.g. 'BTC'); it is resolved to the asset filter, so do not also repeat the asset in query.",
            "title": "Ticker"
          },
          "time_window": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "24h",
            "description": "Optional recency filter as a positive integer hour/day duration (for example '6h', '72h', '7d', or '30d'), or 'all'",
            "title": "Time Window"
          },
          "token_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The asset to search, as a canonical id (e.g. 'bitcoin', 'stock_nvda', 'comm_gold'). At least one of token_address or query is required. This is exact-match \u2014 free text like 'NVDA' or 'Nvidia' will not match.",
            "title": "Token Address"
          },
          "top_only": {
            "default": false,
            "description": "Only return top-ranked catalysts",
            "title": "Top Only",
            "type": "boolean"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filter to a single topic",
            "title": "Topic"
          }
        },
        "title": "EventV2Input",
        "type": "object"
      },
      "TnapiFearGreedInput": {
        "properties": {
          "limit": {
            "default": 365,
            "description": "Max days returned",
            "maximum": 3000,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "FearGreedInput",
        "type": "object"
      },
      "TnapiFinancialAnalystEstimatesInput": {
        "properties": {
          "limit": {
            "default": 30,
            "description": "Max forecast periods.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "period": {
            "default": "annual",
            "description": "'annual' or 'quarter'.",
            "title": "Period",
            "type": "string"
          },
          "ticker": {
            "description": "US stock ticker (e.g. AAPL).",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "AnalystEstimatesInput",
        "type": "object"
      },
      "TnapiFinancialCompanyFactsInput": {
        "properties": {
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "CompanyFactsInput",
        "type": "object"
      },
      "TnapiFinancialEarningsCalendarInput": {
        "properties": {
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive upper bound (YYYY-MM-DD); defaults to start+14d.",
            "title": "End Date"
          },
          "limit": {
            "default": 30,
            "description": "Max events.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive lower bound (YYYY-MM-DD); defaults to today.",
            "title": "Start Date"
          },
          "tickers": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "maxItems": 25,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional ticker filter (max 25).",
            "title": "Tickers"
          }
        },
        "title": "EarningsCalendarInput",
        "type": "object"
      },
      "TnapiFinancialEarningsDataInput": {
        "properties": {
          "limit": {
            "default": 30,
            "description": "Max quarterly periods.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "EarningsDataInput",
        "type": "object"
      },
      "TnapiFinancialEconomicCalendarInput": {
        "properties": {
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Single country code filter (e.g. US); omit for all.",
            "title": "Country"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive upper bound (YYYY-MM-DD); defaults to start+14d.",
            "title": "End Date"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive lower bound (YYYY-MM-DD); defaults to today.",
            "title": "Start Date"
          }
        },
        "title": "EconomicCalendarInput",
        "type": "object"
      },
      "TnapiFinancialFundamentalGraphInput": {
        "properties": {
          "include_html": {
            "default": true,
            "description": "When true, include a self-contained lightweight HTML/SVG dashboard in the result.",
            "title": "Include Html",
            "type": "boolean"
          },
          "limit": {
            "default": 8,
            "description": "Max reporting periods per statement source.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "metrics": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional metric keys to render. Omit for the full available dashboard: core statement metrics, derived ratios, segmented revenue mix cards, earnings actual-vs-estimate cards, and available analyst estimate/rating cards.",
            "title": "Metrics"
          },
          "period": {
            "default": "annual",
            "description": "'annual', 'quarter', or 'quarterly'. Quarterly is normalised to 'quarter'.",
            "title": "Period",
            "type": "string"
          },
          "ticker": {
            "description": "US stock ticker (e.g. AAPL).",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "FundamentalGraphInput",
        "type": "object"
      },
      "TnapiFinancialInsiderTradesInput": {
        "properties": {
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive upper bound (YYYY-MM-DD).",
            "title": "End Date"
          },
          "limit": {
            "default": 30,
            "description": "Max Form 4 events.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive lower bound (YYYY-MM-DD).",
            "title": "Start Date"
          },
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          },
          "transaction_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "SEC Form 4 code filter (P/S/A/M/F/...). Leave unset for all.",
            "title": "Transaction Code"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "InsiderTradesInput",
        "type": "object"
      },
      "TnapiFinancialInstitutionalOwnershipInput": {
        "description": "Inputs for ``financial_institutional_ownership``.",
        "properties": {
          "limit": {
            "default": 20,
            "description": "Max institutional holders to return (sorted by market value descending).",
            "maximum": 200,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "quarter": {
            "anyOf": [
              {
                "maximum": 4,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional filing quarter override (1-4). Must be supplied together with ``year``.",
            "title": "Quarter"
          },
          "ticker": {
            "description": "US stock ticker (e.g. AAPL).",
            "title": "Ticker",
            "type": "string"
          },
          "year": {
            "anyOf": [
              {
                "maximum": 2100,
                "minimum": 1900,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional filing year override. Must be supplied together with ``quarter``. Default: latest filed 13F quarter.",
            "title": "Year"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "InstitutionalOwnershipInput",
        "type": "object"
      },
      "TnapiFinancialMetricsInput": {
        "properties": {
          "limit": {
            "default": 4,
            "description": "Max reporting periods.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "period": {
            "default": "annual",
            "description": "'annual' or 'quarter'.",
            "title": "Period",
            "type": "string"
          },
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "FinancialMetricsInput",
        "type": "object"
      },
      "TnapiFinancialResolveStockTickerInput": {
        "properties": {
          "query": {
            "description": "Free-text \u2014 accepts tickers ('AAPL'), company names ('apple'), brand aliases, or natural-language prompts. 1..160 chars.",
            "maxLength": 160,
            "title": "Query",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "title": "ResolveStockTickerInput",
        "type": "object"
      },
      "TnapiFinancialSegmentedRevenueInput": {
        "properties": {
          "limit": {
            "default": 20,
            "description": "Max reporting periods (the data layer caps at 200).",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "period": {
            "default": "annual",
            "description": "'annual' or 'quarterly'.",
            "title": "Period",
            "type": "string"
          },
          "report_period_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive upper bound on report_period (YYYY-MM-DD).",
            "title": "Report Period End"
          },
          "report_period_start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Inclusive lower bound on report_period (YYYY-MM-DD).",
            "title": "Report Period Start"
          },
          "segment_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional segment-type filter (e.g. 'ProductOrService', 'StatementGeographical', 'StatementBusinessSegments').",
            "title": "Segment Type"
          },
          "ticker": {
            "description": "US stock ticker (e.g. AAPL).",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "SegmentedRevenueInput",
        "type": "object"
      },
      "TnapiFinancialStatementsInput": {
        "properties": {
          "limit": {
            "default": 30,
            "description": "Max reporting periods.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "period": {
            "default": "annual",
            "description": "'annual' or 'quarter'.",
            "title": "Period",
            "type": "string"
          },
          "statement_type": {
            "default": "income",
            "description": "'income', 'balance', 'cashflow', or 'key-stats'.",
            "title": "Statement Type",
            "type": "string"
          },
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "FinancialStatementsInput",
        "type": "object"
      },
      "TnapiFinancialStockDividendsInput": {
        "properties": {
          "limit": {
            "default": 30,
            "description": "Max dividend events.",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "ticker": {
            "description": "US stock ticker.",
            "title": "Ticker",
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ],
        "title": "StockDividendsInput",
        "type": "object"
      },
      "TnapiHyperliquidSmartMoneyInput": {
        "description": "Input parameters for the hyperliquid_smart_money tool.",
        "properties": {
          "sort_by": {
            "default": "abs_size",
            "description": "Sort criterion: 'abs_size', 'position_value', 'unrealized_pnl', 'leverage', or 'margin_used'",
            "enum": [
              "abs_size",
              "position_value",
              "unrealized_pnl",
              "leverage",
              "margin_used"
            ],
            "title": "Sort By",
            "type": "string"
          },
          "token_address": {
            "description": "the data provider ID for the token (e.g. 'bitcoin', 'ethereum')",
            "title": "Token Address",
            "type": "string"
          },
          "top_n": {
            "default": 10,
            "description": "Number of top positions to return (1-100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Top N",
            "type": "integer"
          }
        },
        "required": [
          "token_address"
        ],
        "title": "HyperliquidSmartMoneyInput",
        "type": "object"
      },
      "TnapiKlineAnalysisInput": {
        "additionalProperties": false,
        "description": "Input parameters for the kline_analysis tool.",
        "properties": {
          "exchange_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional explicit venue id, e.g. 'hyperliquid_perp', 'COMEX', 'NASDAQ'",
            "title": "Exchange Id"
          },
          "start_end_datetime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Time range for historical data (ISO 8601 format)",
            "title": "Start End Datetime"
          },
          "timeframe": {
            "default": "1h",
            "description": "Chart timeframe. Single: '5m','15m','1h','4h','1d'",
            "title": "Timeframe",
            "type": "string"
          },
          "token_address": {
            "description": "Token identifier (e.g. 'bitcoin', 'ethereum')",
            "title": "Token Address",
            "type": "string"
          }
        },
        "required": [
          "token_address"
        ],
        "title": "KlineAnalysisInput",
        "type": "object"
      },
      "TnapiLiquidationRiskInput": {
        "description": "Input parameters for the liquidation_risk tool.",
        "properties": {
          "current_price": {
            "description": "Current market price",
            "exclusiveMinimum": 0,
            "title": "Current Price",
            "type": "number"
          },
          "direction": {
            "description": "Position direction: 'long' or 'short'",
            "enum": [
              "long",
              "short"
            ],
            "title": "Direction",
            "type": "string"
          },
          "liquidation_price": {
            "description": "Exchange-provided liquidation price",
            "exclusiveMinimum": 0,
            "title": "Liquidation Price",
            "type": "number"
          },
          "token_address": {
            "description": "Token identifier (the data provider ID, e.g. 'bitcoin', 'ethereum')",
            "title": "Token Address",
            "type": "string"
          }
        },
        "required": [
          "token_address",
          "direction",
          "current_price",
          "liquidation_price"
        ],
        "title": "LiquidationRiskInput",
        "type": "object"
      },
      "TnapiMarketSessionInput": {
        "description": "Input parameters for the ``market_session`` tool.",
        "properties": {
          "at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "UTC instant or ISO timestamp; defaults to now",
            "title": "At"
          },
          "symbol": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional symbol for display and symbol-specific notes",
            "title": "Symbol"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Alias for at, accepted for CLI convenience",
            "title": "Timestamp"
          },
          "timezone": {
            "default": "UTC",
            "description": "IANA timezone for user-facing local output",
            "title": "Timezone",
            "type": "string"
          },
          "venue": {
            "description": "Market venue or supported alias: hyperliquid_perp, us_equities/nyse/nasdaq, cme_comex_gold",
            "title": "Venue",
            "type": "string"
          }
        },
        "required": [
          "venue"
        ],
        "title": "MarketSessionInput",
        "type": "object"
      },
      "TnapiMarketWhalePositionsInput": {
        "properties": {
          "base_coin": {
            "default": "BTC",
            "description": "Base coin to filter, such as BTC.",
            "title": "Base Coin",
            "type": "string"
          },
          "size": {
            "default": 50,
            "description": "Maximum leaderboard rows.",
            "maximum": 100,
            "minimum": 1,
            "title": "Size",
            "type": "integer"
          }
        },
        "title": "MarketWhalePositionsInput",
        "type": "object"
      },
      "TnapiMvrvInput": {
        "properties": {
          "limit": {
            "default": 10000,
            "description": "Max days returned (newest N, served ascending)",
            "maximum": 10000,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "MvrvInput",
        "type": "object"
      },
      "TnapiOptionsReportInput": {
        "description": "Input parameters for the options_report tool.",
        "properties": {
          "token_address": {
            "description": "Token identifier (the data provider ID, e.g. 'bitcoin', 'ethereum', 'solana', 'ripple', 'tron', 'avalanche-2')",
            "title": "Token Address",
            "type": "string"
          }
        },
        "required": [
          "token_address"
        ],
        "title": "OptionsReportInput",
        "type": "object"
      },
      "TnapiPerformanceScannerInput": {
        "additionalProperties": false,
        "description": "Input parameters for the performance_scanner tool.",
        "properties": {
          "lookback_days": {
            "default": 7,
            "description": "Lookback period in days (1-30)",
            "maximum": 30,
            "minimum": 1,
            "title": "Lookback Days",
            "type": "integer"
          },
          "token_universe": {
            "$ref": "#/components/schemas/TnapiPerformanceScannerInputTokenUniverse",
            "default": "crypto_top_by_volume_and_market_cap",
            "description": "Universe to scan: crypto_top_by_volume_and_market_cap (default; volume \u2229 market-cap), crypto_top_by_volume (volume-only), ondo_tokenized_stock, commodity, or us_equities_sp500"
          },
          "top_n": {
            "default": 29,
            "description": "Number of ranked performers returned; distinct from presentation row count",
            "maximum": 100,
            "minimum": 1,
            "title": "Top N",
            "type": "integer"
          },
          "universe_size": {
            "default": 30,
            "description": "Number of tokens in the candidate universe (1-200)",
            "maximum": 200,
            "minimum": 1,
            "title": "Universe Size",
            "type": "integer"
          }
        },
        "title": "PerformanceScannerInput",
        "type": "object"
      },
      "TnapiPerformanceScannerInputTokenUniverse": {
        "description": "Token universe classification for scanners and filters.",
        "enum": [
          "crypto_top_by_volume",
          "crypto_top_by_volume_and_market_cap",
          "ondo_tokenized_stock",
          "commodity",
          "us_equities_sp500"
        ],
        "title": "TokenUniverse",
        "type": "string"
      },
      "TnapiPolymarketInsightInput": {
        "description": "Input parameters for the polymarket_insight tool.",
        "properties": {
          "event_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Exact the prediction-market venue event slug to fetch via Gamma /events",
            "title": "Event Slug"
          },
          "limit": {
            "default": 5,
            "description": "Maximum number of markets to return (1-10)",
            "maximum": 10,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "query_type": {
            "description": "Market category: 'crypto_price', 'macro_outlook', 'regulatory', or 'general'",
            "enum": [
              "crypto_price",
              "macro_outlook",
              "regulatory",
              "general"
            ],
            "title": "Query Type",
            "type": "string"
          },
          "search_terms": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom search terms to override the default query",
            "title": "Search Terms"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Token name or symbol \u2014 required when query_type is 'crypto_price'",
            "title": "Token"
          }
        },
        "required": [
          "query_type"
        ],
        "title": "PolymarketInsightInput",
        "type": "object"
      },
      "TnapiResolveAssetInput": {
        "description": "Input parameters for the resolve_asset tool.",
        "properties": {
          "asset_class": {
            "default": "auto",
            "description": "Optional hint: 'auto' (default), 'crypto', 'equity', 'stock', or 'etf'.",
            "title": "Asset Class",
            "type": "string"
          },
          "query": {
            "description": "Ticker, symbol, or asset name to resolve (e.g. 'SPCX', 'BTC', 'AAPL')",
            "title": "Query",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "title": "ResolveAssetInput",
        "type": "object"
      },
      "TnapiTechnicalAnalysisInput": {
        "additionalProperties": false,
        "description": "Input parameters for the technical_analysis tool.",
        "properties": {
          "exchange_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional explicit venue id, e.g. 'hyperliquid_perp', 'COMEX', 'NASDAQ'",
            "title": "Exchange Id"
          },
          "start_end_datetime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Time range for historical analysis (ISO 8601 format)",
            "title": "Start End Datetime"
          },
          "timeframe": {
            "default": "1h",
            "description": "One chart timeframe: '5m', '15m', '1h', '4h', or '1d'.",
            "title": "Timeframe",
            "type": "string"
          },
          "token_address": {
            "description": "Token identifier (e.g. 'bitcoin', 'ethereum')",
            "title": "Token Address",
            "type": "string"
          }
        },
        "required": [
          "token_address"
        ],
        "title": "TechnicalAnalysisInput",
        "type": "object"
      },
      "TnapiTrendingDiscoveryInput": {
        "description": "Input parameters for the trending_discovery tool.",
        "properties": {
          "include_categories": {
            "default": false,
            "description": "Include trending categories alongside tokens",
            "title": "Include Categories",
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of trending tokens to return (5-15)",
            "maximum": 15,
            "minimum": 5,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "TrendingDiscoveryInput",
        "type": "object"
      },
      "TnapiVenueCostsInput": {
        "properties": {
          "asset_class": {
            "default": "crypto",
            "description": "crypto, stock, or commodity.",
            "enum": [
              "crypto",
              "stock",
              "commodity"
            ],
            "title": "Asset Class",
            "type": "string"
          },
          "instrument": {
            "description": "Instrument identifier (e.g. 'BTC', 'AAPL').",
            "title": "Instrument",
            "type": "string"
          },
          "instrument_type": {
            "default": "spot",
            "description": "spot or perp.",
            "enum": [
              "spot",
              "perp"
            ],
            "title": "Instrument Type",
            "type": "string"
          },
          "venue": {
            "default": "auto",
            "description": "Venue override; 'auto' picks default for the asset/instrument.",
            "title": "Venue",
            "type": "string"
          }
        },
        "required": [
          "instrument"
        ],
        "title": "VenueCostsInput",
        "type": "object"
      }
    },
    "securitySchemes": {
      "mcpKey": {
        "description": "A per-user MCP API key, used only against the MCP server (see the connection recipe in this document's description) \u2014 not accepted by tn-api or the gateway.",
        "in": "query",
        "name": "token",
        "type": "apiKey"
      },
      "privyJwt": {
        "bearerFormat": "JWT",
        "description": "A Privy-issued JWT for a signed-in TrueNorth user. Send as `Authorization: Bearer <token>`.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Read-only market data for crypto, US equities, FX, and macro \u2014 the same data\nthat powers TrueNorth's own trading surfaces, over plain HTTP.\n\n**No API key required.** Every endpoint in this reference is open: no signup,\nno credential, no rate-limit registration. Try any of them right now with the\n**Test Request** button, or copy the ready-made cURL command from any page.\n\n**Two ways to call, one response envelope.** Every response is wrapped the same\nway \u2014 `data` holds the payload, alongside `success`, `message`, `code`, and\n`failed`.\n\n- **Plain REST** \u2014 a normal `GET` with query parameters, e.g.\n  `GET /api/fear-greed?limit=30`. Pasteable straight into a browser.\n- **Tool call** \u2014 `POST /api/agent-tools/call` with\n  `{\"toolName\": \"...\", \"arguments\": {...}}`. Every tool in the sidebar has its\n  own page showing the exact request body and a real response.\n\nEvery response example was captured live from production. Long payloads are\nabridged for readability; an `\"...\"` entry marks where fields were omitted\nfrom the example and is never part of an actual response.\n\n**Building with an AI agent?** Point it at [llms.md](llms.md) \u2014 a single-file\nintegration guide written for coding agents \u2014 or [endpoints.json](endpoints.json)\nfor the machine-readable endpoint list. TrueNorth is also available as an MCP\nserver; see the connection recipe below.\n\n\n## About the per-tool pages\n\nEach tool in the sidebar is documented on its own page for readability, but every tool call is the same real request: `POST /api/agent-tools/call` with `{\"toolName\": ..., \"arguments\": {...}}`. The `#toolName` suffix you may notice in a page's path is a documentation label only \u2014 it is never sent over the wire.\n\n---\n\n## Connecting via MCP\n\nUse TrueNorth inside Claude, ChatGPT, or any MCP-compatible agent \u2014 the same\nread-only tools documented on this page, with no integration code to write.\n\n**1 \u00b7 Get a key.** Sign in at\n[app.true-north.xyz/mcp-api-key](https://app.true-north.xyz/mcp-api-key) and\nchoose **Create API Key**. Keys are free and self-served.\n\n**2 \u00b7 Use your endpoint.** Your personal MCP URL is your key appended to the\nserver address:\n\n```\nhttps://mcp.true-north.xyz/mcp?token=YOUR_KEY\n```\n\nAdd that URL as a remote MCP server in your client. Step-by-step guides for\nClaude and ChatGPT are at\n[docs.truenorth.xyz](https://docs.truenorth.xyz/truenorth-mcp/editor).\n\n**3 \u00b7 Check it works.** From a terminal:\n\n```bash\ncurl -X POST 'https://mcp.true-north.xyz/mcp?token=YOUR_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: application/json, text/event-stream' \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n```\n\nYou should get back the full tool list.\n\nMCP access is read-only: the tools return market data and analysis, and\ncannot place trades, move funds, or touch an account balance. Your key\nidentifies your own account \u2014 treat it like a password and rotate it from the\nsame page if it is ever exposed.\n",
    "title": "TrueNorth API \u2014 partner reference",
    "version": "2026-08-19-77d3a6bc4119"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/agent-tools": {
      "get": {
        "description": "Lists every tool callable through tn-api's unauthenticated compatibility route.\n**What you get** \u2014 the machine-readable catalog of every tool you can call, so a client can discover the surface instead of hard-coding it:\n\n- `tools[].name` / `.description` \u2014 the tool identifier and what it returns, e.g. `historical_bars` (causal OHLCV bars) or `basic_market_info` (all-time high, market cap, supply).\n- `tools[].inputSchema` \u2014 a JSON-Schema `properties`/`required` block per tool. `historical_bars`, for example, requires `instruments` and accepts `timeframe`, `venue`, `asset_class`, `align`, and `limit` (default 500, max 5000).\n- `totalCount` \u2014 55 tools in the captured example.\n\n**When to use it** \u2014 check what a tool needs before POSTing to `/api/agent-tools/call`, or enumerate the whole surface to generate a typed client or SDK.\n\n**Good to know** \u2014 no credential is required, and this route answers browser preflight, so you can call it directly from frontend code. Response shapes aren't declared here; each tool's own page documents its payload with a real captured example.\n\n**Tier:** L1",
        "operationId": "get_api_agent_tools",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "tools": [
                          {
                            "description": "Causal OHLCV bars across crypto, stock, and commodity asset classes. Returns the SDK TimeSeriesResponse envelope with as_of enforcement, multi-instrument alignment (inner/outer), pagination cursor, and freshness metadata. Used by backtests, strategies, and time-series analysis.",
                            "inputSchema": {
                              "properties": {
                                "align": {
                                  "default": "inner",
                                  "description": "inner = shared timestamps; outer = union with null fills.",
                                  "enum": [
                                    "inner",
                                    "outer"
                                  ],
                                  "title": "Align",
                                  "type": "string"
                                },
                                "as_of": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Causal cutoff; bars satisfy t_close <= as_of.",
                                  "title": "As Of"
                                },
                                "asset_class": {
                                  "default": "crypto",
                                  "description": "crypto, stock, or commodity.",
                                  "enum": [
                                    "crypto",
                                    "stock",
                                    "...truncated 1 more"
                                  ],
                                  "title": "Asset Class",
                                  "type": "string"
                                },
                                "cursor": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Pagination cursor from a prior response.",
                                  "title": "Cursor"
                                },
                                "end": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Inclusive ISO end (upper bound).",
                                  "title": "End"
                                },
                                "instrument_type": {
                                  "default": "spot",
                                  "description": "spot or perp. perp adds funding_rate / open_interest / mark_price fields.",
                                  "enum": [
                                    "spot",
                                    "perp"
                                  ],
                                  "title": "Instrument Type",
                                  "type": "string"
                                },
                                "instruments": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    }
                                  ],
                                  "description": "Single instrument or list. Crypto uses token IDs ('bitcoin'), stock uses tickers ('AAPL'), commodity uses aliases ('gold').",
                                  "title": "Instruments"
                                },
                                "limit": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Max aligned bars. Defaults to 500, max 5000.",
                                  "title": "Limit"
                                },
                                "start": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Inclusive ISO start (lower bound).",
                                  "title": "Start"
                                },
                                "timeframe": {
                                  "default": "1h",
                                  "description": "Bar timeframe: 1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d, 1w (asset-class restricted).",
                                  "title": "Timeframe",
                                  "type": "string"
                                },
                                "venue": {
                                  "default": "auto",
                                  "description": "Venue override, or 'auto' for default.",
                                  "title": "Venue",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "instruments"
                              ],
                              "title": "HistoricalBarsInput",
                              "type": "object"
                            },
                            "name": "historical_bars",
                            "outputSchema": null,
                            "requiresAuthUser": false
                          },
                          {
                            "description": "Get fundamental market data: ATH, market cap, supply, and price ranges. Use this tool when the user asks about all-time high (ATH), market cap, circulating supply, or general market overview for a token.",
                            "inputSchema": {
                              "description": "Input parameters for the basic_market_info tool.",
                              "properties": {
                                "token_address": {
                                  "description": "Token identifier: a the data provider ID (e.g. 'bitcoin', 'ethereum') for crypto fundamentals, or a 'stock_*' HIP-3 synthetic address (e.g. 'stock_spcx') routed to a the data layer venue overview.",
                                  "title": "Token Address",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "token_address"
                              ],
                              "title": "BasicMarketInfoInput",
                              "type": "object"
                            },
                            "name": "basic_market_info",
                            "outputSchema": null,
                            "requiresAuthUser": false
                          },
                          "...truncated 53 more"
                        ],
                        "totalCount": 55
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "tools": {
                              "items": {
                                "properties": {
                                  "description": {
                                    "type": "string"
                                  },
                                  "inputSchema": {
                                    "properties": {
                                      "properties": {
                                        "properties": {
                                          "align": {
                                            "properties": {
                                              "default": {
                                                "type": "string"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "enum": {
                                                "items": {
                                                  "type": "string"
                                                },
                                                "type": "array"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "type": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "as_of": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "default": {
                                                "type": "null"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "asset_class": {
                                            "properties": {
                                              "default": {
                                                "type": "string"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "enum": {
                                                "items": {
                                                  "type": "string"
                                                },
                                                "type": "array"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "type": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "cursor": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "default": {
                                                "type": "null"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "end": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "default": {
                                                "type": "null"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "instrument_type": {
                                            "properties": {
                                              "default": {
                                                "type": "string"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "enum": {
                                                "items": {
                                                  "type": "string"
                                                },
                                                "type": "array"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "type": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "instruments": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "limit": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "default": {
                                                "type": "null"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "start": {
                                            "properties": {
                                              "anyOf": {
                                                "items": {
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "type": "object"
                                                },
                                                "type": "array"
                                              },
                                              "default": {
                                                "type": "null"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "timeframe": {
                                            "properties": {
                                              "default": {
                                                "type": "string"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "type": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "venue": {
                                            "properties": {
                                              "default": {
                                                "type": "string"
                                              },
                                              "description": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "type": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "required": {
                                        "items": {
                                          "type": "string"
                                        },
                                        "type": "array"
                                      },
                                      "title": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "outputSchema": {
                                    "type": "null"
                                  },
                                  "requiresAuthUser": {
                                    "type": "boolean"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "totalCount": {
                              "type": "integer"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "List all tools",
        "tags": [
          "Utility"
        ]
      }
    },
    "/api/agent-tools/batch": {
      "post": {
        "description": "Calls up to ten tools concurrently in one request.\n**What you get** \u2014 up to 10 tool calls run concurrently in one request, each returned in its own slot with the same shape `/api/agent-tools/call` uses.\n\n- `calls[].toolName` / `.arguments` \u2014 the request shape: a list of `{toolName, arguments}` pairs (`BATCH_MAX_SIZE = 10`).\n- `results[].toolName`, `.isError`, `.durationMs`, `.result` \u2014 one entry per call, in the order requested. The captured example batches a single `fear_greed` call and gets back `durationMs: 105`, `isError: false`, and the same 365-item Fear & Greed series `/api/agent-tools/call` returns alone.\n\n**When to use it** \u2014 fan out several independent tool calls (e.g. price + sentiment + funding for one dashboard render) in one round trip instead of N sequential POSTs.\n\n**Good to know** \u2014 per-tool errors land as `isError: true` inside a 200 response, same as the single-call route. Request-level violations \u2014 an empty batch, more than 10 calls, or a nested `parallel_tool_call` \u2014 fail the whole request with HTTP 422 before any tool runs, so a batch either fully dispatches or fully rejects.\n\n**Tier:** L1",
        "operationId": "post_api_agent_tools_batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "calls": {
                    "items": {
                      "properties": {
                        "arguments": {
                          "type": "object"
                        },
                        "toolName": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "maxItems": 10,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "results": [
                          {
                            "durationMs": 160,
                            "isError": false,
                            "result": {
                              "items": [
                                {
                                  "btcPrice": 117364.0,
                                  "date": 1755475200000,
                                  "value": 61
                                },
                                {
                                  "btcPrice": 116252.6,
                                  "date": 1755561600000,
                                  "value": 57
                                },
                                "...truncated 363 more"
                              ],
                              "meta": {
                                "count": 365,
                                "dataFreshnessTs": 1786924800000,
                                "latest": {
                                  "btcPrice": 62740.3,
                                  "date": 1786924800000,
                                  "value": 30
                                }
                              },
                              "status": "success"
                            },
                            "toolName": "fear_greed"
                          }
                        ]
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "results": {
                              "items": {
                                "properties": {
                                  "durationMs": {
                                    "type": "integer"
                                  },
                                  "isError": {
                                    "type": "boolean"
                                  },
                                  "result": {
                                    "properties": {
                                      "items": {
                                        "items": {
                                          "properties": {
                                            "btcPrice": {
                                              "type": "number"
                                            },
                                            "date": {
                                              "type": "integer"
                                            },
                                            "value": {
                                              "type": "integer"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "type": "array"
                                      },
                                      "meta": {
                                        "properties": {
                                          "count": {
                                            "type": "integer"
                                          },
                                          "dataFreshnessTs": {
                                            "type": "integer"
                                          },
                                          "latest": {
                                            "properties": {
                                              "btcPrice": {
                                                "type": "number"
                                              },
                                              "date": {
                                                "type": "integer"
                                              },
                                              "value": {
                                                "type": "integer"
                                              }
                                            },
                                            "type": "object"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "status": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "toolName": {
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Batch-call tools",
        "tags": [
          "Utility"
        ]
      }
    },
    "/api/agent-tools/call": {
      "post": {
        "description": "Calls one tool by name \u2014 the transport underneath every tool: entry in this catalogue.\n**What you get** \u2014 the result of calling one named tool with arguments, unwrapped from tn-api's tool registry.\n\n- `toolName` \u2014 echoes the tool called, e.g. `fear_greed`.\n- `isError` \u2014 `false` on success; tool-level errors are returned this way in a 200 response rather than as an HTTP error.\n- `durationMs` \u2014 server-side execution time; 319ms in the captured `fear_greed` call.\n- `result` \u2014 the tool's own output, whatever shape that tool defines (in the example, `fear_greed`'s `{items[], meta, status}` envelope with 365 daily readings).\n\n**When to use it** \u2014 call any tool from `/api/agent-tools`'s list by name without writing a bespoke client for each one; this is the single dispatch point they all share.\n\n**Good to know** \u2014 an unknown `toolName` returns HTTP 400 before dispatch; everything else \u2014 including a tool erroring internally \u2014 comes back 200 with `isError: true`, so check that flag rather than the HTTP status to detect a failed call. `arguments` defaults to `{}` if the tool takes none.\n\n**Tier:** L1",
        "operationId": "post_api_agent_tools_call",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "coinbase_premium": {
                  "description": "Tracks the price gap between Coinbase and Binance BTC \u2014 a classic read on US institutional buying pressure. The same series behind the dashboard's Coinbase Premium widget. Arguments schema: `#/components/schemas/TnapiCoinbasePremiumInput`.",
                  "summary": "L1 \u00b7 Sentiment / flows / on-chain cycle",
                  "value": {
                    "arguments": {},
                    "toolName": "coinbase_premium"
                  }
                },
                "derivatives_analysis": {
                  "description": "Pulls funding rate, open interest, and liquidation evidence for a token's derivatives market. Arguments schema: `#/components/schemas/TnapiDerivativesAnalysisInput`.",
                  "summary": "L1 \u00b7 Derivatives & positioning",
                  "value": {
                    "arguments": {},
                    "toolName": "derivatives_analysis"
                  }
                },
                "etf_flow": {
                  "description": "Reports daily net flows into and out of the US spot BTC/ETH ETFs. The same series behind the dashboard's ETF Flow widget. Arguments schema: `#/components/schemas/TnapiEtfFlowInput`.",
                  "summary": "L1 \u00b7 Sentiment / flows / on-chain cycle",
                  "value": {
                    "arguments": {},
                    "toolName": "etf_flow"
                  }
                },
                "event_v2": {
                  "description": "Searches TrueNorth's own curated market story index for news and catalysts. Arguments schema: `#/components/schemas/TnapiEventV2Input`.",
                  "summary": "L1 \u00b7 News & events",
                  "value": {
                    "arguments": {
                      "token_address": "bitcoin"
                    },
                    "toolName": "event_v2"
                  }
                },
                "fear_greed": {
                  "description": "Returns the daily crypto Fear & Greed index, 0-100, with BTC price context alongside each reading. The same series behind the dashboard's Fear & Greed widget. Arguments schema: `#/components/schemas/TnapiFearGreedInput`.",
                  "summary": "L1 \u00b7 Sentiment / flows / on-chain cycle",
                  "value": {
                    "arguments": {},
                    "toolName": "fear_greed"
                  }
                },
                "financial_analyst_estimates": {
                  "description": "Returns Wall Street's EPS/revenue consensus, price targets, and buy/hold/sell ratings for a stock. Arguments schema: `#/components/schemas/TnapiFinancialAnalystEstimatesInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_analyst_estimates"
                  }
                },
                "financial_company_facts": {
                  "description": "Merges a company profile with SEC EDGAR identity data for one stock. Arguments schema: `#/components/schemas/TnapiFinancialCompanyFactsInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_company_facts"
                  }
                },
                "financial_earnings_calendar": {
                  "description": "Lists upcoming and recent earnings events in a date window. Arguments schema: `#/components/schemas/TnapiFinancialEarningsCalendarInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_earnings_calendar"
                  }
                },
                "financial_earnings_data": {
                  "description": "Returns quarterly EPS and revenue, actual versus estimate. Arguments schema: `#/components/schemas/TnapiFinancialEarningsDataInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_earnings_data"
                  }
                },
                "financial_economic_calendar": {
                  "description": "Lists upcoming and recent macro releases \u2014 CPI, non-farm payrolls, rate decisions \u2014 with consensus and actual values. Arguments schema: `#/components/schemas/TnapiFinancialEconomicCalendarInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_economic_calendar"
                  }
                },
                "financial_fundamental_graph": {
                  "description": "Returns a stock's income, balance-sheet and cash-flow history already shaped as chart cards, each naming its own chart type. Arguments schema: `#/components/schemas/TnapiFinancialFundamentalGraphInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_fundamental_graph"
                  }
                },
                "financial_insider_trades": {
                  "description": "Lists SEC Form 4 insider transactions for a US stock. Arguments schema: `#/components/schemas/TnapiFinancialInsiderTradesInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_insider_trades"
                  }
                },
                "financial_institutional_ownership": {
                  "description": "Lists the top 13F institutional holders of a US stock, with shares held and percent of shares outstanding. Arguments schema: `#/components/schemas/TnapiFinancialInstitutionalOwnershipInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_institutional_ownership"
                  }
                },
                "financial_metrics": {
                  "description": "Computes 40+ derived financial ratios \u2014 margins, ROE/ROA, leverage, liquidity, per-share, YoY growth \u2014 from a company's statements. Arguments schema: `#/components/schemas/TnapiFinancialMetricsInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_metrics"
                  }
                },
                "financial_resolve_stock_ticker": {
                  "description": "Fuzzy-matches free text to a US stock ticker. Arguments schema: `#/components/schemas/TnapiFinancialResolveStockTickerInput`.",
                  "summary": "L3 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {
                      "query": "AAPL"
                    },
                    "toolName": "financial_resolve_stock_ticker"
                  }
                },
                "financial_segmented_revenue": {
                  "description": "Returns SEC-derived segmented revenue (by product/geography) for a US issuer's reporting periods. Arguments schema: `#/components/schemas/TnapiFinancialSegmentedRevenueInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_segmented_revenue"
                  }
                },
                "financial_statements": {
                  "description": "Returns income, balance sheet, cash-flow, and key-stats statements for a stock. Arguments schema: `#/components/schemas/TnapiFinancialStatementsInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_statements"
                  }
                },
                "financial_stock_dividends": {
                  "description": "Lists a US stock's historical dividend events. Arguments schema: `#/components/schemas/TnapiFinancialStockDividendsInput`.",
                  "summary": "L1 \u00b7 US equities / SEC / fundamentals",
                  "value": {
                    "arguments": {},
                    "toolName": "financial_stock_dividends"
                  }
                },
                "hyperliquid_smart_money": {
                  "description": "Analyzes what large, historically profitable Hyperliquid wallets are positioned in for a given token. Arguments schema: `#/components/schemas/TnapiHyperliquidSmartMoneyInput`.",
                  "summary": "L1 \u00b7 Derivatives & positioning",
                  "value": {
                    "arguments": {},
                    "toolName": "hyperliquid_smart_money"
                  }
                },
                "kline_analysis": {
                  "description": "Reads a token's price chart (candles) and summarizes the pattern in plain language. Arguments schema: `#/components/schemas/TnapiKlineAnalysisInput`.",
                  "summary": "L2 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {},
                    "toolName": "kline_analysis"
                  }
                },
                "liquidation_risk": {
                  "description": "Calculates how close a position sits to its exchange-computed liquidation price. Arguments schema: `#/components/schemas/TnapiLiquidationRiskInput`.",
                  "summary": "L2 \u00b7 Derivatives & positioning",
                  "value": {
                    "arguments": {
                      "current_price": 64000,
                      "direction": "long",
                      "liquidation_price": 58000,
                      "token_address": "bitcoin"
                    },
                    "toolName": "liquidation_risk"
                  }
                },
                "market_session": {
                  "description": "Tells you whether a venue's market is currently open, and what the local time is there for the user. Arguments schema: `#/components/schemas/TnapiMarketSessionInput`.",
                  "summary": "L2 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {
                      "venue": "hyperliquid_perp"
                    },
                    "toolName": "market_session"
                  }
                },
                "market_whale_positions": {
                  "description": "Lists the largest Hyperliquid positions currently held by large wallets ('whales'), sourced through TrueNorth's market-data gateway. Arguments schema: `#/components/schemas/TnapiMarketWhalePositionsInput`.",
                  "summary": "L1 \u00b7 Derivatives & positioning",
                  "value": {
                    "arguments": {},
                    "toolName": "market_whale_positions"
                  }
                },
                "mvrv": {
                  "description": "Returns Bitcoin's MVRV Z-Score, a daily on-chain cycle-timing indicator. The same series behind the dashboard's MVRV Z-Score widget. Arguments schema: `#/components/schemas/TnapiMvrvInput`.",
                  "summary": "L1 \u00b7 Sentiment / flows / on-chain cycle",
                  "value": {
                    "arguments": {},
                    "toolName": "mvrv"
                  }
                },
                "options_report": {
                  "description": "Builds a full options-market picture for a token: max pain, gamma exposure, implied volatility, skew, and notable block trades. Arguments schema: `#/components/schemas/TnapiOptionsReportInput`.",
                  "summary": "L1 \u00b7 Derivatives & positioning",
                  "value": {
                    "arguments": {},
                    "toolName": "options_report"
                  }
                },
                "performance_scanner": {
                  "description": "Ranks a universe of tokens by relative strength against a benchmark and flags standouts from STRONG_BUY to UNDERPERFORMING. Arguments schema: `#/components/schemas/TnapiPerformanceScannerInput`.",
                  "summary": "L1 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {},
                    "toolName": "performance_scanner"
                  }
                },
                "polymarket_insight": {
                  "description": "Looks up live odds from prediction markets. Arguments schema: `#/components/schemas/TnapiPolymarketInsightInput`.",
                  "summary": "L3 \u00b7 Sentiment / flows / on-chain cycle",
                  "value": {
                    "arguments": {
                      "limit": 10,
                      "query_type": "crypto_price",
                      "search_terms": "bitcoin"
                    },
                    "toolName": "polymarket_insight"
                  }
                },
                "resolve_asset": {
                  "description": "Turns a free-text ticker or name into the canonical token address and best exchange to trade it on, across crypto, stocks, and more. Arguments schema: `#/components/schemas/TnapiResolveAssetInput`.",
                  "summary": "L3 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {
                      "query": "BTC"
                    },
                    "toolName": "resolve_asset"
                  }
                },
                "technical_analysis": {
                  "description": "Runs standard technical indicators (RSI, MACD, support/resistance) on a token and explains what they mean. Arguments schema: `#/components/schemas/TnapiTechnicalAnalysisInput`.",
                  "summary": "L1 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {},
                    "toolName": "technical_analysis"
                  }
                },
                "trending_discovery": {
                  "description": "Surfaces trending crypto tokens, mapped to a tradable exchange. Arguments schema: `#/components/schemas/TnapiTrendingDiscoveryInput`.",
                  "summary": "L1 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {},
                    "toolName": "trending_discovery"
                  }
                },
                "venue_costs": {
                  "description": "Looks up the latest fee, slippage, and funding-cadence config for one instrument on one venue. Arguments schema: `#/components/schemas/TnapiVenueCostsInput`.",
                  "summary": "L2 \u00b7 Crypto market data & TA",
                  "value": {
                    "arguments": {
                      "instrument": "BTC"
                    },
                    "toolName": "venue_costs"
                  }
                }
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "description": "Shape depends on `toolName`. See the matching example below, or the referenced `components.schemas.*Input`.",
                    "type": "object"
                  },
                  "toolName": {
                    "description": "Which tool to call \u2014 pick one of the examples below for a worked request.",
                    "enum": [
                      "coinbase_premium",
                      "derivatives_analysis",
                      "etf_flow",
                      "event_v2",
                      "fear_greed",
                      "financial_analyst_estimates",
                      "financial_company_facts",
                      "financial_earnings_calendar",
                      "financial_earnings_data",
                      "financial_economic_calendar",
                      "financial_fundamental_graph",
                      "financial_insider_trades",
                      "financial_institutional_ownership",
                      "financial_metrics",
                      "financial_resolve_stock_ticker",
                      "financial_segmented_revenue",
                      "financial_statements",
                      "financial_stock_dividends",
                      "hyperliquid_smart_money",
                      "kline_analysis",
                      "liquidation_risk",
                      "market_session",
                      "market_whale_positions",
                      "mvrv",
                      "options_report",
                      "performance_scanner",
                      "polymarket_insight",
                      "resolve_asset",
                      "technical_analysis",
                      "trending_discovery",
                      "venue_costs"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "coinbase_premium": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 233,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "binancePrice": 63450.0,
                              "closeTime": 1785239999999,
                              "coinbasePrice": 63393.51,
                              "openTime": 1785236400000,
                              "premiumGap": -56.48999999999796,
                              "premiumIndex": -0.08903073286051688
                            },
                            {
                              "binancePrice": 63546.65,
                              "closeTime": 1785243599999,
                              "coinbasePrice": 63470.34,
                              "openTime": 1785240000000,
                              "premiumGap": -76.31000000000495,
                              "premiumIndex": -0.12008500841508551
                            },
                            "...truncated 498 more"
                          ],
                          "meta": {
                            "count": 500,
                            "dataFreshnessTs": 1787036399999,
                            "interval": "1h",
                            "latest": {
                              "binancePrice": 64204.18,
                              "closeTime": 1787032979999,
                              "coinbasePrice": 64141.5,
                              "openTime": 1787032920000,
                              "premiumGap": -62.68000000000029,
                              "premiumIndex": -0.0976260424165534
                            },
                            "unmatchedBinanceBuckets": 0,
                            "unmatchedCoinbaseBuckets": 0
                          },
                          "status": "success"
                        },
                        "toolName": "coinbase_premium"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "derivatives_analysis": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 246,
                        "isError": false,
                        "result": {
                          "derivative_data": {
                            "BTC": {
                              "1h Aggregated OI weighted funding rate": {
                                "24h_funding_cost_est_in_percentage": 0.0092,
                                "annualized_funding_cost_est_in_percentage": 3.36,
                                "current_funding_percentile_7d": 19.6,
                                "current_funding_rate_in_percentage": 0.003083,
                                "flip_4h": false,
                                "funding_changes_in_percentage": {
                                  "funding_change_1d_abs": -0.005376,
                                  "funding_change_1h_abs": -0.000159,
                                  "funding_change_4h_abs": -0.001334
                                }
                              },
                              "Aggregated open interest": {
                                "current_open_interest": 6789942821.979,
                                "oi_mcap_ratio_analysis": {
                                  "oi_mcap_change_1d_abs": -0.022,
                                  "oi_mcap_change_1h_abs": -0.001,
                                  "oi_mcap_change_4h_abs": -0.004,
                                  "oi_mcap_ratio_pct": 0.527
                                },
                                "percentile_analysis": {
                                  "current_oi_percentile_7d": 0.4
                                },
                                "rolling_changes": {
                                  "oi_change_1d_abs": -276953904.0,
                                  "oi_change_1h_abs": -11521243.0,
                                  "oi_change_4h_abs": -53035965.0
                                }
                              }
                            },
                            "_metadata": {
                              "data_fetch_ms": 223.13,
                              "exchange_id": "binance_futures",
                              "market_pair": "BTCUSDT",
                              "request_time_ms": 235.11,
                              "requested_exchange_id": "binance_futures",
                              "symbol": "BTC",
                              "symbol_resolve_ms": 11.97,
                              "token_address": "bitcoin"
                            },
                            "title": "Coinglass BTC Derivatives",
                            "url": "https://www.coinglass.com/tv/Binance_BTCUSDT"
                          },
                          "effective_exchange_id": "binance_futures",
                          "included_sections": [
                            "funding",
                            "open_interest"
                          ],
                          "requested_exchange_id": null,
                          "requested_sections": null,
                          "snapshot": {
                            "funding": {
                              "annualized": {
                                "display": "+3.36% APR",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.annualized_funding_cost_est_in_percentage",
                                "unit": "percent",
                                "value": 3.36
                              },
                              "current": {
                                "display": "+0.003083%",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.current_funding_rate_in_percentage",
                                "unit": "percent",
                                "value": 0.003083
                              },
                              "estimated_24h": {
                                "display": "+0.0092%",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.24h_funding_cost_est_in_percentage",
                                "unit": "percent",
                                "value": 0.0092
                              },
                              "payment_direction": {
                                "display": "Longs pay shorts",
                                "payer": "longs",
                                "receiver": "shorts"
                              },
                              "percentile_7d": 19.6,
                              "period_hours": 8.0,
                              "settlement_source": "venue_table",
                              "source_label": "Funding Rate (binance_futures, 8h settlement)",
                              "source_venue": "binance_futures"
                            },
                            "open_interest": {
                              "current_usd": 6789942821.979,
                              "is_snapshot_only": false,
                              "percentile_7d": 0.4,
                              "snapshot_at": null,
                              "source_field": "derivative_data.BTC.Aggregated open interest.current_open_interest"
                            },
                            "symbol": "BTC"
                          },
                          "status": "success"
                        },
                        "toolName": "derivatives_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "etf_flow": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 94,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "date": 1742774400000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 209.97,
                                  "flowUsd": 18067347.72,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 978.24,
                              "netFlowUsd": 84173567.21
                            },
                            {
                              "date": 1742860800000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 480.57,
                                  "flowUsd": 42032708.76,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 306.81,
                              "netFlowUsd": 26834350.91
                            },
                            "...truncated 363 more"
                          ],
                          "meta": {
                            "asset": "btc",
                            "count": 365,
                            "dataFreshnessTs": 1786924800000,
                            "latest": {
                              "date": 1786924800000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 2005.24,
                              "netFlowUsd": 126081851.05
                            },
                            "refreshedAtTs": 1787030400408
                          },
                          "status": "success"
                        },
                        "toolName": "etf_flow"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "event_v2": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 82,
                        "isError": false,
                        "result": {
                          "query": "",
                          "results": [
                            {
                              "event_count": 1,
                              "event_type": "sec_filing",
                              "final_rank_score": 45,
                              "first_event_at": 1786959202929,
                              "last_event_at": 1786959202929,
                              "lead_event_uuid": "evt_c315935c79c91efdf490fdcbaa896ca3",
                              "lead_published_at": 1786959202929,
                              "preview": "Harvard University's 13F filing shows it held its Bitcoin ETF position steady in Q2, with 3.04 million shares of IBIT worth $101.35 million, while not adding any Ethereum ETF stake after liquidating i...",
                              "published_at": 1786959202929,
                              "publisher": "benzinga",
                              "source": "benzinga",
                              "source_url": "https://www.benzinga.com/crypto/cryptocurrency/26/08/61239930/harvard-university-did-not-sell-its-bitcoin-etf-holdings-in-q2-discloses-no-new-ethereum-etf-stake",
                              "story_id": "story_01a00f11-b57d-7a80-b17d-df8968149e55",
                              "title": "Harvard Did Not Sell Its Bitcoin ETF Holdings in Q2, Discloses No New Ethereum ETF Stake",
                              "token_addresses": [
                                "bitcoin",
                                "stock_ibit",
                                "...truncated 6 more"
                              ]
                            },
                            {
                              "event_count": 1,
                              "event_type": "crypto_etf_flow",
                              "final_rank_score": 55,
                              "first_event_at": 1786968672976,
                              "last_event_at": 1786968672976,
                              "lead_event_uuid": "evt_732cc1bdfa6e77754eb44e1295fbb51a",
                              "lead_published_at": 1786968672976,
                              "preview": "U.S. spot Bitcoin ETFs saw their largest weekly outflow since June, with $389.7 million drained in the week of Aug. 10, reversing the prior week's $853.5 million inflow. Goldman Sachs economists see a...",
                              "published_at": 1786968672976,
                              "publisher": "benzinga",
                              "source": "benzinga",
                              "source_url": "https://www.benzinga.com/crypto/cryptocurrency/26/08/61243545/bitcoin-etfs-see-largest-outflow-in-six-weeks-whats-going-on",
                              "story_id": "story_01a00fa2-314f-7733-ab20-3ca68a2951e3",
                              "title": "Bitcoin ETFs See Largest Outflow in Six Weeks: What&#39;s Going On?",
                              "token_addresses": [
                                "bitcoin",
                                "stock_gs"
                              ]
                            },
                            "...truncated 3 more"
                          ],
                          "status": "success",
                          "total_results": 5
                        },
                        "toolName": "event_v2"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "fear_greed": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 192,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "btcPrice": 117364.0,
                              "date": 1755475200000,
                              "value": 61
                            },
                            {
                              "btcPrice": 116252.6,
                              "date": 1755561600000,
                              "value": 57
                            },
                            "...truncated 363 more"
                          ],
                          "meta": {
                            "count": 365,
                            "dataFreshnessTs": 1786924800000,
                            "latest": {
                              "btcPrice": 62740.3,
                              "date": 1786924800000,
                              "value": 30
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "fear_greed"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_analyst_estimates": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 67,
                        "isError": false,
                        "result": {
                          "analyst_estimates": [
                            {
                              "ebitda_avg": 239767887874.0,
                              "eps_avg": 12.85,
                              "eps_high": 14.15557,
                              "eps_low": 12.10216,
                              "net_income_avg": 192810356462.0,
                              "num_analysts_eps": 9,
                              "num_analysts_revenue": 11,
                              "period": "annual",
                              "report_period": "2030-09-27",
                              "revenue_avg": 664296666667.0,
                              "revenue_high": 716214517708.0,
                              "revenue_low": 634557856538.0
                            },
                            {
                              "ebitda_avg": 174364789560.0,
                              "eps_avg": 11.69995,
                              "eps_high": 12.88868,
                              "eps_low": 11.01904,
                              "net_income_avg": 175554204676.0,
                              "num_analysts_eps": 9,
                              "num_analysts_revenue": 18,
                              "period": "annual",
                              "report_period": "2029-09-27",
                              "revenue_avg": 483092000000.0,
                              "revenue_high": 520847869860.0,
                              "revenue_low": 461465244992.0
                            },
                            "...truncated 2 more"
                          ],
                          "period": "annual",
                          "price_targets": {
                            "target_high": 400.0,
                            "target_low": 245.0,
                            "target_mean": 337.43,
                            "target_median": 355.0
                          },
                          "recommendation_distribution": {
                            "buy": 69,
                            "consensus_label": "Buy",
                            "hold": 32,
                            "sell": 9,
                            "strong_buy": 1,
                            "strong_sell": 0
                          },
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_analyst_estimates"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_company_facts": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 65,
                        "isError": false,
                        "result": {
                          "company_facts": {
                            "ceo": "Timothy D. Cook",
                            "cik": "0000320193",
                            "city": "CUPERTINO",
                            "country": "US",
                            "industry": "Consumer Electronics",
                            "is_active": true,
                            "name": "Apple Inc.",
                            "sector": "Technology",
                            "sic_code": "3571",
                            "sic_description": "Electronic Computers",
                            "state": "CA",
                            "ticker": "AAPL",
                            "website": "https://www.apple.com"
                          },
                          "status": "success"
                        },
                        "toolName": "financial_company_facts"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_earnings_calendar": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 401,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T05:59:14.124156+00:00",
                          "availability": "ready",
                          "count": 30,
                          "end_date": "2026-09-01",
                          "events": [
                            {
                              "company_name": "Walmart Inc.",
                              "eps_actual": null,
                              "eps_estimate_avg": 0.741,
                              "eps_estimate_high": null,
                              "eps_estimate_low": null,
                              "event_date_end": null,
                              "event_date_start": "2026-08-20",
                              "revenue_estimate_avg": 186619700000,
                              "revenue_estimate_high": null,
                              "revenue_estimate_low": null,
                              "symbol": "WMT"
                            },
                            {
                              "company_name": "NVIDIA Corporation",
                              "eps_actual": null,
                              "eps_estimate_avg": 2.08,
                              "eps_estimate_high": null,
                              "eps_estimate_low": null,
                              "event_date_end": null,
                              "event_date_start": "2026-08-26",
                              "revenue_estimate_avg": 91932130000,
                              "revenue_estimate_high": null,
                              "revenue_estimate_low": null,
                              "symbol": "NVDA"
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "requested_tickers": null,
                          "start_date": "2026-08-18",
                          "status": "success"
                        },
                        "toolName": "financial_earnings_calendar"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_earnings_data": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 63,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T04:30:01.622182+00:00",
                          "availability": "ready",
                          "count": 30,
                          "earnings": [
                            {
                              "eps_actual": null,
                              "eps_estimate": 1.98,
                              "eps_surprise": null,
                              "eps_surprise_pct": null,
                              "fiscal_period": null,
                              "report_period": "2026-10-29",
                              "revenue_actual": null,
                              "revenue_estimate": 113340900000
                            },
                            {
                              "eps_actual": 2.02,
                              "eps_estimate": 1.89,
                              "eps_surprise": 0.13000000000000012,
                              "eps_surprise_pct": 6.878306878306885,
                              "fiscal_period": null,
                              "report_period": "2026-07-30",
                              "revenue_actual": 109417000000,
                              "revenue_estimate": 109038900000
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "period": "quarterly",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_earnings_data"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_economic_calendar": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1497,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T06:03:40.547431",
                          "availability": "ready",
                          "count": 1001,
                          "country": null,
                          "end_date": "2026-09-01",
                          "events": [
                            {
                              "actual": 88.9,
                              "change": 5.0,
                              "change_percent": 5.959,
                              "country": "AU",
                              "currency": "AUD",
                              "estimate": 81.7,
                              "event": "Westpac Consumer Confidence Index (Aug)",
                              "event_time": "2026-08-18T00:30:00",
                              "impact": "medium",
                              "observation_date": "2026-08-18",
                              "previous": 83.9,
                              "unit": null
                            },
                            {
                              "actual": 6.0,
                              "change": 1.9,
                              "change_percent": 46.341,
                              "country": "AU",
                              "currency": "AUD",
                              "estimate": -2.6,
                              "event": "Westpac Consumer Confidence Change (Aug)",
                              "event_time": "2026-08-18T00:30:00",
                              "impact": "high",
                              "observation_date": "2026-08-18",
                              "previous": 4.1,
                              "unit": "%"
                            },
                            "...truncated 999 more"
                          ],
                          "start_date": "2026-08-18",
                          "status": "success"
                        },
                        "toolName": "financial_economic_calendar"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_fundamental_graph": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 281,
                        "isError": false,
                        "result": {
                          "chartTypes": [
                            {
                              "label": "Bar",
                              "type": "bar",
                              "use": "Absolute per-period values such as revenue or cash flow."
                            },
                            "...truncated 5 more"
                          ],
                          "charts": [
                            {
                              "availableChartTypes": [
                                "bar",
                                "...truncated 1 more"
                              ],
                              "chartType": "bar",
                              "facts": {
                                "calculatedInsights": [
                                  "...truncated (depth limit, 2 items)"
                                ],
                                "latest": 416161000000.0,
                                "latestFormatted": "$416.2B",
                                "latestPeriod": "FY2025",
                                "periodChangeFormatted": "+6.4%",
                                "periodChangePct": 0.0642551178283274,
                                "previousPeriod": "FY2024",
                                "qoqChangeFormatted": null,
                                "qoqChangePct": null,
                                "threeYearCagrFormatted": "+1.8%",
                                "threeYearCagrPct": 0.01812535743479393,
                                "trend": "up",
                                "yoyChangeFormatted": "+6.4%",
                                "yoyChangePct": 0.0642551178283274
                              },
                              "label": "Revenue",
                              "metric": "revenue",
                              "period": "annual",
                              "points": [
                                {
                                  "...": "6 more field(s) omitted from this documentation example"
                                },
                                "...truncated 7 more"
                              ],
                              "source": "income",
                              "unit": "currency"
                            },
                            "...truncated 22 more"
                          ],
                          "factsForChat": {
                            "availableMetrics": [
                              "revenue",
                              "...truncated 22 more"
                            ],
                            "metricFacts": [
                              {
                                "...": "1 more field(s) omitted from this documentation example",
                                "calculatedInsights": [
                                  "...truncated (depth limit, 2 items)"
                                ],
                                "chartType": "bar",
                                "label": "Revenue",
                                "latest": 416161000000.0,
                                "latestFormatted": "$416.2B",
                                "latestPeriod": "FY2025",
                                "metric": "revenue",
                                "metricKey": "revenue",
                                "metricLabel": "Revenue",
                                "periodChangeFormatted": "+6.4%",
                                "periodChangePct": 0.0642551178283274,
                                "previousPeriod": "FY2024",
                                "qoqChangeFormatted": null,
                                "qoqChangePct": null,
                                "source": "income",
                                "threeYearCagrFormatted": "+1.8%",
                                "threeYearCagrPct": 0.01812535743479393,
                                "unit": "currency",
                                "yoyChangeFormatted": "+6.4%",
                                "yoyChangePct": 0.0642551178283274
                              },
                              "...truncated 22 more"
                            ],
                            "missingMetrics": [],
                            "period": "annual",
                            "rawStatus": {
                              "analyst_estimates": "success",
                              "balance": "success",
                              "cashflow": "success",
                              "earnings_data": "success",
                              "income": "success",
                              "metrics": "success",
                              "segmented_revenue": "success"
                            },
                            "ticker": "AAPL"
                          },
                          "html": "<section class=\"tn-fundamental-graph\" data-fundamental-graph...truncated 189291 chars",
                          "metricCatalog": [
                            {
                              "availableChartTypes": [
                                "bar",
                                "...truncated 1 more"
                              ],
                              "defaultChartType": "bar",
                              "label": "Revenue",
                              "metric": "revenue",
                              "source": "income",
                              "unit": "currency"
                            },
                            "...truncated 22 more"
                          ],
                          "period": "annual",
                          "periodDatasets": {
                            "annual": {
                              "charts": [
                                {
                                  "...": "9 more field(s) omitted from this documentation example"
                                },
                                "...truncated 22 more"
                              ],
                              "defaultVisibleMetrics": [
                                "revenue",
                                "...truncated 5 more"
                              ],
                              "missingMetrics": [],
                              "period": "annual",
                              "rawStatus": {
                                "analyst_estimates": "success",
                                "balance": "success",
                                "cashflow": "success",
                                "earnings_data": "success",
                                "income": "success",
                                "metrics": "success",
                                "segmented_revenue": "success"
                              }
                            },
                            "quarter": {
                              "charts": [
                                {
                                  "...": "9 more field(s) omitted from this documentation example"
                                },
                                "...truncated 19 more"
                              ],
                              "defaultVisibleMetrics": [
                                "revenue",
                                "...truncated 5 more"
                              ],
                              "missingMetrics": [
                                "revenue_mix_geographic"
                              ],
                              "period": "quarter",
                              "rawStatus": {
                                "analyst_estimates": "success",
                                "balance": "success",
                                "cashflow": "success",
                                "earnings_data": "success",
                                "income": "success",
                                "metrics": "success",
                                "segmented_revenue": "success"
                              }
                            }
                          },
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_fundamental_graph"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_insider_trades": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 99,
                        "isError": false,
                        "result": {
                          "count": 30,
                          "insider_trades": [
                            {
                              "filing_accession": "0001140361-26-032884",
                              "filing_date": "2026-08-13",
                              "filing_section_row_number": 0,
                              "is_director": null,
                              "is_officer": true,
                              "is_other": null,
                              "is_ten_percent_owner": null,
                              "issuer_cik": "0000320193",
                              "officer_title": "SVP, GC and Secretary",
                              "period_of_report": "2026-08-11",
                              "reporting_owner_cik": "0001780525",
                              "reporting_owner_name": "Newstead Jennifer",
                              "security_title": "Common Stock",
                              "security_type": "non_derivative",
                              "shares_owned_following_transaction": 40107.0,
                              "transaction_acquired_disposed_code": "D",
                              "transaction_code": "S",
                              "transaction_date": "2026-08-11",
                              "transaction_price_per_share": 307.75,
                              "transaction_shares": 1439.0
                            },
                            {
                              "filing_accession": "0001140361-26-025620",
                              "filing_date": "2026-06-17",
                              "filing_section_row_number": 2,
                              "is_director": null,
                              "is_officer": true,
                              "is_other": null,
                              "is_ten_percent_owner": null,
                              "issuer_cik": "0000320193",
                              "officer_title": "Principal Accounting Officer",
                              "period_of_report": "2026-06-15",
                              "reporting_owner_cik": "0002100523",
                              "reporting_owner_name": "Borders Ben",
                              "security_title": "Common Stock",
                              "security_type": "non_derivative",
                              "shares_owned_following_transaction": 38713.0,
                              "transaction_acquired_disposed_code": "D",
                              "transaction_code": "S",
                              "transaction_date": "2026-06-16",
                              "transaction_price_per_share": 295.14,
                              "transaction_shares": 116.0
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_insider_trades"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_institutional_ownership": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1097,
                        "isError": false,
                        "result": {
                          "count": 19,
                          "filing_date": "2026-05-13",
                          "holders": [
                            {
                              "change_in_shares": -9970306,
                              "change_in_shares_pct": -0.8635,
                              "cik": "0002012383",
                              "first_added": "2024-09-30",
                              "holder_name": "BLACKROCK, INC.",
                              "holding_period_quarters": 7,
                              "is_new": false,
                              "is_sold_out": false,
                              "ownership_percentage": 7.7814,
                              "shares_held": 1144695425,
                              "value_held": 290512251859,
                              "weight": 5.0758
                            },
                            {
                              "change_in_shares": 953847648,
                              "change_in_shares_pct": 100.0,
                              "cik": "0002100119",
                              "first_added": "2026-03-31",
                              "holder_name": "VANGUARD CAPITAL MANAGEMENT LLC",
                              "holding_period_quarters": 1,
                              "is_new": true,
                              "is_sold_out": false,
                              "ownership_percentage": 6.484,
                              "shares_held": 953847648,
                              "value_held": 242076924860,
                              "weight": 5.9877
                            },
                            "...truncated 17 more"
                          ],
                          "limit": 20,
                          "quarter": 1,
                          "report_period": "2026-03-31",
                          "status": "success",
                          "ticker": "AAPL",
                          "year": 2026
                        },
                        "toolName": "financial_institutional_ownership"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_metrics": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 201,
                        "isError": false,
                        "result": {
                          "financial_metrics": [
                            {
                              "asset_turnover": 1.149265210481331,
                              "book_value_growth_yoy": 0.2946971027216857,
                              "book_value_per_share": 4.932468140616115,
                              "cash_ratio": 0.21695214060169896,
                              "currency": "USD",
                              "current_ratio": 0.8932929222186667,
                              "debt_to_assets": 0.3128178576498785,
                              "debt_to_equity": 1.5241072518411023,
                              "earnings_growth_yoy": 0.19495177946573355,
                              "earnings_per_share": 7.49,
                              "ebit_margin": 0.3189366615324358,
                              "ebitda_growth_yoy": 0.07038464388942414,
                              "ebitda_margin": 0.34704597499525425,
                              "eps_growth_yoy": 0.22585924713584285,
                              "fiscal_period": "FY",
                              "free_cash_flow_growth_yoy": -0.09227347505215656,
                              "free_cash_flow_margin": 0.23732882225869315,
                              "free_cash_flow_per_share": 6.607151219185871,
                              "gross_margin": 0.4690516410716045,
                              "interest_coverage": null,
                              "net_cash": -76443000000.0,
                              "net_debt_to_ebitda": 0.5292846905357032,
                              "net_margin": 0.2691506412181824,
                              "operating_cash_flow_margin": 0.26788190147563085,
                              "operating_margin": 0.31970799762591884,
                              "period": "annual",
                              "quick_ratio": 0.21695214060169896,
                              "refreshed_at": "2026-08-15T07:00:07.191246+00:00",
                              "report_period": "2025-09-27",
                              "return_on_assets": 0.3093254683307996,
                              "return_on_equity": 1.7142244974480232,
                              "return_on_invested_capital": 0.7562060747632003,
                              "revenue_growth_yoy": 0.0642551178283274,
                              "revenue_per_share": 27.83964946315684,
                              "tangible_book_value_per_share": 4.932468140616115,
                              "ticker": "AAPL",
                              "working_capital": -17674000000.0
                            },
                            {
                              "asset_turnover": 1.0898973330564703,
                              "book_value_growth_yoy": -0.0836095645737457,
                              "book_value_per_share": 3.711600978715614,
                              "cash_ratio": 0.16975259648963673,
                              "currency": "USD",
                              "current_ratio": 0.8673125765340832,
                              "debt_to_assets": 0.32620691544742175,
                              "debt_to_equity": 2.090588235294118,
                              "earnings_growth_yoy": -0.033599670086086914,
                              "earnings_per_share": 6.11,
                              "ebit_margin": 0.3157901466620635,
                              "ebitda_growth_yoy": 0.044446852648852835,
                              "ebitda_margin": 0.34505862646566166,
                              "eps_growth_yoy": -0.008116883116883088,
                              "fiscal_period": "FY",
                              "free_cash_flow_growth_yoy": 0.092615279562982,
                              "free_cash_flow_margin": 0.27825386474356517,
                              "free_cash_flow_per_share": 7.091275991064264,
                              "gross_margin": 0.4620634981523393,
                              "interest_coverage": null,
                              "net_cash": -89116000000.0,
                              "net_debt_to_ebitda": 0.6604609797672868,
                              "net_margin": 0.23971255769943867,
                              "operating_cash_flow_margin": 0.3024128274962599,
                              "operating_margin": 0.31510222870075566,
                              "period": "annual",
                              "quick_ratio": 0.16975259648963673,
                              "refreshed_at": "2026-08-15T07:00:07.191246+00:00",
                              "report_period": "2024-09-28",
                              "return_on_assets": 0.2612620773367635,
                              "return_on_equity": 1.5741250755692886,
                              "return_on_invested_capital": 0.6204045973055528,
                              "revenue_growth_yoy": 0.020219940775141214,
                              "revenue_per_share": 25.484914639368924,
                              "tangible_book_value_per_share": 3.711600978715614,
                              "ticker": "AAPL",
                              "working_capital": -23405000000.0
                            },
                            "...truncated 2 more"
                          ],
                          "period": "annual",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_metrics"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_resolve_stock_ticker": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 59,
                        "isError": false,
                        "result": {
                          "company_name": "Apple Inc.",
                          "query": "AAPL",
                          "resolution": {
                            "as_of": "2026-08-17T10:35:49.638163+00:00",
                            "candidates": [
                              {
                                "confidence": "high",
                                "financials_updated_at": "2026-08-15T06:30:01.371733+00:00",
                                "instrument_type": "stock",
                                "match_kind": "ticker_exact",
                                "matched_alias": null,
                                "name": "Apple Inc.",
                                "news_updated_at": null,
                                "relationship": "supported",
                                "ticker": "AAPL",
                                "updated_at": "2026-08-15T06:30:01.371733+00:00"
                              }
                            ],
                            "intent": "ticker",
                            "normalized_query": "aapl",
                            "query": "AAPL",
                            "resolved_instrument_type": "stock",
                            "resolved_name": "Apple Inc.",
                            "resolved_ticker": "AAPL",
                            "status": "exact_supported"
                          },
                          "score": 1.0,
                          "status": "exact_supported",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_resolve_stock_ticker"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_segmented_revenue": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 55,
                        "isError": false,
                        "result": {
                          "period": "annual",
                          "segmented_revenues": [
                            {
                              "items": [
                                {
                                  "amount": 64377000000,
                                  "name": "CN",
                                  "segments": [
                                    {
                                      "label": "CN",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                {
                                  "amount": 199994000000,
                                  "name": "Other Countries",
                                  "segments": [
                                    {
                                      "label": "Other Countries",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                "...truncated 8 more"
                              ],
                              "period": "annual",
                              "report_period": "2025-09-27",
                              "ticker": "AAPL"
                            },
                            {
                              "items": [
                                {
                                  "amount": 66952000000,
                                  "name": "CN",
                                  "segments": [
                                    {
                                      "label": "CN",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                {
                                  "amount": 181887000000,
                                  "name": "Other Countries",
                                  "segments": [
                                    {
                                      "label": "Other Countries",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                "...truncated 8 more"
                              ],
                              "period": "annual",
                              "report_period": "2024-09-28",
                              "ticker": "AAPL"
                            },
                            "...truncated 4 more"
                          ],
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_segmented_revenue"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_statements": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 70,
                        "isError": false,
                        "result": {
                          "income_statements": [
                            {
                              "cost_of_revenue": 220960000000.0,
                              "currency": "USD",
                              "dividends_per_share": null,
                              "earnings_per_share": 7.49,
                              "ebit": 132729000000.0,
                              "fiscal_period": "FY",
                              "gross_profit": 195201000000.0,
                              "income_tax_expense": 20719000000.0,
                              "interest_expense": 0.0,
                              "net_income": 112010000000.0,
                              "operating_expense": 62151000000.0,
                              "operating_income": 133050000000.0,
                              "period": "annual",
                              "report_period": "2025-09-27",
                              "revenue": 416161000000.0,
                              "symbol": "AAPL",
                              "weighted_average_shares": 15004697000.0
                            },
                            {
                              "cost_of_revenue": 210352000000.0,
                              "currency": "USD",
                              "dividends_per_share": null,
                              "earnings_per_share": 6.11,
                              "ebit": 123485000000.0,
                              "fiscal_period": "FY",
                              "gross_profit": 180683000000.0,
                              "income_tax_expense": 29749000000.0,
                              "interest_expense": 0.0,
                              "net_income": 93736000000.0,
                              "operating_expense": 57467000000.0,
                              "operating_income": 123216000000.0,
                              "period": "annual",
                              "report_period": "2024-09-28",
                              "revenue": 391035000000.0,
                              "symbol": "AAPL",
                              "weighted_average_shares": 15408095000.0
                            },
                            "...truncated 6 more"
                          ],
                          "period": "annual",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_statements"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "financial_stock_dividends": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1129,
                        "isError": false,
                        "result": {
                          "status": "not_found",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_stock_dividends"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "hyperliquid_smart_money": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 105,
                        "isError": false,
                        "result": {
                          "smart_money": {
                            "aggregated_position": {
                              "last_updated": "2026-08-18T06:00:58.961878",
                              "long_position": 423705122.89815295,
                              "net_position": -144182893.41345906,
                              "short_position": 567888016.311612,
                              "total_position": 991593139.209765
                            },
                            "sort_info": {
                              "limit": null,
                              "sort_by": "abs_size",
                              "sort_direction": "desc"
                            },
                            "success": true,
                            "symbol": "BTC",
                            "token_address": "bitcoin",
                            "total_wallets": 213,
                            "wallet_positions": [
                              {
                                "abs_size": 1800.0,
                                "entry_price": 63991.0,
                                "is_long": false,
                                "last_updated": "2026-08-18T06:00:58.998869",
                                "leverage": 40.0,
                                "liquidation_price": 64854.6347748938,
                                "margin_used": 2888100.0,
                                "position_value": 115524000.0,
                                "size": -1800.0,
                                "symbol": "BTC",
                                "unrealized_pnl": -340026.498063,
                                "wallet_address": "0x8c96e5a2d770f9f2c9d2464ce4e741df0b2bca57"
                              },
                              {
                                "abs_size": 1256.6398,
                                "entry_price": 63236.6,
                                "is_long": false,
                                "last_updated": "2026-08-18T06:00:58.998869",
                                "leverage": 5.0,
                                "liquidation_price": 99287.4855491224,
                                "margin_used": 16131736.44056,
                                "position_value": 80658682.2028,
                                "size": -1256.6398,
                                "symbol": "BTC",
                                "unrealized_pnl": -1193052.463659,
                                "wallet_address": "0xb83de012dba672c76a7dbbbf3e459cb59d7d6e36"
                              },
                              "...truncated 211 more"
                            ],
                            "wallets_returned": 213
                          },
                          "status": "success"
                        },
                        "toolName": "hyperliquid_smart_money"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "kline_analysis": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 42,
                        "isError": false,
                        "result": {
                          "agent": "kline_analysis",
                          "chart_patterns": [
                            {
                              "c": 62888.1,
                              "h": 63079.1,
                              "l": 62888.0,
                              "o": 62944.6,
                              "t": "2026-08-14 07:00:00",
                              "v": 5972.257
                            },
                            {
                              "c": 62904.9,
                              "h": 62974.4,
                              "l": 62658.8,
                              "o": 62888.0,
                              "t": "2026-08-14 08:00:00",
                              "v": 11490.409
                            },
                            "...truncated 94 more"
                          ],
                          "exchange_id": "hyperliquid_perp",
                          "requested_exchange_id": null,
                          "status": "success",
                          "title": "the data provider Bitcoin Price Chart",
                          "token_metadata": {
                            "requested_exchange_id": null
                          },
                          "url": "https://www.the data provider.com/en/coins/bitcoin"
                        },
                        "toolName": "kline_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "liquidation_risk": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 184,
                        "isError": false,
                        "result": {
                          "_metadata": {
                            "cache_hit": false,
                            "request_time_ms": 159.64,
                            "token_address": "bitcoin"
                          },
                          "bankruptcyPrice": null,
                          "ci95": [
                            0.0,
                            0.0005989670023148763
                          ],
                          "drift": {
                            "method": "zero",
                            "per_sec": 0.0
                          },
                          "histogram": {
                            "bins": [
                              -0.040944115303401175,
                              -0.03930635069126513,
                              "...truncated 49 more"
                            ],
                            "counts": [
                              0.0,
                              0.0,
                              "...truncated 49 more"
                            ],
                            "kind": "terminal_log_return",
                            "normalized": true
                          },
                          "liquidationPrice": 58000.0,
                          "meta": {
                            "barIntervalSec": 3600,
                            "cached": false,
                            "dtSec": 300,
                            "horizonDays": 1.0,
                            "horizonSec": 86400,
                            "nPaths": 5000
                          },
                          "notes": [
                            "Generated and cached new paths"
                          ],
                          "parameters": {
                            "source": "exchange"
                          },
                          "position": {
                            "current_price": 64000.0,
                            "direction": "long",
                            "entry_price": 0,
                            "leverage": 0,
                            "price_distance_pct": 10.344827586206895
                          },
                          "riskLevel": "VERY_LOW",
                          "riskProbability": 0.0,
                          "sigmasAway": 9.428448957019555,
                          "status": "success",
                          "volatility": {
                            "daily": 0.0104407494023673,
                            "horizon": 0.0104407494023673,
                            "method": "garman_klass",
                            "per_sec": 3.552015078898374e-05,
                            "window_bars": 168
                          }
                        },
                        "toolName": "liquidation_risk"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 128,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "btcPrice": 117364.0,
                              "date": 1755475200000,
                              "value": 61
                            },
                            {
                              "btcPrice": 116252.6,
                              "date": 1755561600000,
                              "value": 57
                            },
                            "...truncated 363 more"
                          ],
                          "meta": {
                            "count": 365,
                            "dataFreshnessTs": 1786924800000,
                            "latest": {
                              "btcPrice": 62740.3,
                              "date": 1786924800000,
                              "value": 30
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "fear_greed"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "market_session": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1,
                        "isError": false,
                        "result": {
                          "at_utc": "2026-08-18T06:04:23Z",
                          "candle_timezone": "UTC",
                          "current_local_time": "2026-08-18T06:04:23+00:00",
                          "current_source_time": "2026-08-18T06:04:23+00:00",
                          "daily_close": null,
                          "display_timezone": "UTC",
                          "holiday": null,
                          "is_open": true,
                          "notes": [
                            "Hyperliquid perps have no COMEX or NYSE daily venue close.",
                            "Candle closes depend on the requested timeframe and source candle timestamps."
                          ],
                          "reason": "Hyperliquid perpetual markets trade continuously.",
                          "session": "continuous",
                          "source_timezone": "UTC",
                          "status": "success",
                          "symbol": null,
                          "venue": "hyperliquid_perp"
                        },
                        "toolName": "market_session"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "market_whale_positions": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 203,
                        "isError": false,
                        "result": {
                          "data": {
                            "list": [
                              {
                                "address": "0x8c96e5a2d770f9f2c9d2464ce4e741df0b2bca57",
                                "baseCoin": "BTC",
                                "createdAt": 1785864540000,
                                "cumFunding": -130215.287958,
                                "entryPx": 63991.0,
                                "firstGt1000": 1785970440000,
                                "follow": false,
                                "isAll": true,
                                "isShow": true,
                                "leverage": 40,
                                "liquidationPx": 64854.6575425652,
                                "marginUsed": 2888910.0,
                                "maxPosition": 116047800.0,
                                "positionValue": 115556400.0,
                                "preChangeTime": 1786947270058,
                                "preNoticeSize": 114370200.0,
                                "preSize": -1800.0,
                                "price": 64202.0,
                                "side": "Short",
                                "size": -1800.0,
                                "state": 1,
                                "ts": 1785864540000,
                                "type": "cross",
                                "unrealizedPnl": -372426.498063,
                                "updateTs": 1787032680000
                              },
                              {
                                "address": "0x92ea19eceb7a8de0f50978a1583a5d8b018050e9",
                                "baseCoin": "BTC",
                                "createdAt": 1779286740000,
                                "cumFunding": 1366315.701084,
                                "entryPx": 76117.3,
                                "firstGt1000": 1779286740000,
                                "follow": false,
                                "isAll": true,
                                "isShow": true,
                                "leverage": 5,
                                "liquidationPx": 19878.4591733737,
                                "marginUsed": 16285673.397774,
                                "maxPosition": 95685719.26254,
                                "positionValue": 81428366.98887,
                                "preChangeTime": 1779895350684,
                                "preNoticeSize": 95468833.99977,
                                "preSize": 1268.33487,
                                "price": 64211.7,
                                "side": "Long",
                                "size": 1268.33487,
                                "state": 1,
                                "ts": 1779286740000,
                                "type": "cross",
                                "unrealizedPnl": -15113927.44406,
                                "updateTs": 1787032680000
                              },
                              "...truncated 48 more"
                            ],
                            "pagination": {
                              "current": 1,
                              "pageSize": 50,
                              "total": 291
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "market_whale_positions"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "mvrv": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 323,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "date": 1282089600000,
                              "marketCap": 262209.5,
                              "mvrvRatio": 1.333140370569158,
                              "realizedCap": 196685.5897463032,
                              "zScore": null
                            },
                            {
                              "date": 1282176000000,
                              "marketCap": 255170.00000000003,
                              "mvrvRatio": 1.2937318479487294,
                              "realizedCap": 197235.61756988795,
                              "zScore": 11.638836474234612
                            },
                            "...truncated 5833 more"
                          ],
                          "meta": {
                            "count": 5835,
                            "dataFreshnessTs": 1787024400307,
                            "latest": {
                              "date": 1786406400000,
                              "marketCap": 1282608330751.338,
                              "mvrvRatio": 1.183387043351774,
                              "realizedCap": 1083845169639.9633,
                              "zScore": 0.32633974213865347
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "mvrv"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "options_report": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 34,
                        "isError": false,
                        "result": {
                          "...": "6 more field(s) omitted from this documentation example",
                          "atm_iv": 38.3,
                          "currency": "BTC",
                          "days_to_expiry": 128,
                          "exchange_id": "derive",
                          "exchange_name": "Derive",
                          "expiry_datetime_utc": "2026-12-25T00:00:00+00:00",
                          "fallback_notice": null,
                          "market": "BTC",
                          "requested_token": null,
                          "spot": 64136.0,
                          "status": "ok",
                          "top_expiry": "25DEC26"
                        },
                        "toolName": "options_report"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "performance_scanner": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 2844,
                        "isError": false,
                        "result": {
                          "benchmark": {
                            "address": "bitcoin",
                            "data": {
                              "drawdown": -0.5085744410332744,
                              "momentum_7d": 0.9534298300818124,
                              "price": 64166.0
                            },
                            "data_source_exchange_id": "hyperliquid_perp",
                            "exchange_id": "hyperliquid_perp",
                            "name": "BITCOIN",
                            "ticker": "BTCUSDT"
                          },
                          "leaderboard": [
                            {
                              "best_tradable_exchange_id": "hyperliquid_perp",
                              "data_source_exchange_id": "hyperliquid_perp",
                              "drawdown": -0.7220277366365877,
                              "exchange_id": "hyperliquid_perp",
                              "is_outlier": false,
                              "momentum_1d": -0.7220277366365877,
                              "momentum_7d": 8.292638149440064,
                              "name": "hyperliquid",
                              "price": 58.987,
                              "rank": 1,
                              "reason": "Strongly outperforming benchmark by 7.3%",
                              "rs_vs_benchmark": 7.339208319358252,
                              "signal": "BUY",
                              "ticker": "HYPEUSDT",
                              "token": "hyperliquid"
                            },
                            {
                              "best_tradable_exchange_id": "hyperliquid_perp",
                              "data_source_exchange_id": "hyperliquid_perp",
                              "drawdown": -1.2088868385459757,
                              "exchange_id": "hyperliquid_perp",
                              "is_outlier": false,
                              "momentum_1d": -1.2088868385459757,
                              "momentum_7d": 7.353309786943152,
                              "name": "chainlink",
                              "price": 9.4224,
                              "rank": 2,
                              "reason": "Strongly outperforming benchmark by 6.4%",
                              "rs_vs_benchmark": 6.39987995686134,
                              "signal": "BUY",
                              "ticker": "LINKUSDT",
                              "token": "chainlink"
                            },
                            "...truncated 27 more"
                          ],
                          "metadata": {
                            "calc_time": 0.0005826950073242188,
                            "effective_arguments": {
                              "benchmark": "bitcoin",
                              "lookback_days": 7,
                              "token_universe": "crypto_top_by_volume_and_market_cap",
                              "top_n": 29,
                              "universe_size": 30
                            },
                            "execution_time_sec": 0.5156822204589844,
                            "fetch_time": 0.27145862579345703,
                            "lookback_days": 7,
                            "pairs_load_time": 0.018056154251098633,
                            "request_fingerprint": "2959d3dd2ad65e9db62bdf22452558dc35d66190270770811f1d113933126ebb",
                            "scan_time": 0.5156822204589844,
                            "tokens_returned": 29,
                            "tokens_scanned": 29,
                            "total_tokens": 29
                          },
                          "signal_counts": {
                            "BUY": 2,
                            "HOLD": 9,
                            "STRONG_BUY": 0,
                            "UNDERPERFORMING": 11,
                            "WEAK": 7
                          },
                          "signals": {
                            "buy": [
                              "hyperliquid",
                              "chainlink"
                            ],
                            "hold": [
                              "polygon-ecosystem-token",
                              "zcash",
                              "...truncated 7 more"
                            ],
                            "strong_buy": [],
                            "underperforming": [
                              "stellar",
                              "bittensor",
                              "...truncated 9 more"
                            ],
                            "weak": [
                              "solana",
                              "tron",
                              "...truncated 5 more"
                            ]
                          },
                          "summary": "Weak market with 18 tokens underperforming. Leading performers: hyperliquid (+8.3%), chainlink (+7.4%). vs BITCOIN benchmark.",
                          "tool_name": "performance_scanner"
                        },
                        "toolName": "performance_scanner"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "polymarket_insight": {
                    "summary": "Captured 2026-08-19 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 80,
                        "isError": false,
                        "result": {
                          "markets": {
                            "events": [
                              {
                                "...": "22 more field(s) omitted from this documentation example",
                                "active": true,
                                "archived": false,
                                "closed": true,
                                "createdAt": "2026-02-16T17:00:09.666647Z",
                                "creationDate": "2026-02-16T17:05:32.538689Z",
                                "description": "This market will resolve to \"Yes\" if the Binance 1 minute ca...truncated 613 chars",
                                "endDate": "2026-02-23T17:00:00Z",
                                "featured": false,
                                "icon": "https://the prediction-market venue-upload.s3.us-east-2.amazonaws.com/BTC+ful...truncated 9 chars",
                                "id": "211888",
                                "image": "https://the prediction-market venue-upload.s3.us-east-2.amazonaws.com/BTC+ful...truncated 9 chars",
                                "new": false,
                                "openInterest": 0,
                                "restricted": true,
                                "slug": "bitcoin-above-on-february-23",
                                "startDate": "2026-02-16T17:05:32.538703Z",
                                "ticker": "bitcoin-above-on-february-23",
                                "title": "Bitcoin above ___ on February 23?",
                                "updatedAt": "2026-02-25T00:29:11.306307Z",
                                "volume": 5476990.364345
                              },
                              "...truncated 9 more"
                            ],
                            "pagination": {
                              "hasMore": true,
                              "totalResults": 117742
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "polymarket_insight"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "resolve_asset": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 51,
                        "isError": false,
                        "result": {
                          "asset_class": "crypto",
                          "best_exchange": "hyperliquid_perp",
                          "confidence": "high",
                          "display_name": "Bitcoin",
                          "display_symbol": "BTC",
                          "exchange_pairs": [
                            {
                              "display_pair_id": "BTC-USDC",
                              "exchange_id": "hyperliquid_perp",
                              "exchange_pair_id": "BTC"
                            },
                            {
                              "display_pair_id": "BTC-USDT",
                              "exchange_id": "binance_futures",
                              "exchange_pair_id": "BTCUSDT"
                            },
                            "...truncated 8 more"
                          ],
                          "matched_via": "crypto_alias",
                          "query": "BTC",
                          "status": "resolved",
                          "token_address": "bitcoin",
                          "tool": "resolve_asset"
                        },
                        "toolName": "resolve_asset"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "technical_analysis": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 313,
                        "isError": false,
                        "result": {
                          "agent": "technical_analysis",
                          "chart_patterns": [],
                          "exchange_id": "binance_futures",
                          "market_structure": {
                            "asOf": "2026-08-18T06:00:00Z",
                            "candidateMetrics": {
                              "...": "22 more field(s) omitted from this documentation example"
                            },
                            "candidates": [
                              "...truncated (depth limit, 22 items)"
                            ],
                            "error": null,
                            "exchangeId": "binance_futures",
                            "referencePrice": 64157.8,
                            "status": "success",
                            "timeframe": "1h",
                            "tokenAddress": "bitcoin"
                          },
                          "requested_exchange_id": null,
                          "status": "success",
                          "support_resistance": {
                            "pivot": null,
                            "recent_high_low": {
                              "...": "1 more field(s) omitted from this documentation example"
                            },
                            "support and resistance channel": {
                              "...": "2 more field(s) omitted from this documentation example"
                            },
                            "vwap": {
                              "...": "5 more field(s) omitted from this documentation example"
                            }
                          },
                          "technical_indicators": {
                            "...": "1 more field(s) omitted from this documentation example",
                            "adx14": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "atr14": {
                              "...": "4 more field(s) omitted from this documentation example"
                            },
                            "boll_20_2": {
                              "...": "7 more field(s) omitted from this documentation example"
                            },
                            "cci20": {
                              "...": "2 more field(s) omitted from this documentation example"
                            },
                            "kdj_14_3_3": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "macd_12_26_9": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "rsi14": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma10": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma20": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma50": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "stoch_k_14_3_3": {
                              "...": "4 more field(s) omitted from this documentation example"
                            },
                            "volume": {
                              "...": "5 more field(s) omitted from this documentation example"
                            }
                          },
                          "title": "the data provider Bitcoin Price Chart",
                          "token_metadata": {
                            "data": {
                              "...": "9 more field(s) omitted from this documentation example"
                            },
                            "elapsed_time": "0.294s",
                            "token_info": {
                              "...": "2 more field(s) omitted from this documentation example"
                            }
                          },
                          "url": "https://www.the data provider.com/en/coins/bitco...truncated 2 chars"
                        },
                        "toolName": "technical_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "trending_discovery": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 91,
                        "isError": false,
                        "result": {
                          "status": "success",
                          "trending": {
                            "coins": [
                              {
                                "item": {
                                  "coin_id": 52622,
                                  "data": {
                                    "content": {
                                      "...": "2 more field(s) omitted from this documentation example"
                                    },
                                    "market_cap": "$373,751,017",
                                    "market_cap_btc": "5820.279079781759",
                                    "price": 0.005945780357251436,
                                    "price_btc": "0.00000009259170959628049",
                                    "price_change_percentage_24h": {
                                      "...": "63 more field(s) omitted from this documentation example"
                                    },
                                    "sparkline": "https://data.the data provider.com/coins/52622/sparkline.svg",
                                    "total_volume": "$32,480,629",
                                    "total_volume_btc": "505.809905880079"
                                  },
                                  "id": "pudgy-penguins",
                                  "large": "https://coin-images.the data provider.com/coins/images/52622/large/PUDGY_PENGUINS_PENGU_PFP.png?1733809110",
                                  "market_cap_rank": 112,
                                  "name": "Pudgy Penguins",
                                  "price_btc": 9.259170959628049e-08,
                                  "score": 0,
                                  "slug": "pudgy-penguins",
                                  "small": "https://coin-images.the data provider.com/coins/images/52622/small/PUDGY_PENGUINS_PENGU_PFP.png?1733809110",
                                  "symbol": "PENGU",
                                  "thumb": "https://coin-images.the data provider.com/coins/images/52622/standard/PUDGY_PENGUINS_PENGU_PFP.png?173380911...truncated 1 chars"
                                }
                              },
                              "...truncated 9 more"
                            ]
                          }
                        },
                        "toolName": "trending_discovery"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  },
                  "venue_costs": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 0,
                        "isError": false,
                        "result": {
                          "data": {
                            "asset_class": "crypto",
                            "funding_interval_hours": 0,
                            "instrument": "BTC",
                            "instrument_type": "spot",
                            "maker_bps": "10.0",
                            "min_notional_usd": "5",
                            "slippage_bps_base": "1.5",
                            "slippage_size_curve": {
                              "1000": "0.5",
                              "10000": "1.5",
                              "100000": "5.0"
                            },
                            "taker_bps": "10.0",
                            "tick_size": null,
                            "venue": "binance"
                          },
                          "meta": {
                            "as_of": "2026-08-18T06:04:51.137447Z",
                            "schema_version": 1,
                            "source": "default"
                          },
                          "status": "success"
                        },
                        "toolName": "venue_costs"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "items": {
                                  "items": {
                                    "properties": {
                                      "btcPrice": {
                                        "type": "number"
                                      },
                                      "date": {
                                        "type": "integer"
                                      },
                                      "value": {
                                        "type": "integer"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "meta": {
                                  "properties": {
                                    "count": {
                                      "type": "integer"
                                    },
                                    "dataFreshnessTs": {
                                      "type": "integer"
                                    },
                                    "latest": {
                                      "properties": {
                                        "btcPrice": {
                                          "type": "number"
                                        },
                                        "date": {
                                          "type": "integer"
                                        },
                                        "value": {
                                          "type": "integer"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Call any tool by name",
        "tags": [
          "Utility"
        ]
      }
    },
    "/api/agent-tools/call#coinbase_premium": {
      "post": {
        "description": "Tracks the price gap between Coinbase and Binance BTC \u2014 a classic read on US institutional buying pressure. The same series behind the dashboard's Coinbase Premium widget.\n\n**What you get** \u2014 the BTC price spread between two major venues, bucket by bucket, plus a live headline value:\n\n- `items[]` \u2014 per interval bucket: `openTime`/`closeTime` (unix ms), `coinbasePrice` (BTC-USD close), `binancePrice` (BTCUSDT close), `premiumGap` (`coinbasePrice - binancePrice`, USD) and `premiumIndex` (`premiumGap / binancePrice x 100`, percent).\n- `meta.interval`, `meta.count`, `meta.dataFreshnessTs` (newest bucket close, epoch ms).\n- `meta.latest` \u2014 the freshest 1-minute close, so the headline stays live even on a coarse interval. In the example below it reads 64142.6 versus 64201.03: `premiumGap` -58.43, `premiumIndex` -0.0910%.\n- `meta.unmatchedCoinbaseBuckets` / `unmatchedBinanceBuckets` \u2014 buckets dropped because the other venue had no twin (0 and 0 here).\n\n**When to use it** \u2014 gauge US spot demand against offshore during a move, or wait for the premium to flip positive before adding.\n\n**Good to know** \u2014 `interval` must be `1m`, `5m`, `15m`, `1h` or `1d` (no 4h \u2014 not served by both legs); `limit` defaults to 500 and caps at 1000 *per leg*, and the joined series can be shorter, which the unmatched counters quantify. No stablecoin-to-USD adjustment is applied, matching the convention traders quote. Cached 30s. An absolute `premiumIndex` above 0.5% is nearly always a stale or misaligned leg, not a signal.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "coinbase_premium",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "coinbase_premium"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiCoinbasePremiumInput"
                  },
                  "toolName": {
                    "const": "coinbase_premium",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 233,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "binancePrice": 63450.0,
                              "closeTime": 1785239999999,
                              "coinbasePrice": 63393.51,
                              "openTime": 1785236400000,
                              "premiumGap": -56.48999999999796,
                              "premiumIndex": -0.08903073286051688
                            },
                            {
                              "binancePrice": 63546.65,
                              "closeTime": 1785243599999,
                              "coinbasePrice": 63470.34,
                              "openTime": 1785240000000,
                              "premiumGap": -76.31000000000495,
                              "premiumIndex": -0.12008500841508551
                            },
                            "...truncated 498 more"
                          ],
                          "meta": {
                            "count": 500,
                            "dataFreshnessTs": 1787036399999,
                            "interval": "1h",
                            "latest": {
                              "binancePrice": 64204.18,
                              "closeTime": 1787032979999,
                              "coinbasePrice": 64141.5,
                              "openTime": 1787032920000,
                              "premiumGap": -62.68000000000029,
                              "premiumIndex": -0.0976260424165534
                            },
                            "unmatchedBinanceBuckets": 0,
                            "unmatchedCoinbaseBuckets": 0
                          },
                          "status": "success"
                        },
                        "toolName": "coinbase_premium"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "items": {
                                  "items": {
                                    "properties": {
                                      "binancePrice": {
                                        "type": "number"
                                      },
                                      "closeTime": {
                                        "type": "integer"
                                      },
                                      "coinbasePrice": {
                                        "type": "number"
                                      },
                                      "openTime": {
                                        "type": "integer"
                                      },
                                      "premiumGap": {
                                        "type": "number"
                                      },
                                      "premiumIndex": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "meta": {
                                  "properties": {
                                    "count": {
                                      "type": "integer"
                                    },
                                    "dataFreshnessTs": {
                                      "type": "integer"
                                    },
                                    "interval": {
                                      "type": "string"
                                    },
                                    "latest": {
                                      "properties": {
                                        "binancePrice": {
                                          "type": "number"
                                        },
                                        "closeTime": {
                                          "type": "integer"
                                        },
                                        "coinbasePrice": {
                                          "type": "number"
                                        },
                                        "openTime": {
                                          "type": "integer"
                                        },
                                        "premiumGap": {
                                          "type": "number"
                                        },
                                        "premiumIndex": {
                                          "type": "number"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "unmatchedBinanceBuckets": {
                                      "type": "integer"
                                    },
                                    "unmatchedCoinbaseBuckets": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Coinbase premium",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/agent-tools/call#derivatives_analysis": {
      "post": {
        "description": "Pulls funding rate, open interest, and liquidation evidence for a token's derivatives market.\n\n**What you get** \u2014 one venue's live perp funding and aggregate open interest, normalized so every number can be quoted without unit math:\n\n- `snapshot.funding.current` / `.estimated_24h` / `.annualized` \u2014 each a `{value, unit:\"percent\", display, source_field}` block already in percentage points. In the example below BTC prints `+0.004627%` per settlement, `+0.0139%` over 24h, `+5.07% APR`.\n- `snapshot.funding.period_hours` + `settlement_source` \u2014 the serving venue's real settlement cadence (`8.0` hours, `\"venue_table\"` = verified; `\"unverified\"` = do not assume one).\n- `snapshot.funding.payment_direction` \u2014 `payer` / `receiver` plus a copyable `display` (\"Longs pay shorts\"), and `percentile_7d` (31.0).\n- `snapshot.open_interest.current_usd` \u2014 aggregate OI in USD ($6.84B here) with its own `percentile_7d` (3.4, near the 7-day floor).\n- `derivative_data` \u2014 raw evidence: `rolling_changes` (1h/4h/1d OI deltas in USD), `oi_mcap_ratio_analysis`, `funding_changes_in_percentage`.\n\n**When to use it** \u2014 price a funding-carry leg before putting it on, or pair a funding percentile near its high with OI near its low to read a crowded-then-flushed book.\n\n**Good to know** \u2014 default `sections` are funding + open_interest; liquidations only on request, and orderflow needs a pinned `exchange_id`. Cite `effective_exchange_id`, not `requested_exchange_id`. The raw heading \"1h Aggregated OI weighted funding rate\" is a static template \u2014 use `snapshot.funding.source_label`. Per-section failures land in `section_errors`, not an error.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "derivatives_analysis",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "derivatives_analysis"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiDerivativesAnalysisInput"
                  },
                  "toolName": {
                    "const": "derivatives_analysis",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 246,
                        "isError": false,
                        "result": {
                          "derivative_data": {
                            "BTC": {
                              "1h Aggregated OI weighted funding rate": {
                                "24h_funding_cost_est_in_percentage": 0.0092,
                                "annualized_funding_cost_est_in_percentage": 3.36,
                                "current_funding_percentile_7d": 19.6,
                                "current_funding_rate_in_percentage": 0.003083,
                                "flip_4h": false,
                                "funding_changes_in_percentage": {
                                  "funding_change_1d_abs": -0.005376,
                                  "funding_change_1h_abs": -0.000159,
                                  "funding_change_4h_abs": -0.001334
                                }
                              },
                              "Aggregated open interest": {
                                "current_open_interest": 6789942821.979,
                                "oi_mcap_ratio_analysis": {
                                  "oi_mcap_change_1d_abs": -0.022,
                                  "oi_mcap_change_1h_abs": -0.001,
                                  "oi_mcap_change_4h_abs": -0.004,
                                  "oi_mcap_ratio_pct": 0.527
                                },
                                "percentile_analysis": {
                                  "current_oi_percentile_7d": 0.4
                                },
                                "rolling_changes": {
                                  "oi_change_1d_abs": -276953904.0,
                                  "oi_change_1h_abs": -11521243.0,
                                  "oi_change_4h_abs": -53035965.0
                                }
                              }
                            },
                            "_metadata": {
                              "data_fetch_ms": 223.13,
                              "exchange_id": "binance_futures",
                              "market_pair": "BTCUSDT",
                              "request_time_ms": 235.11,
                              "requested_exchange_id": "binance_futures",
                              "symbol": "BTC",
                              "symbol_resolve_ms": 11.97,
                              "token_address": "bitcoin"
                            },
                            "title": "Coinglass BTC Derivatives",
                            "url": "https://www.coinglass.com/tv/Binance_BTCUSDT"
                          },
                          "effective_exchange_id": "binance_futures",
                          "included_sections": [
                            "funding",
                            "open_interest"
                          ],
                          "requested_exchange_id": null,
                          "requested_sections": null,
                          "snapshot": {
                            "funding": {
                              "annualized": {
                                "display": "+3.36% APR",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.annualized_funding_cost_est_in_percentage",
                                "unit": "percent",
                                "value": 3.36
                              },
                              "current": {
                                "display": "+0.003083%",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.current_funding_rate_in_percentage",
                                "unit": "percent",
                                "value": 0.003083
                              },
                              "estimated_24h": {
                                "display": "+0.0092%",
                                "source_field": "derivative_data.BTC.1h Aggregated OI weighted funding rate.24h_funding_cost_est_in_percentage",
                                "unit": "percent",
                                "value": 0.0092
                              },
                              "payment_direction": {
                                "display": "Longs pay shorts",
                                "payer": "longs",
                                "receiver": "shorts"
                              },
                              "percentile_7d": 19.6,
                              "period_hours": 8.0,
                              "settlement_source": "venue_table",
                              "source_label": "Funding Rate (binance_futures, 8h settlement)",
                              "source_venue": "binance_futures"
                            },
                            "open_interest": {
                              "current_usd": 6789942821.979,
                              "is_snapshot_only": false,
                              "percentile_7d": 0.4,
                              "snapshot_at": null,
                              "source_field": "derivative_data.BTC.Aggregated open interest.current_open_interest"
                            },
                            "symbol": "BTC"
                          },
                          "status": "success"
                        },
                        "toolName": "derivatives_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "derivative_data": {
                                  "properties": {
                                    "BTC": {
                                      "properties": {
                                        "1h Aggregated OI weighted funding rate": {
                                          "properties": {
                                            "24h_funding_cost_est_in_percentage": {
                                              "type": "number"
                                            },
                                            "annualized_funding_cost_est_in_percentage": {
                                              "type": "number"
                                            },
                                            "current_funding_percentile_7d": {
                                              "type": "number"
                                            },
                                            "current_funding_rate_in_percentage": {
                                              "type": "number"
                                            },
                                            "flip_4h": {
                                              "type": "boolean"
                                            },
                                            "funding_changes_in_percentage": {
                                              "properties": {
                                                "funding_change_1d_abs": {
                                                  "type": "number"
                                                },
                                                "funding_change_1h_abs": {
                                                  "type": "number"
                                                },
                                                "funding_change_4h_abs": {
                                                  "type": "number"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "Aggregated open interest": {
                                          "properties": {
                                            "current_open_interest": {
                                              "type": "number"
                                            },
                                            "oi_mcap_ratio_analysis": {
                                              "properties": {
                                                "oi_mcap_change_1d_abs": {
                                                  "type": "number"
                                                },
                                                "oi_mcap_change_1h_abs": {
                                                  "type": "number"
                                                },
                                                "oi_mcap_change_4h_abs": {
                                                  "type": "number"
                                                },
                                                "oi_mcap_ratio_pct": {
                                                  "type": "number"
                                                }
                                              },
                                              "type": "object"
                                            },
                                            "percentile_analysis": {
                                              "properties": {
                                                "current_oi_percentile_7d": {
                                                  "type": "number"
                                                }
                                              },
                                              "type": "object"
                                            },
                                            "rolling_changes": {
                                              "properties": {
                                                "oi_change_1d_abs": {
                                                  "type": "number"
                                                },
                                                "oi_change_1h_abs": {
                                                  "type": "number"
                                                },
                                                "oi_change_4h_abs": {
                                                  "type": "number"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "_metadata": {
                                      "properties": {
                                        "data_fetch_ms": {
                                          "type": "number"
                                        },
                                        "exchange_id": {
                                          "type": "string"
                                        },
                                        "market_pair": {
                                          "type": "string"
                                        },
                                        "request_time_ms": {
                                          "type": "number"
                                        },
                                        "requested_exchange_id": {
                                          "type": "string"
                                        },
                                        "symbol": {
                                          "type": "string"
                                        },
                                        "symbol_resolve_ms": {
                                          "type": "number"
                                        },
                                        "token_address": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "title": {
                                      "type": "string"
                                    },
                                    "url": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "effective_exchange_id": {
                                  "type": "string"
                                },
                                "included_sections": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "requested_exchange_id": {
                                  "type": "null"
                                },
                                "requested_sections": {
                                  "type": "null"
                                },
                                "snapshot": {
                                  "properties": {
                                    "funding": {
                                      "properties": {
                                        "annualized": {
                                          "properties": {
                                            "display": {
                                              "type": "string"
                                            },
                                            "source_field": {
                                              "type": "string"
                                            },
                                            "unit": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "current": {
                                          "properties": {
                                            "display": {
                                              "type": "string"
                                            },
                                            "source_field": {
                                              "type": "string"
                                            },
                                            "unit": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "estimated_24h": {
                                          "properties": {
                                            "display": {
                                              "type": "string"
                                            },
                                            "source_field": {
                                              "type": "string"
                                            },
                                            "unit": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "payment_direction": {
                                          "properties": {
                                            "display": {
                                              "type": "string"
                                            },
                                            "payer": {
                                              "type": "string"
                                            },
                                            "receiver": {
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "percentile_7d": {
                                          "type": "number"
                                        },
                                        "period_hours": {
                                          "type": "number"
                                        },
                                        "settlement_source": {
                                          "type": "string"
                                        },
                                        "source_label": {
                                          "type": "string"
                                        },
                                        "source_venue": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "open_interest": {
                                      "properties": {
                                        "current_usd": {
                                          "type": "number"
                                        },
                                        "is_snapshot_only": {
                                          "type": "boolean"
                                        },
                                        "percentile_7d": {
                                          "type": "number"
                                        },
                                        "snapshot_at": {
                                          "type": "null"
                                        },
                                        "source_field": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "symbol": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Derivatives analysis",
        "tags": [
          "Derivatives & positioning"
        ]
      }
    },
    "/api/agent-tools/call#etf_flow": {
      "post": {
        "description": "Reports daily net flows into and out of the US spot BTC/ETH ETFs. The same series behind the dashboard's ETF Flow widget.\n\n**What you get** \u2014 daily US spot-ETF net flows for one coin, with each day's per-fund breakdown:\n\n- `items[]` \u2014 per trading day: `date` (unix ms at UTC midnight), `netFlowUsd` (signed, positive is an inflow) and `netFlowCoin` (same flow in coin units, may be `null`).\n- `flows[]` \u2014 that day's split by fund: `ticker`, `flowUsd`, `flowCoin`.\n- `meta.asset`, `meta.count`, `meta.latest` \u2014 coin, series length, headline day. In the example the latest day shows `netFlowUsd` 126,081,851.05 across 2005.24 BTC, with `GBTC` and `IBIT` both flat at 0.0 \u2014 the inflow came entirely from other funds in `flows`.\n- `meta.dataFreshnessTs` and `meta.refreshedAtTs` \u2014 epoch ms for the newest trading day and for the series' last write.\n\n**When to use it** \u2014 confirm a spot-led rally is backed by real creations, or track one issuer's share of the flow day by day.\n\n**Good to know** \u2014 `asset` accepts only `btc` or `eth`; `limit` defaults to 365 and caps at 1000 (newest N, ascending). Trading days only \u2014 weekend and holiday gaps are expected and never filled. `flows` is `null` when a day could not be attributed per fund. An empty series is served rather than raised. Cached in-process for 300s over an hourly-refreshed source.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "etf_flow",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "etf_flow"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiEtfFlowInput"
                  },
                  "toolName": {
                    "const": "etf_flow",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 94,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "date": 1742774400000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 209.97,
                                  "flowUsd": 18067347.72,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 978.24,
                              "netFlowUsd": 84173567.21
                            },
                            {
                              "date": 1742860800000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 480.57,
                                  "flowUsd": 42032708.76,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 306.81,
                              "netFlowUsd": 26834350.91
                            },
                            "...truncated 363 more"
                          ],
                          "meta": {
                            "asset": "btc",
                            "count": 365,
                            "dataFreshnessTs": 1786924800000,
                            "latest": {
                              "date": 1786924800000,
                              "flows": [
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "GBTC"
                                },
                                {
                                  "flowCoin": 0.0,
                                  "flowUsd": 0.0,
                                  "ticker": "IBIT"
                                },
                                "...truncated 9 more"
                              ],
                              "netFlowCoin": 2005.24,
                              "netFlowUsd": 126081851.05
                            },
                            "refreshedAtTs": 1787030400408
                          },
                          "status": "success"
                        },
                        "toolName": "etf_flow"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "items": {
                                  "items": {
                                    "properties": {
                                      "date": {
                                        "type": "integer"
                                      },
                                      "flows": {
                                        "items": {
                                          "properties": {
                                            "flowCoin": {
                                              "type": "number"
                                            },
                                            "flowUsd": {
                                              "type": "number"
                                            },
                                            "ticker": {
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "type": "array"
                                      },
                                      "netFlowCoin": {
                                        "type": "number"
                                      },
                                      "netFlowUsd": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "meta": {
                                  "properties": {
                                    "asset": {
                                      "type": "string"
                                    },
                                    "count": {
                                      "type": "integer"
                                    },
                                    "dataFreshnessTs": {
                                      "type": "integer"
                                    },
                                    "latest": {
                                      "properties": {
                                        "date": {
                                          "type": "integer"
                                        },
                                        "flows": {
                                          "items": {
                                            "properties": {
                                              "flowCoin": {
                                                "type": "number"
                                              },
                                              "flowUsd": {
                                                "type": "number"
                                              },
                                              "ticker": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "type": "array"
                                        },
                                        "netFlowCoin": {
                                          "type": "number"
                                        },
                                        "netFlowUsd": {
                                          "type": "number"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "refreshedAtTs": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "US spot ETF flows",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/agent-tools/call#event_v2": {
      "post": {
        "description": "Searches TrueNorth's own curated market story index for news and catalysts.\n\n**What you get** \u2014 deduped, rank-scored market stories from a curated news index, selected by asset, topic, or both:\n\n- `results[]` \u2014 per story: `title`, `preview` (the summary truncated to 200 characters with a trailing ellipsis), `source`, `publisher`, `source_url`, and `published_at` in epoch milliseconds.\n- `final_rank_score` \u2014 a 0\u2013100 catalyst rank; `event_count` is how many raw articles collapsed into the story, with `first_event_at` / `last_event_at` bounding the cluster.\n- `event_type` \u2014 the classified kind (`sec_filing`, `other`, \u2026), plus `story_id` and `lead_event_uuid` for stable identity across calls.\n- `token_addresses[]` \u2014 every canonical asset the story resolved to (`[\"bitcoin\", \"stock_ibit\", \u2026]`), making spillover visible.\n- `total_results` and the echoed `query`. In the example below an asset-only BTC call returns 6 stories in the default 24h window, topping out at rank 45.\n\n**When to use it** \u2014 assemble the catalyst list behind an unexplained move, or run `sort_by=\"time\"` as a newest-first feed ahead of the open.\n\n**Good to know** \u2014 at least one of `token_address` (exact canonical id, not a symbol) or `query` is required, and never restate the asset inside `query`: as text it demands the article literally spell that word. `time_window` takes any positive `Nh` / `Nd` or `\"all\"` (default `24h`); `limit` is 1\u2013100 (default 20). Results cache in-process for 60 seconds. Upstream failures fail open \u2014 `status:\"success\"`, `total_results: 0`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "event_v2",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "token_address": "bitcoin"
                },
                "toolName": "event_v2"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiEventV2Input"
                  },
                  "toolName": {
                    "const": "event_v2",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 82,
                        "isError": false,
                        "result": {
                          "query": "",
                          "results": [
                            {
                              "event_count": 1,
                              "event_type": "sec_filing",
                              "final_rank_score": 45,
                              "first_event_at": 1786959202929,
                              "last_event_at": 1786959202929,
                              "lead_event_uuid": "evt_c315935c79c91efdf490fdcbaa896ca3",
                              "lead_published_at": 1786959202929,
                              "preview": "Harvard University's 13F filing shows it held its Bitcoin ETF position steady in Q2, with 3.04 million shares of IBIT worth $101.35 million, while not adding any Ethereum ETF stake after liquidating i...",
                              "published_at": 1786959202929,
                              "publisher": "benzinga",
                              "source": "benzinga",
                              "source_url": "https://www.benzinga.com/crypto/cryptocurrency/26/08/61239930/harvard-university-did-not-sell-its-bitcoin-etf-holdings-in-q2-discloses-no-new-ethereum-etf-stake",
                              "story_id": "story_01a00f11-b57d-7a80-b17d-df8968149e55",
                              "title": "Harvard Did Not Sell Its Bitcoin ETF Holdings in Q2, Discloses No New Ethereum ETF Stake",
                              "token_addresses": [
                                "bitcoin",
                                "stock_ibit",
                                "...truncated 6 more"
                              ]
                            },
                            {
                              "event_count": 1,
                              "event_type": "crypto_etf_flow",
                              "final_rank_score": 55,
                              "first_event_at": 1786968672976,
                              "last_event_at": 1786968672976,
                              "lead_event_uuid": "evt_732cc1bdfa6e77754eb44e1295fbb51a",
                              "lead_published_at": 1786968672976,
                              "preview": "U.S. spot Bitcoin ETFs saw their largest weekly outflow since June, with $389.7 million drained in the week of Aug. 10, reversing the prior week's $853.5 million inflow. Goldman Sachs economists see a...",
                              "published_at": 1786968672976,
                              "publisher": "benzinga",
                              "source": "benzinga",
                              "source_url": "https://www.benzinga.com/crypto/cryptocurrency/26/08/61243545/bitcoin-etfs-see-largest-outflow-in-six-weeks-whats-going-on",
                              "story_id": "story_01a00fa2-314f-7733-ab20-3ca68a2951e3",
                              "title": "Bitcoin ETFs See Largest Outflow in Six Weeks: What&#39;s Going On?",
                              "token_addresses": [
                                "bitcoin",
                                "stock_gs"
                              ]
                            },
                            "...truncated 3 more"
                          ],
                          "status": "success",
                          "total_results": 5
                        },
                        "toolName": "event_v2"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "query": {
                                  "type": "string"
                                },
                                "results": {
                                  "items": {
                                    "properties": {
                                      "event_count": {
                                        "type": "integer"
                                      },
                                      "event_type": {
                                        "type": "string"
                                      },
                                      "final_rank_score": {
                                        "type": "integer"
                                      },
                                      "first_event_at": {
                                        "type": "integer"
                                      },
                                      "last_event_at": {
                                        "type": "integer"
                                      },
                                      "lead_event_uuid": {
                                        "type": "string"
                                      },
                                      "lead_published_at": {
                                        "type": "integer"
                                      },
                                      "preview": {
                                        "type": "string"
                                      },
                                      "published_at": {
                                        "type": "integer"
                                      },
                                      "publisher": {
                                        "type": "string"
                                      },
                                      "source": {
                                        "type": "string"
                                      },
                                      "source_url": {
                                        "type": "string"
                                      },
                                      "story_id": {
                                        "type": "string"
                                      },
                                      "title": {
                                        "type": "string"
                                      },
                                      "token_addresses": {
                                        "items": {
                                          "type": "string"
                                        },
                                        "type": "array"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "total_results": {
                                  "type": "integer"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "News & events",
        "tags": [
          "News & events"
        ]
      }
    },
    "/api/agent-tools/call#fear_greed": {
      "post": {
        "description": "Returns the daily crypto Fear & Greed index, 0-100, with BTC price context alongside each reading. The same series behind the dashboard's Fear & Greed widget.\n\n**What you get** \u2014 the daily crypto fear & greed index as a gap-free series, newest last:\n\n- `items[]` \u2014 one point per UTC day: `date` (unix ms at UTC midnight), `value` (integer, clamped to 0\u2013100) and `btcPrice` (BTC price for that day, may be `null`).\n- `meta.count` \u2014 points returned; the default request yields 365.\n- `meta.latest` \u2014 the headline point. In the example below it is `value` 30 at `btcPrice` 62740.3, against 61 at the start of the same 365-day window.\n- `meta.dataFreshnessTs` \u2014 epoch ms, equal to the newest point's `date`.\n\n**When to use it** \u2014 overlay sentiment on a mean-reversion screen, or compare today against 7 and 30 days ago using plain array offsets, which the gap-free spacing makes valid.\n\n**Good to know** \u2014 `limit` defaults to 365 and caps at 3000 (newest N, ascending). The series is carry-forward gap-filled: a missing day repeats the previous day's `value` and `btcPrice`, so runs of identical values may be synthetic. Cached in-process for 300s over an hourly upstream cache \u2014 about 1h20m worst-case staleness, immaterial for a once-a-day index. An empty series is treated as a broken data path and surfaces as an error, never as `items: []`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "fear_greed",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "fear_greed"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFearGreedInput"
                  },
                  "toolName": {
                    "const": "fear_greed",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 192,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "btcPrice": 117364.0,
                              "date": 1755475200000,
                              "value": 61
                            },
                            {
                              "btcPrice": 116252.6,
                              "date": 1755561600000,
                              "value": 57
                            },
                            "...truncated 363 more"
                          ],
                          "meta": {
                            "count": 365,
                            "dataFreshnessTs": 1786924800000,
                            "latest": {
                              "btcPrice": 62740.3,
                              "date": 1786924800000,
                              "value": 30
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "fear_greed"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "items": {
                                  "items": {
                                    "properties": {
                                      "btcPrice": {
                                        "type": "number"
                                      },
                                      "date": {
                                        "type": "integer"
                                      },
                                      "value": {
                                        "type": "integer"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "meta": {
                                  "properties": {
                                    "count": {
                                      "type": "integer"
                                    },
                                    "dataFreshnessTs": {
                                      "type": "integer"
                                    },
                                    "latest": {
                                      "properties": {
                                        "btcPrice": {
                                          "type": "number"
                                        },
                                        "date": {
                                          "type": "integer"
                                        },
                                        "value": {
                                          "type": "integer"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Fear & Greed index",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/agent-tools/call#financial_analyst_estimates": {
      "post": {
        "description": "Returns Wall Street's EPS/revenue consensus, price targets, and buy/hold/sell ratings for a stock.\n\n**What you get** \u2014 forward consensus for one US-listed company: what the sell side models, where price targets sit, and how ratings split.\n\n- `analyst_estimates[]` \u2014 one row per forecast period keyed by `report_period` (fiscal period end) and `period`, carrying `revenue_avg` / `revenue_low` / `revenue_high`, `eps_avg` / `eps_low` / `eps_high`, `ebitda_avg` and `net_income_avg` in reporting-currency units.\n- `num_analysts_eps` / `num_analysts_revenue` \u2014 contributors behind each average, so thin coverage is visible (AAPL's FY2030 row rests on 9 EPS contributors).\n- `price_targets` \u2014 `target_low`, `target_mean`, `target_median`, `target_high`. In the example below AAPL's `target_mean` is 337.43 in a 245-400 range.\n- `recommendation_distribution` \u2014 rating counts (`strong_buy`, `buy`, `hold`, `sell`, `strong_sell`) plus the rolled-up `consensus_label`; AAPL reads \"Buy\" on 69 buy versus 9 sell.\n\n**When to use it** \u2014 anchor a target-price sanity check on forward revenue/EPS, or test whether a rally has overshot the mean target before adding risk.\n\n**Good to know** \u2014 `period` accepts only `annual` or `quarter`; `limit` is 1-40 (default 30). Rows extend into future fiscal years. US-listed coverage only: a ticker whose canonical identity is a builder-dex perp with no US listing fails closed with `code: \"HIP3_ASSET_NO_US_LISTING\"` rather than returning a different entity's numbers. No coverage returns `status: \"not_found\"`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_analyst_estimates",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_analyst_estimates"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialAnalystEstimatesInput"
                  },
                  "toolName": {
                    "const": "financial_analyst_estimates",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 67,
                        "isError": false,
                        "result": {
                          "analyst_estimates": [
                            {
                              "ebitda_avg": 239767887874.0,
                              "eps_avg": 12.85,
                              "eps_high": 14.15557,
                              "eps_low": 12.10216,
                              "net_income_avg": 192810356462.0,
                              "num_analysts_eps": 9,
                              "num_analysts_revenue": 11,
                              "period": "annual",
                              "report_period": "2030-09-27",
                              "revenue_avg": 664296666667.0,
                              "revenue_high": 716214517708.0,
                              "revenue_low": 634557856538.0
                            },
                            {
                              "ebitda_avg": 174364789560.0,
                              "eps_avg": 11.69995,
                              "eps_high": 12.88868,
                              "eps_low": 11.01904,
                              "net_income_avg": 175554204676.0,
                              "num_analysts_eps": 9,
                              "num_analysts_revenue": 18,
                              "period": "annual",
                              "report_period": "2029-09-27",
                              "revenue_avg": 483092000000.0,
                              "revenue_high": 520847869860.0,
                              "revenue_low": 461465244992.0
                            },
                            "...truncated 2 more"
                          ],
                          "period": "annual",
                          "price_targets": {
                            "target_high": 400.0,
                            "target_low": 245.0,
                            "target_mean": 337.43,
                            "target_median": 355.0
                          },
                          "recommendation_distribution": {
                            "buy": 69,
                            "consensus_label": "Buy",
                            "hold": 32,
                            "sell": 9,
                            "strong_buy": 1,
                            "strong_sell": 0
                          },
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_analyst_estimates"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "analyst_estimates": {
                                  "items": {
                                    "properties": {
                                      "ebitda_avg": {
                                        "type": "number"
                                      },
                                      "eps_avg": {
                                        "type": "number"
                                      },
                                      "eps_high": {
                                        "type": "number"
                                      },
                                      "eps_low": {
                                        "type": "number"
                                      },
                                      "net_income_avg": {
                                        "type": "number"
                                      },
                                      "num_analysts_eps": {
                                        "type": "integer"
                                      },
                                      "num_analysts_revenue": {
                                        "type": "integer"
                                      },
                                      "period": {
                                        "type": "string"
                                      },
                                      "report_period": {
                                        "type": "string"
                                      },
                                      "revenue_avg": {
                                        "type": "number"
                                      },
                                      "revenue_high": {
                                        "type": "number"
                                      },
                                      "revenue_low": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "period": {
                                  "type": "string"
                                },
                                "price_targets": {
                                  "properties": {
                                    "target_high": {
                                      "type": "number"
                                    },
                                    "target_low": {
                                      "type": "number"
                                    },
                                    "target_mean": {
                                      "type": "number"
                                    },
                                    "target_median": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                },
                                "recommendation_distribution": {
                                  "properties": {
                                    "buy": {
                                      "type": "integer"
                                    },
                                    "consensus_label": {
                                      "type": "string"
                                    },
                                    "hold": {
                                      "type": "integer"
                                    },
                                    "sell": {
                                      "type": "integer"
                                    },
                                    "strong_buy": {
                                      "type": "integer"
                                    },
                                    "strong_sell": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Analyst estimates",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_company_facts": {
      "post": {
        "description": "Merges a company profile with SEC EDGAR identity data for one stock.\n\n**What you get** \u2014 the identity card for one US-listed company, merging the commercial profile with the regulatory registrant record:\n\n- `name`, `ticker`, `ceo`, `website` \u2014 the plain identity (`Apple Inc.`, `Timothy D. Cook`).\n- `sector` / `industry` \u2014 the peer-grouping pair; AAPL is `Technology` / `Consumer Electronics`.\n- `cik` \u2014 the zero-padded regulatory registrant id (`0000320193` for AAPL), the join key for filings-based data.\n- `sic_code` + `sic_description` \u2014 the older standard industrial classification (`3571`, `Electronic Computers`), which often disagrees with `sector`/`industry`.\n- `city`, `state`, `country` \u2014 registered headquarters location.\n- `is_active` \u2014 whether the registrant is still live, so delisted shells stay visible rather than looking normal.\n\n**When to use it** \u2014 resolve a ticker to a `cik` before pulling filings, or bucket a screener's output by `sector` for exposure checks.\n\n**Good to know** \u2014 one ticker per call; the symbol is trimmed and upper-cased for you. Unknown tickers return `status: \"not_found\"` rather than an error. Fields can be empty strings when the profile is thin. US-listed names only: a ticker whose canonical identity is a builder-dex perp with no US listing fails closed with `code: \"HIP3_ASSET_NO_US_LISTING\"`, since the same string names a different company here.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_company_facts",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_company_facts"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialCompanyFactsInput"
                  },
                  "toolName": {
                    "const": "financial_company_facts",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 65,
                        "isError": false,
                        "result": {
                          "company_facts": {
                            "ceo": "Timothy D. Cook",
                            "cik": "0000320193",
                            "city": "CUPERTINO",
                            "country": "US",
                            "industry": "Consumer Electronics",
                            "is_active": true,
                            "name": "Apple Inc.",
                            "sector": "Technology",
                            "sic_code": "3571",
                            "sic_description": "Electronic Computers",
                            "state": "CA",
                            "ticker": "AAPL",
                            "website": "https://www.apple.com"
                          },
                          "status": "success"
                        },
                        "toolName": "financial_company_facts"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "company_facts": {
                                  "properties": {
                                    "ceo": {
                                      "type": "string"
                                    },
                                    "cik": {
                                      "type": "string"
                                    },
                                    "city": {
                                      "type": "string"
                                    },
                                    "country": {
                                      "type": "string"
                                    },
                                    "industry": {
                                      "type": "string"
                                    },
                                    "is_active": {
                                      "type": "boolean"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "sector": {
                                      "type": "string"
                                    },
                                    "sic_code": {
                                      "type": "string"
                                    },
                                    "sic_description": {
                                      "type": "string"
                                    },
                                    "state": {
                                      "type": "string"
                                    },
                                    "ticker": {
                                      "type": "string"
                                    },
                                    "website": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Company facts",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_earnings_calendar": {
      "post": {
        "description": "Lists upcoming and recent earnings events in a date window.\n\n**What you get** \u2014 who reports inside a date window, with the consensus bar each name has to clear:\n\n- `events[]` \u2014 one row per scheduled report: `symbol`, `company_name`, and `event_date_start` (`event_date_end` where a range is published rather than a single date).\n- `eps_estimate_avg` with `eps_estimate_low` / `eps_estimate_high`, and `revenue_estimate_avg` with its low/high, in reporting-currency units \u2014 NVDA's 2026-08-26 report carries `eps_estimate_avg` 2.08 on `revenue_estimate_avg` 91,932,130,000.\n- `eps_actual` \u2014 `null` until the print lands, so one row serves preview and post-mortem.\n- `start_date` / `end_date`, `limit`, `count`, `requested_tickers` \u2014 the window and filter actually applied, echoed back.\n- `as_of` and `availability` \u2014 ISO-8601 UTC ingest timestamp and a readiness flag (`ready` here).\n\n**When to use it** \u2014 hedge positions ahead of an event-risk cluster in the next two weeks, or drive an earnings-week watchlist automatically.\n\n**Good to know** \u2014 with no arguments the window defaults to today through today+14d; the capture returned 30 events for 2026-08-18 to 2026-09-01. `limit` is 1-500 (default 30), `tickers` accepts at most 25 symbols, dates must be `YYYY-MM-DD` with `start_date` on or before `end_date`. An empty window is `status: \"success\"` with no events \u2014 not `not_found`. Low/high estimate bounds are often `null`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_earnings_calendar",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_earnings_calendar"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialEarningsCalendarInput"
                  },
                  "toolName": {
                    "const": "financial_earnings_calendar",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 401,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T05:59:14.124156+00:00",
                          "availability": "ready",
                          "count": 30,
                          "end_date": "2026-09-01",
                          "events": [
                            {
                              "company_name": "Walmart Inc.",
                              "eps_actual": null,
                              "eps_estimate_avg": 0.741,
                              "eps_estimate_high": null,
                              "eps_estimate_low": null,
                              "event_date_end": null,
                              "event_date_start": "2026-08-20",
                              "revenue_estimate_avg": 186619700000,
                              "revenue_estimate_high": null,
                              "revenue_estimate_low": null,
                              "symbol": "WMT"
                            },
                            {
                              "company_name": "NVIDIA Corporation",
                              "eps_actual": null,
                              "eps_estimate_avg": 2.08,
                              "eps_estimate_high": null,
                              "eps_estimate_low": null,
                              "event_date_end": null,
                              "event_date_start": "2026-08-26",
                              "revenue_estimate_avg": 91932130000,
                              "revenue_estimate_high": null,
                              "revenue_estimate_low": null,
                              "symbol": "NVDA"
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "requested_tickers": null,
                          "start_date": "2026-08-18",
                          "status": "success"
                        },
                        "toolName": "financial_earnings_calendar"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "as_of": {
                                  "type": "string"
                                },
                                "availability": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "end_date": {
                                  "type": "string"
                                },
                                "events": {
                                  "items": {
                                    "properties": {
                                      "company_name": {
                                        "type": "string"
                                      },
                                      "eps_actual": {
                                        "type": "null"
                                      },
                                      "eps_estimate_avg": {
                                        "type": "number"
                                      },
                                      "eps_estimate_high": {
                                        "type": "null"
                                      },
                                      "eps_estimate_low": {
                                        "type": "null"
                                      },
                                      "event_date_end": {
                                        "type": "null"
                                      },
                                      "event_date_start": {
                                        "type": "string"
                                      },
                                      "revenue_estimate_avg": {
                                        "type": "integer"
                                      },
                                      "revenue_estimate_high": {
                                        "type": "null"
                                      },
                                      "revenue_estimate_low": {
                                        "type": "null"
                                      },
                                      "symbol": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "limit": {
                                  "type": "integer"
                                },
                                "requested_tickers": {
                                  "type": "null"
                                },
                                "start_date": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Earnings calendar",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_earnings_data": {
      "post": {
        "description": "Returns quarterly EPS and revenue, actual versus estimate.\n\n**What you get** \u2014 one US-listed company's quarterly earnings history as a beat/miss ledger, newest period first:\n\n- `earnings[]` \u2014 per quarter: `report_period` (`YYYY-MM-DD`), `eps_actual` versus `eps_estimate`, and `revenue_actual` versus `revenue_estimate` in reporting-currency units.\n- `eps_surprise` and `eps_surprise_pct` \u2014 the beat in absolute EPS and in percent. AAPL's 2026-07-30 quarter printed 2.02 against a 1.89 estimate: a 0.13 surprise, +6.88%.\n- forward rows carry estimates with `eps_actual` / `revenue_actual` still `null` \u2014 the 2026-10-29 row already shows a 1.98 EPS estimate on 113,340,900,000 expected revenue.\n- `fiscal_period` \u2014 the fiscal quarter label where published (`null` in this capture).\n- `count`, `limit`, `period`, `as_of` \u2014 how many rows came back, the applied cap, the `quarterly` granularity, and the ISO-8601 UTC ingest timestamp.\n\n**When to use it** \u2014 measure a name's habitual surprise pattern before an event trade, or backtest post-earnings drift against actual-versus-estimate gaps rather than headlines.\n\n**Good to know** \u2014 quarterly only; there is no annual mode. `limit` is 1-100 (default 30). A symbol in the ingest universe with no rows yet returns `status: \"success\"` with an empty `earnings` list, distinct from `not_found` for an unknown ticker. US-listed only; gated tickers return `HIP3_ASSET_NO_US_LISTING`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_earnings_data",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_earnings_data"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialEarningsDataInput"
                  },
                  "toolName": {
                    "const": "financial_earnings_data",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 63,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T04:30:01.622182+00:00",
                          "availability": "ready",
                          "count": 30,
                          "earnings": [
                            {
                              "eps_actual": null,
                              "eps_estimate": 1.98,
                              "eps_surprise": null,
                              "eps_surprise_pct": null,
                              "fiscal_period": null,
                              "report_period": "2026-10-29",
                              "revenue_actual": null,
                              "revenue_estimate": 113340900000
                            },
                            {
                              "eps_actual": 2.02,
                              "eps_estimate": 1.89,
                              "eps_surprise": 0.13000000000000012,
                              "eps_surprise_pct": 6.878306878306885,
                              "fiscal_period": null,
                              "report_period": "2026-07-30",
                              "revenue_actual": 109417000000,
                              "revenue_estimate": 109038900000
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "period": "quarterly",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_earnings_data"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "as_of": {
                                  "type": "string"
                                },
                                "availability": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "earnings": {
                                  "items": {
                                    "properties": {
                                      "eps_actual": {
                                        "type": "null"
                                      },
                                      "eps_estimate": {
                                        "type": "number"
                                      },
                                      "eps_surprise": {
                                        "type": "null"
                                      },
                                      "eps_surprise_pct": {
                                        "type": "null"
                                      },
                                      "fiscal_period": {
                                        "type": "null"
                                      },
                                      "report_period": {
                                        "type": "string"
                                      },
                                      "revenue_actual": {
                                        "type": "null"
                                      },
                                      "revenue_estimate": {
                                        "type": "integer"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "limit": {
                                  "type": "integer"
                                },
                                "period": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Quarterly earnings data",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_economic_calendar": {
      "post": {
        "description": "Lists upcoming and recent macro releases \u2014 CPI, non-farm payrolls, rate decisions \u2014 with consensus and actual values.\n\n**What you get** \u2014 the macro release calendar for a date window, every event carrying consensus and actual so you can measure the surprise:\n\n- `events[]` \u2014 one row per release: `event` (name), `country` (ISO-2), `currency`, `event_time` (ISO timestamp, no UTC offset) and `observation_date`.\n- `actual` / `estimate` / `previous` \u2014 the print, the consensus, and the prior period, in the row's own `unit` (`\"%\"`, or `null` for index levels).\n- `change` / `change_percent` \u2014 the move versus `previous`. In the example, one confidence release printed `actual` 6.0 against `estimate` -2.6 and `previous` 4.1, so `change` is 1.9 and `change_percent` 46.341.\n- `impact` \u2014 released importance, e.g. `\"high\"` / `\"medium\"`.\n- `count`, `start_date`, `end_date`, `country`, `as_of`, `availability` \u2014 the window echo (`country` is `null` when unfiltered).\n\n**When to use it** \u2014 flatten risk ahead of a high-impact CPI or rate decision, or grade a move afterwards by comparing `actual` against `estimate`.\n\n**Good to know** \u2014 the window defaults to today through today+14d; both dates must be `YYYY-MM-DD`, `start_date` no later than `end_date`. One `country` code only (uppercased); omit for all. No limit argument \u2014 the unfiltered two-week window returned `count` 1001. An empty window is `status: \"success\"` with `availability: \"no_data\"`, not an error.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_economic_calendar",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_economic_calendar"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialEconomicCalendarInput"
                  },
                  "toolName": {
                    "const": "financial_economic_calendar",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1497,
                        "isError": false,
                        "result": {
                          "as_of": "2026-08-18T06:03:40.547431",
                          "availability": "ready",
                          "count": 1001,
                          "country": null,
                          "end_date": "2026-09-01",
                          "events": [
                            {
                              "actual": 88.9,
                              "change": 5.0,
                              "change_percent": 5.959,
                              "country": "AU",
                              "currency": "AUD",
                              "estimate": 81.7,
                              "event": "Westpac Consumer Confidence Index (Aug)",
                              "event_time": "2026-08-18T00:30:00",
                              "impact": "medium",
                              "observation_date": "2026-08-18",
                              "previous": 83.9,
                              "unit": null
                            },
                            {
                              "actual": 6.0,
                              "change": 1.9,
                              "change_percent": 46.341,
                              "country": "AU",
                              "currency": "AUD",
                              "estimate": -2.6,
                              "event": "Westpac Consumer Confidence Change (Aug)",
                              "event_time": "2026-08-18T00:30:00",
                              "impact": "high",
                              "observation_date": "2026-08-18",
                              "previous": 4.1,
                              "unit": "%"
                            },
                            "...truncated 999 more"
                          ],
                          "start_date": "2026-08-18",
                          "status": "success"
                        },
                        "toolName": "financial_economic_calendar"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "as_of": {
                                  "type": "string"
                                },
                                "availability": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "country": {
                                  "type": "null"
                                },
                                "end_date": {
                                  "type": "string"
                                },
                                "events": {
                                  "items": {
                                    "properties": {
                                      "actual": {
                                        "type": "number"
                                      },
                                      "change": {
                                        "type": "number"
                                      },
                                      "change_percent": {
                                        "type": "number"
                                      },
                                      "country": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "estimate": {
                                        "type": "number"
                                      },
                                      "event": {
                                        "type": "string"
                                      },
                                      "event_time": {
                                        "type": "string"
                                      },
                                      "impact": {
                                        "type": "string"
                                      },
                                      "observation_date": {
                                        "type": "string"
                                      },
                                      "previous": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "type": "null"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "start_date": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Economic calendar",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_fundamental_graph": {
      "post": {
        "description": "Returns a stock's income, balance-sheet and cash-flow history already shaped as chart cards, each naming its own chart type.\n\n**What you get** \u2014 a whole fundamentals dashboard for one US-listed company in a single call: statements, ratios, segment mix, and earnings-versus-estimate, pre-shaped into chart cards.\n\n- `charts[]` \u2014 one card per metric with `metric`, `label`, `source` (`income` / `balance` / `cashflow` / `metrics` / `segmented_revenue`), `unit` (`currency`, `number`, `percent`, `ratio`), `chartType` + `availableChartTypes`, and the `points[]` series.\n- `facts` on each card \u2014 `latest` / `latestFormatted`, `latestPeriod` / `previousPeriod`, `yoyChangePct`, `qoqChangePct` (quarter only), `threeYearCagrPct`, `trend`, plus `calculatedInsights` prose. AAPL's Revenue card reads \"$416.2B\" for FY2025, `yoyChangeFormatted` \"+6.4%\", CAGR \"+1.8%\".\n- `factsForChat` \u2014 the same facts flattened, with `availableMetrics`, `missingMetrics`, and `rawStatus` per source.\n- `metricCatalog` / `chartTypes` \u2014 the pickable metrics and what each chart type is for.\n- `periodDatasets.annual` and `.quarter` \u2014 both views, each with `defaultVisibleMetrics`.\n- `html` \u2014 an optional self-contained dashboard.\n\n**When to use it** \u2014 render a fundamentals tab without orchestrating six calls, or hand an agent one payload it can narrate from.\n\n**Good to know** \u2014 `period` is `annual`, `quarter`, or `quarterly` (normalised to `quarter`); `limit` is 1-40 (default 8) per source. `include_html: false` drops the HTML (~189KB here) and the sibling-period fetch. An unknown entry in `metrics` errors and echoes `availableMetrics`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_fundamental_graph",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_fundamental_graph"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialFundamentalGraphInput"
                  },
                  "toolName": {
                    "const": "financial_fundamental_graph",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 281,
                        "isError": false,
                        "result": {
                          "chartTypes": [
                            {
                              "label": "Bar",
                              "type": "bar",
                              "use": "Absolute per-period values such as revenue or cash flow."
                            },
                            "...truncated 5 more"
                          ],
                          "charts": [
                            {
                              "availableChartTypes": [
                                "bar",
                                "...truncated 1 more"
                              ],
                              "chartType": "bar",
                              "facts": {
                                "calculatedInsights": [
                                  "...truncated (depth limit, 2 items)"
                                ],
                                "latest": 416161000000.0,
                                "latestFormatted": "$416.2B",
                                "latestPeriod": "FY2025",
                                "periodChangeFormatted": "+6.4%",
                                "periodChangePct": 0.0642551178283274,
                                "previousPeriod": "FY2024",
                                "qoqChangeFormatted": null,
                                "qoqChangePct": null,
                                "threeYearCagrFormatted": "+1.8%",
                                "threeYearCagrPct": 0.01812535743479393,
                                "trend": "up",
                                "yoyChangeFormatted": "+6.4%",
                                "yoyChangePct": 0.0642551178283274
                              },
                              "label": "Revenue",
                              "metric": "revenue",
                              "period": "annual",
                              "points": [
                                {
                                  "...": "6 more field(s) omitted from this documentation example"
                                },
                                "...truncated 7 more"
                              ],
                              "source": "income",
                              "unit": "currency"
                            },
                            "...truncated 22 more"
                          ],
                          "factsForChat": {
                            "availableMetrics": [
                              "revenue",
                              "...truncated 22 more"
                            ],
                            "metricFacts": [
                              {
                                "...": "1 more field(s) omitted from this documentation example",
                                "calculatedInsights": [
                                  "...truncated (depth limit, 2 items)"
                                ],
                                "chartType": "bar",
                                "label": "Revenue",
                                "latest": 416161000000.0,
                                "latestFormatted": "$416.2B",
                                "latestPeriod": "FY2025",
                                "metric": "revenue",
                                "metricKey": "revenue",
                                "metricLabel": "Revenue",
                                "periodChangeFormatted": "+6.4%",
                                "periodChangePct": 0.0642551178283274,
                                "previousPeriod": "FY2024",
                                "qoqChangeFormatted": null,
                                "qoqChangePct": null,
                                "source": "income",
                                "threeYearCagrFormatted": "+1.8%",
                                "threeYearCagrPct": 0.01812535743479393,
                                "unit": "currency",
                                "yoyChangeFormatted": "+6.4%",
                                "yoyChangePct": 0.0642551178283274
                              },
                              "...truncated 22 more"
                            ],
                            "missingMetrics": [],
                            "period": "annual",
                            "rawStatus": {
                              "analyst_estimates": "success",
                              "balance": "success",
                              "cashflow": "success",
                              "earnings_data": "success",
                              "income": "success",
                              "metrics": "success",
                              "segmented_revenue": "success"
                            },
                            "ticker": "AAPL"
                          },
                          "html": "<section class=\"tn-fundamental-graph\" data-fundamental-graph...truncated 189291 chars",
                          "metricCatalog": [
                            {
                              "availableChartTypes": [
                                "bar",
                                "...truncated 1 more"
                              ],
                              "defaultChartType": "bar",
                              "label": "Revenue",
                              "metric": "revenue",
                              "source": "income",
                              "unit": "currency"
                            },
                            "...truncated 22 more"
                          ],
                          "period": "annual",
                          "periodDatasets": {
                            "annual": {
                              "charts": [
                                {
                                  "...": "9 more field(s) omitted from this documentation example"
                                },
                                "...truncated 22 more"
                              ],
                              "defaultVisibleMetrics": [
                                "revenue",
                                "...truncated 5 more"
                              ],
                              "missingMetrics": [],
                              "period": "annual",
                              "rawStatus": {
                                "analyst_estimates": "success",
                                "balance": "success",
                                "cashflow": "success",
                                "earnings_data": "success",
                                "income": "success",
                                "metrics": "success",
                                "segmented_revenue": "success"
                              }
                            },
                            "quarter": {
                              "charts": [
                                {
                                  "...": "9 more field(s) omitted from this documentation example"
                                },
                                "...truncated 19 more"
                              ],
                              "defaultVisibleMetrics": [
                                "revenue",
                                "...truncated 5 more"
                              ],
                              "missingMetrics": [
                                "revenue_mix_geographic"
                              ],
                              "period": "quarter",
                              "rawStatus": {
                                "analyst_estimates": "success",
                                "balance": "success",
                                "cashflow": "success",
                                "earnings_data": "success",
                                "income": "success",
                                "metrics": "success",
                                "segmented_revenue": "success"
                              }
                            }
                          },
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_fundamental_graph"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "chartTypes": {
                                  "items": {
                                    "properties": {
                                      "label": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "use": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "charts": {
                                  "items": {
                                    "properties": {
                                      "availableChartTypes": {
                                        "items": {
                                          "type": "string"
                                        },
                                        "type": "array"
                                      },
                                      "chartType": {
                                        "type": "string"
                                      },
                                      "facts": {
                                        "properties": {
                                          "calculatedInsights": {
                                            "items": {
                                              "type": "string"
                                            },
                                            "type": "array"
                                          },
                                          "latest": {
                                            "type": "number"
                                          },
                                          "latestFormatted": {
                                            "type": "string"
                                          },
                                          "latestPeriod": {
                                            "type": "string"
                                          },
                                          "periodChangeFormatted": {
                                            "type": "string"
                                          },
                                          "periodChangePct": {
                                            "type": "number"
                                          },
                                          "previousPeriod": {
                                            "type": "string"
                                          },
                                          "qoqChangeFormatted": {
                                            "type": "null"
                                          },
                                          "qoqChangePct": {
                                            "type": "null"
                                          },
                                          "threeYearCagrFormatted": {
                                            "type": "string"
                                          },
                                          "threeYearCagrPct": {
                                            "type": "number"
                                          },
                                          "trend": {
                                            "type": "string"
                                          },
                                          "yoyChangeFormatted": {
                                            "type": "string"
                                          },
                                          "yoyChangePct": {
                                            "type": "number"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "metric": {
                                        "type": "string"
                                      },
                                      "period": {
                                        "type": "string"
                                      },
                                      "points": {
                                        "items": {
                                          "properties": {
                                            "...": {
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "type": "array"
                                      },
                                      "source": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "factsForChat": {
                                  "properties": {
                                    "availableMetrics": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "metricFacts": {
                                      "items": {
                                        "properties": {
                                          "...": {
                                            "type": "string"
                                          },
                                          "calculatedInsights": {
                                            "items": {
                                              "type": "string"
                                            },
                                            "type": "array"
                                          },
                                          "chartType": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "latest": {
                                            "type": "number"
                                          },
                                          "latestFormatted": {
                                            "type": "string"
                                          },
                                          "latestPeriod": {
                                            "type": "string"
                                          },
                                          "metric": {
                                            "type": "string"
                                          },
                                          "metricKey": {
                                            "type": "string"
                                          },
                                          "metricLabel": {
                                            "type": "string"
                                          },
                                          "periodChangeFormatted": {
                                            "type": "string"
                                          },
                                          "periodChangePct": {
                                            "type": "number"
                                          },
                                          "previousPeriod": {
                                            "type": "string"
                                          },
                                          "qoqChangeFormatted": {
                                            "type": "null"
                                          },
                                          "qoqChangePct": {
                                            "type": "null"
                                          },
                                          "source": {
                                            "type": "string"
                                          },
                                          "threeYearCagrFormatted": {
                                            "type": "string"
                                          },
                                          "threeYearCagrPct": {
                                            "type": "number"
                                          },
                                          "unit": {
                                            "type": "string"
                                          },
                                          "yoyChangeFormatted": {
                                            "type": "string"
                                          },
                                          "yoyChangePct": {
                                            "type": "number"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "missingMetrics": {
                                      "type": "array"
                                    },
                                    "period": {
                                      "type": "string"
                                    },
                                    "rawStatus": {
                                      "properties": {
                                        "analyst_estimates": {
                                          "type": "string"
                                        },
                                        "balance": {
                                          "type": "string"
                                        },
                                        "cashflow": {
                                          "type": "string"
                                        },
                                        "earnings_data": {
                                          "type": "string"
                                        },
                                        "income": {
                                          "type": "string"
                                        },
                                        "metrics": {
                                          "type": "string"
                                        },
                                        "segmented_revenue": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "ticker": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "html": {
                                  "type": "string"
                                },
                                "metricCatalog": {
                                  "items": {
                                    "properties": {
                                      "availableChartTypes": {
                                        "items": {
                                          "type": "string"
                                        },
                                        "type": "array"
                                      },
                                      "defaultChartType": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "metric": {
                                        "type": "string"
                                      },
                                      "source": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "period": {
                                  "type": "string"
                                },
                                "periodDatasets": {
                                  "properties": {
                                    "annual": {
                                      "properties": {
                                        "charts": {
                                          "items": {
                                            "properties": {
                                              "...": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "type": "array"
                                        },
                                        "defaultVisibleMetrics": {
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array"
                                        },
                                        "missingMetrics": {
                                          "type": "array"
                                        },
                                        "period": {
                                          "type": "string"
                                        },
                                        "rawStatus": {
                                          "properties": {
                                            "analyst_estimates": {
                                              "type": "string"
                                            },
                                            "balance": {
                                              "type": "string"
                                            },
                                            "cashflow": {
                                              "type": "string"
                                            },
                                            "earnings_data": {
                                              "type": "string"
                                            },
                                            "income": {
                                              "type": "string"
                                            },
                                            "metrics": {
                                              "type": "string"
                                            },
                                            "segmented_revenue": {
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "quarter": {
                                      "properties": {
                                        "charts": {
                                          "items": {
                                            "properties": {
                                              "...": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          "type": "array"
                                        },
                                        "defaultVisibleMetrics": {
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array"
                                        },
                                        "missingMetrics": {
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array"
                                        },
                                        "period": {
                                          "type": "string"
                                        },
                                        "rawStatus": {
                                          "properties": {
                                            "analyst_estimates": {
                                              "type": "string"
                                            },
                                            "balance": {
                                              "type": "string"
                                            },
                                            "cashflow": {
                                              "type": "string"
                                            },
                                            "earnings_data": {
                                              "type": "string"
                                            },
                                            "income": {
                                              "type": "string"
                                            },
                                            "metrics": {
                                              "type": "string"
                                            },
                                            "segmented_revenue": {
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Fundamental chart cards",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_insider_trades": {
      "post": {
        "description": "Lists SEC Form 4 insider transactions for a US stock.\n\n**What you get** \u2014 SEC Form 4 insider transactions for one US stock, newest first:\n\n- Who \u2014 `reporting_owner_name`, `reporting_owner_cik`, `officer_title`, and the role flags `is_officer` / `is_director` / `is_ten_percent_owner` / `is_other` (null when the filing left that box unchecked).\n- What \u2014 `transaction_code` (Form 4 vocabulary: `S` sale, `P` purchase, `A` grant, `M` exercise, `F` tax\u2026), `transaction_acquired_disposed_code` (`A`/`D`), `transaction_shares`, `transaction_price_per_share`, `shares_owned_following_transaction`, `security_title`, `security_type`.\n- When \u2014 `transaction_date`, `period_of_report`, `filing_date`, plus `filing_accession` and `issuer_cik`.\n\nIn the capture, Jennifer Newstead (SVP, GC and Secretary) disposed of 1,439 AAPL shares at $307.75 on 2026-08-11, leaving 40,107 shares held.\n\n**When to use it** \u2014 separate genuine open-market conviction (`P`) from routine grants and tax withholding (`A`/`F`) before treating \"insider selling\" as a signal, or track one officer's cumulative position over time.\n\n**Good to know** \u2014 `limit` is 1-200 (default 30). `transaction_code` is validated against the Form 4 code set before any fetch; an unknown code errors. `start_date`/`end_date` are inclusive ISO `YYYY-MM-DD` bounds on `transaction_date`; empty strings count as unset. Expect filing lag \u2014 that capture row traded 2026-08-11 and filed 2026-08-13.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_insider_trades",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_insider_trades"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialInsiderTradesInput"
                  },
                  "toolName": {
                    "const": "financial_insider_trades",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 99,
                        "isError": false,
                        "result": {
                          "count": 30,
                          "insider_trades": [
                            {
                              "filing_accession": "0001140361-26-032884",
                              "filing_date": "2026-08-13",
                              "filing_section_row_number": 0,
                              "is_director": null,
                              "is_officer": true,
                              "is_other": null,
                              "is_ten_percent_owner": null,
                              "issuer_cik": "0000320193",
                              "officer_title": "SVP, GC and Secretary",
                              "period_of_report": "2026-08-11",
                              "reporting_owner_cik": "0001780525",
                              "reporting_owner_name": "Newstead Jennifer",
                              "security_title": "Common Stock",
                              "security_type": "non_derivative",
                              "shares_owned_following_transaction": 40107.0,
                              "transaction_acquired_disposed_code": "D",
                              "transaction_code": "S",
                              "transaction_date": "2026-08-11",
                              "transaction_price_per_share": 307.75,
                              "transaction_shares": 1439.0
                            },
                            {
                              "filing_accession": "0001140361-26-025620",
                              "filing_date": "2026-06-17",
                              "filing_section_row_number": 2,
                              "is_director": null,
                              "is_officer": true,
                              "is_other": null,
                              "is_ten_percent_owner": null,
                              "issuer_cik": "0000320193",
                              "officer_title": "Principal Accounting Officer",
                              "period_of_report": "2026-06-15",
                              "reporting_owner_cik": "0002100523",
                              "reporting_owner_name": "Borders Ben",
                              "security_title": "Common Stock",
                              "security_type": "non_derivative",
                              "shares_owned_following_transaction": 38713.0,
                              "transaction_acquired_disposed_code": "D",
                              "transaction_code": "S",
                              "transaction_date": "2026-06-16",
                              "transaction_price_per_share": 295.14,
                              "transaction_shares": 116.0
                            },
                            "...truncated 28 more"
                          ],
                          "limit": 30,
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_insider_trades"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "count": {
                                  "type": "integer"
                                },
                                "insider_trades": {
                                  "items": {
                                    "properties": {
                                      "filing_accession": {
                                        "type": "string"
                                      },
                                      "filing_date": {
                                        "type": "string"
                                      },
                                      "filing_section_row_number": {
                                        "type": "integer"
                                      },
                                      "is_director": {
                                        "type": "null"
                                      },
                                      "is_officer": {
                                        "type": "boolean"
                                      },
                                      "is_other": {
                                        "type": "null"
                                      },
                                      "is_ten_percent_owner": {
                                        "type": "null"
                                      },
                                      "issuer_cik": {
                                        "type": "string"
                                      },
                                      "officer_title": {
                                        "type": "string"
                                      },
                                      "period_of_report": {
                                        "type": "string"
                                      },
                                      "reporting_owner_cik": {
                                        "type": "string"
                                      },
                                      "reporting_owner_name": {
                                        "type": "string"
                                      },
                                      "security_title": {
                                        "type": "string"
                                      },
                                      "security_type": {
                                        "type": "string"
                                      },
                                      "shares_owned_following_transaction": {
                                        "type": "number"
                                      },
                                      "transaction_acquired_disposed_code": {
                                        "type": "string"
                                      },
                                      "transaction_code": {
                                        "type": "string"
                                      },
                                      "transaction_date": {
                                        "type": "string"
                                      },
                                      "transaction_price_per_share": {
                                        "type": "number"
                                      },
                                      "transaction_shares": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "limit": {
                                  "type": "integer"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Insider trades (Form 4)",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_institutional_ownership": {
      "post": {
        "description": "Lists the top 13F institutional holders of a US stock, with shares held and percent of shares outstanding.\n\n**What you get** \u2014 the top 13F holders of one US stock for a single filed quarter:\n\n- Position \u2014 `holder_name`, `cik`, `shares_held`, `value_held` (USD), `ownership_percentage` (percent of shares outstanding).\n- Movement \u2014 `change_in_shares`, `change_in_shares_pct`, `is_new`, `is_sold_out`, `first_added`, `holding_period_quarters`.\n- Period \u2014 `report_period`, `filing_date`, `year`, `quarter`, plus `count` and `limit`.\n\nIn the capture, BLACKROCK, INC. held 1,144,695,425 AAPL shares (7.7814% of shares outstanding) worth $290,512,251,859 as of the `2026-03-31` report period, down 9,970,306 shares (-0.8635%) on the quarter.\n\n**When to use it** \u2014 check whether a rally is being bought or faded by large holders, or flag a name where one manager's exit (`is_sold_out`) would leave a real overhang.\n\n**Good to know** \u2014 13F data is quarterly and lags hard: that capture, taken 2026-08-18, describes a 2026-03-31 quarter filed 2026-05-13. `limit` is 1-200 (default 20; the capture returned 19 rows under a limit of 20). `year` and `quarter` must be supplied together \u2014 a partial override is rejected locally \u2014 and `quarter` must be 1-4; omit both for the latest filed quarter. A brand-new position reports `change_in_shares_pct` 100.0.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_institutional_ownership",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_institutional_ownership"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialInstitutionalOwnershipInput"
                  },
                  "toolName": {
                    "const": "financial_institutional_ownership",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1097,
                        "isError": false,
                        "result": {
                          "count": 19,
                          "filing_date": "2026-05-13",
                          "holders": [
                            {
                              "change_in_shares": -9970306,
                              "change_in_shares_pct": -0.8635,
                              "cik": "0002012383",
                              "first_added": "2024-09-30",
                              "holder_name": "BLACKROCK, INC.",
                              "holding_period_quarters": 7,
                              "is_new": false,
                              "is_sold_out": false,
                              "ownership_percentage": 7.7814,
                              "shares_held": 1144695425,
                              "value_held": 290512251859,
                              "weight": 5.0758
                            },
                            {
                              "change_in_shares": 953847648,
                              "change_in_shares_pct": 100.0,
                              "cik": "0002100119",
                              "first_added": "2026-03-31",
                              "holder_name": "VANGUARD CAPITAL MANAGEMENT LLC",
                              "holding_period_quarters": 1,
                              "is_new": true,
                              "is_sold_out": false,
                              "ownership_percentage": 6.484,
                              "shares_held": 953847648,
                              "value_held": 242076924860,
                              "weight": 5.9877
                            },
                            "...truncated 17 more"
                          ],
                          "limit": 20,
                          "quarter": 1,
                          "report_period": "2026-03-31",
                          "status": "success",
                          "ticker": "AAPL",
                          "year": 2026
                        },
                        "toolName": "financial_institutional_ownership"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "count": {
                                  "type": "integer"
                                },
                                "filing_date": {
                                  "type": "string"
                                },
                                "holders": {
                                  "items": {
                                    "properties": {
                                      "change_in_shares": {
                                        "type": "integer"
                                      },
                                      "change_in_shares_pct": {
                                        "type": "number"
                                      },
                                      "cik": {
                                        "type": "string"
                                      },
                                      "first_added": {
                                        "type": "string"
                                      },
                                      "holder_name": {
                                        "type": "string"
                                      },
                                      "holding_period_quarters": {
                                        "type": "integer"
                                      },
                                      "is_new": {
                                        "type": "boolean"
                                      },
                                      "is_sold_out": {
                                        "type": "boolean"
                                      },
                                      "ownership_percentage": {
                                        "type": "number"
                                      },
                                      "shares_held": {
                                        "type": "integer"
                                      },
                                      "value_held": {
                                        "type": "integer"
                                      },
                                      "weight": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "limit": {
                                  "type": "integer"
                                },
                                "quarter": {
                                  "type": "integer"
                                },
                                "report_period": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                },
                                "year": {
                                  "type": "integer"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Institutional ownership (13F)",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_metrics": {
      "post": {
        "description": "Computes 40+ derived financial ratios \u2014 margins, ROE/ROA, leverage, liquidity, per-share, YoY growth \u2014 from a company's statements.\n\n**What you get** \u2014 ~35 ratios per reporting period, already derived from a US-listed company's income, balance-sheet and cash-flow statements:\n\n- profitability as decimal fractions \u2014 `gross_margin`, `operating_margin`, `ebit_margin`, `ebitda_margin`, `net_margin`, `operating_cash_flow_margin`, `free_cash_flow_margin`. AAPL's FY2025 `gross_margin` is 0.469, i.e. 46.9%.\n- returns and efficiency \u2014 `return_on_equity` (1.714 for AAPL FY2025), `return_on_assets`, `return_on_invested_capital`, `asset_turnover`.\n- leverage and liquidity \u2014 `debt_to_equity`, `debt_to_assets`, `net_debt_to_ebitda`, `current_ratio`, `quick_ratio`, `cash_ratio`, `interest_coverage`, plus `net_cash` and `working_capital` in currency units.\n- per-share \u2014 `earnings_per_share`, `revenue_per_share`, `book_value_per_share`, `tangible_book_value_per_share`, `free_cash_flow_per_share`.\n- growth, also fractions \u2014 `revenue_growth_yoy`, `eps_growth_yoy`, `earnings_growth_yoy`, `ebitda_growth_yoy`, `free_cash_flow_growth_yoy`, `book_value_growth_yoy`.\n- `report_period`, `fiscal_period` (`FY`), `currency`, and `refreshed_at` \u2014 the ISO-8601 UTC timestamp the row was last recomputed.\n\n**When to use it** \u2014 rank a watchlist on margin trend and leverage without parsing raw statements, or check a name's ROIC and net-debt/EBITDA before sizing a multi-quarter position.\n\n**Good to know** \u2014 `limit` defaults to 4 and caps at 40; `period` is `annual` or `quarter` only. Values are fractions, never percent, and any field can be `null` when an input line item is absent \u2014 `interest_coverage` is null for AAPL. US-listed only; gated tickers return `HIP3_ASSET_NO_US_LISTING`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_metrics",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_metrics"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialMetricsInput"
                  },
                  "toolName": {
                    "const": "financial_metrics",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 201,
                        "isError": false,
                        "result": {
                          "financial_metrics": [
                            {
                              "asset_turnover": 1.149265210481331,
                              "book_value_growth_yoy": 0.2946971027216857,
                              "book_value_per_share": 4.932468140616115,
                              "cash_ratio": 0.21695214060169896,
                              "currency": "USD",
                              "current_ratio": 0.8932929222186667,
                              "debt_to_assets": 0.3128178576498785,
                              "debt_to_equity": 1.5241072518411023,
                              "earnings_growth_yoy": 0.19495177946573355,
                              "earnings_per_share": 7.49,
                              "ebit_margin": 0.3189366615324358,
                              "ebitda_growth_yoy": 0.07038464388942414,
                              "ebitda_margin": 0.34704597499525425,
                              "eps_growth_yoy": 0.22585924713584285,
                              "fiscal_period": "FY",
                              "free_cash_flow_growth_yoy": -0.09227347505215656,
                              "free_cash_flow_margin": 0.23732882225869315,
                              "free_cash_flow_per_share": 6.607151219185871,
                              "gross_margin": 0.4690516410716045,
                              "interest_coverage": null,
                              "net_cash": -76443000000.0,
                              "net_debt_to_ebitda": 0.5292846905357032,
                              "net_margin": 0.2691506412181824,
                              "operating_cash_flow_margin": 0.26788190147563085,
                              "operating_margin": 0.31970799762591884,
                              "period": "annual",
                              "quick_ratio": 0.21695214060169896,
                              "refreshed_at": "2026-08-15T07:00:07.191246+00:00",
                              "report_period": "2025-09-27",
                              "return_on_assets": 0.3093254683307996,
                              "return_on_equity": 1.7142244974480232,
                              "return_on_invested_capital": 0.7562060747632003,
                              "revenue_growth_yoy": 0.0642551178283274,
                              "revenue_per_share": 27.83964946315684,
                              "tangible_book_value_per_share": 4.932468140616115,
                              "ticker": "AAPL",
                              "working_capital": -17674000000.0
                            },
                            {
                              "asset_turnover": 1.0898973330564703,
                              "book_value_growth_yoy": -0.0836095645737457,
                              "book_value_per_share": 3.711600978715614,
                              "cash_ratio": 0.16975259648963673,
                              "currency": "USD",
                              "current_ratio": 0.8673125765340832,
                              "debt_to_assets": 0.32620691544742175,
                              "debt_to_equity": 2.090588235294118,
                              "earnings_growth_yoy": -0.033599670086086914,
                              "earnings_per_share": 6.11,
                              "ebit_margin": 0.3157901466620635,
                              "ebitda_growth_yoy": 0.044446852648852835,
                              "ebitda_margin": 0.34505862646566166,
                              "eps_growth_yoy": -0.008116883116883088,
                              "fiscal_period": "FY",
                              "free_cash_flow_growth_yoy": 0.092615279562982,
                              "free_cash_flow_margin": 0.27825386474356517,
                              "free_cash_flow_per_share": 7.091275991064264,
                              "gross_margin": 0.4620634981523393,
                              "interest_coverage": null,
                              "net_cash": -89116000000.0,
                              "net_debt_to_ebitda": 0.6604609797672868,
                              "net_margin": 0.23971255769943867,
                              "operating_cash_flow_margin": 0.3024128274962599,
                              "operating_margin": 0.31510222870075566,
                              "period": "annual",
                              "quick_ratio": 0.16975259648963673,
                              "refreshed_at": "2026-08-15T07:00:07.191246+00:00",
                              "report_period": "2024-09-28",
                              "return_on_assets": 0.2612620773367635,
                              "return_on_equity": 1.5741250755692886,
                              "return_on_invested_capital": 0.6204045973055528,
                              "revenue_growth_yoy": 0.020219940775141214,
                              "revenue_per_share": 25.484914639368924,
                              "tangible_book_value_per_share": 3.711600978715614,
                              "ticker": "AAPL",
                              "working_capital": -23405000000.0
                            },
                            "...truncated 2 more"
                          ],
                          "period": "annual",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_metrics"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "financial_metrics": {
                                  "items": {
                                    "properties": {
                                      "asset_turnover": {
                                        "type": "number"
                                      },
                                      "book_value_growth_yoy": {
                                        "type": "number"
                                      },
                                      "book_value_per_share": {
                                        "type": "number"
                                      },
                                      "cash_ratio": {
                                        "type": "number"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "current_ratio": {
                                        "type": "number"
                                      },
                                      "debt_to_assets": {
                                        "type": "number"
                                      },
                                      "debt_to_equity": {
                                        "type": "number"
                                      },
                                      "earnings_growth_yoy": {
                                        "type": "number"
                                      },
                                      "earnings_per_share": {
                                        "type": "number"
                                      },
                                      "ebit_margin": {
                                        "type": "number"
                                      },
                                      "ebitda_growth_yoy": {
                                        "type": "number"
                                      },
                                      "ebitda_margin": {
                                        "type": "number"
                                      },
                                      "eps_growth_yoy": {
                                        "type": "number"
                                      },
                                      "fiscal_period": {
                                        "type": "string"
                                      },
                                      "free_cash_flow_growth_yoy": {
                                        "type": "number"
                                      },
                                      "free_cash_flow_margin": {
                                        "type": "number"
                                      },
                                      "free_cash_flow_per_share": {
                                        "type": "number"
                                      },
                                      "gross_margin": {
                                        "type": "number"
                                      },
                                      "interest_coverage": {
                                        "type": "null"
                                      },
                                      "net_cash": {
                                        "type": "number"
                                      },
                                      "net_debt_to_ebitda": {
                                        "type": "number"
                                      },
                                      "net_margin": {
                                        "type": "number"
                                      },
                                      "operating_cash_flow_margin": {
                                        "type": "number"
                                      },
                                      "operating_margin": {
                                        "type": "number"
                                      },
                                      "period": {
                                        "type": "string"
                                      },
                                      "quick_ratio": {
                                        "type": "number"
                                      },
                                      "refreshed_at": {
                                        "type": "string"
                                      },
                                      "report_period": {
                                        "type": "string"
                                      },
                                      "return_on_assets": {
                                        "type": "number"
                                      },
                                      "return_on_equity": {
                                        "type": "number"
                                      },
                                      "return_on_invested_capital": {
                                        "type": "number"
                                      },
                                      "revenue_growth_yoy": {
                                        "type": "number"
                                      },
                                      "revenue_per_share": {
                                        "type": "number"
                                      },
                                      "tangible_book_value_per_share": {
                                        "type": "number"
                                      },
                                      "ticker": {
                                        "type": "string"
                                      },
                                      "working_capital": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "period": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Financial ratios (40+)",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_resolve_stock_ticker": {
      "post": {
        "description": "Fuzzy-matches free text to a US stock ticker.\n\n**What you get** \u2014 free text turned into a US stock ticker, with the evidence for the match rather than a bare string:\n\n- `ticker`, `company_name`, `score`, `status` \u2014 the compact answer (`AAPL`, `Apple Inc.`, score 1.0, `exact_supported` in the example).\n- `resolution.candidates[]` \u2014 each considered match with `ticker`, `name`, `instrument_type` (`stock`), `confidence` (`high`), `match_kind` (`ticker_exact`), and `matched_alias` when a brand or alias did the matching.\n- `resolution.relationship` \u2014 whether that candidate is `supported` by downstream data, so you know before you call anything else.\n- `resolution.intent`, `normalized_query`, `resolved_ticker`, `resolved_name`, `resolved_instrument_type` \u2014 what the query was read as and what it collapsed to.\n- freshness per candidate \u2014 `financials_updated_at`, `news_updated_at`, `updated_at`, plus a top-level `as_of`.\n\n**When to use it** \u2014 front a search box or chat command where users type \"apple\" or a brand name, and gate a fundamentals call on `relationship: \"supported\"` before spending it.\n\n**Good to know** \u2014 `query` is 1-160 characters. `status` distinguishes outcomes: `exact_supported`, `resolved`, `ambiguous`, `exact_unsupported`, and `none` (asked and answered, no candidates) \u2014 while `not_found` means the resolver was unreachable, so check for the `resolution` block to tell them apart. This is a legacy resolution surface kept live for compatibility.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_resolve_stock_ticker",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "query": "AAPL"
                },
                "toolName": "financial_resolve_stock_ticker"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialResolveStockTickerInput"
                  },
                  "toolName": {
                    "const": "financial_resolve_stock_ticker",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 59,
                        "isError": false,
                        "result": {
                          "company_name": "Apple Inc.",
                          "query": "AAPL",
                          "resolution": {
                            "as_of": "2026-08-17T10:35:49.638163+00:00",
                            "candidates": [
                              {
                                "confidence": "high",
                                "financials_updated_at": "2026-08-15T06:30:01.371733+00:00",
                                "instrument_type": "stock",
                                "match_kind": "ticker_exact",
                                "matched_alias": null,
                                "name": "Apple Inc.",
                                "news_updated_at": null,
                                "relationship": "supported",
                                "ticker": "AAPL",
                                "updated_at": "2026-08-15T06:30:01.371733+00:00"
                              }
                            ],
                            "intent": "ticker",
                            "normalized_query": "aapl",
                            "query": "AAPL",
                            "resolved_instrument_type": "stock",
                            "resolved_name": "Apple Inc.",
                            "resolved_ticker": "AAPL",
                            "status": "exact_supported"
                          },
                          "score": 1.0,
                          "status": "exact_supported",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_resolve_stock_ticker"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "company_name": {
                                  "type": "string"
                                },
                                "query": {
                                  "type": "string"
                                },
                                "resolution": {
                                  "properties": {
                                    "as_of": {
                                      "type": "string"
                                    },
                                    "candidates": {
                                      "items": {
                                        "properties": {
                                          "confidence": {
                                            "type": "string"
                                          },
                                          "financials_updated_at": {
                                            "type": "string"
                                          },
                                          "instrument_type": {
                                            "type": "string"
                                          },
                                          "match_kind": {
                                            "type": "string"
                                          },
                                          "matched_alias": {
                                            "type": "null"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "news_updated_at": {
                                            "type": "null"
                                          },
                                          "relationship": {
                                            "type": "string"
                                          },
                                          "ticker": {
                                            "type": "string"
                                          },
                                          "updated_at": {
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "intent": {
                                      "type": "string"
                                    },
                                    "normalized_query": {
                                      "type": "string"
                                    },
                                    "query": {
                                      "type": "string"
                                    },
                                    "resolved_instrument_type": {
                                      "type": "string"
                                    },
                                    "resolved_name": {
                                      "type": "string"
                                    },
                                    "resolved_ticker": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "score": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Resolve stock ticker",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_segmented_revenue": {
      "post": {
        "description": "Returns SEC-derived segmented revenue (by product/geography) for a US issuer's reporting periods.\n\n**What you get** \u2014 a US issuer's revenue broken out the way its own filings break it out, per reporting period:\n\n- `segmented_revenues[]` \u2014 one entry per `report_period` (`2025-09-27` for AAPL FY2025) with `ticker` and `period`.\n- `items[]` inside each period \u2014 `name` (the segment as filed, e.g. `CN`, `Other Countries`) and `amount`, an absolute value in reporting currency. AAPL's FY2025 Greater China line is 64,377,000,000 against 199,994,000,000 for Other Countries.\n- `segments[]` on each item \u2014 `label` plus `type`, the classification the split came from (`geographic` for the rows above), so product, geographic, and business-unit cuts stay distinguishable in one response.\n\n**When to use it** \u2014 quantify single-region or single-product concentration before an earnings event, or track whether the segment the market is paying for is actually compounding.\n\n**Good to know** \u2014 `period` here is `annual` or `quarterly` \u2014 note `quarterly`, not the `quarter` other finance tools take. `limit` is 1-200 (default 20) periods; `segment_type` filters to one classification (for example `ProductOrService`, `StatementGeographical`, `StatementBusinessSegments`), and `report_period_start` / `report_period_end` are inclusive `YYYY-MM-DD` bounds. Segment names are issuer-chosen and can be re-cut between filings, so labels are not stable keys. US issuers only.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_segmented_revenue",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_segmented_revenue"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialSegmentedRevenueInput"
                  },
                  "toolName": {
                    "const": "financial_segmented_revenue",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 55,
                        "isError": false,
                        "result": {
                          "period": "annual",
                          "segmented_revenues": [
                            {
                              "items": [
                                {
                                  "amount": 64377000000,
                                  "name": "CN",
                                  "segments": [
                                    {
                                      "label": "CN",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                {
                                  "amount": 199994000000,
                                  "name": "Other Countries",
                                  "segments": [
                                    {
                                      "label": "Other Countries",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                "...truncated 8 more"
                              ],
                              "period": "annual",
                              "report_period": "2025-09-27",
                              "ticker": "AAPL"
                            },
                            {
                              "items": [
                                {
                                  "amount": 66952000000,
                                  "name": "CN",
                                  "segments": [
                                    {
                                      "label": "CN",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                {
                                  "amount": 181887000000,
                                  "name": "Other Countries",
                                  "segments": [
                                    {
                                      "label": "Other Countries",
                                      "type": "geographic"
                                    }
                                  ]
                                },
                                "...truncated 8 more"
                              ],
                              "period": "annual",
                              "report_period": "2024-09-28",
                              "ticker": "AAPL"
                            },
                            "...truncated 4 more"
                          ],
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_segmented_revenue"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "period": {
                                  "type": "string"
                                },
                                "segmented_revenues": {
                                  "items": {
                                    "properties": {
                                      "items": {
                                        "items": {
                                          "properties": {
                                            "amount": {
                                              "type": "integer"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "segments": {
                                              "items": {
                                                "properties": {
                                                  "label": {
                                                    "type": "string"
                                                  },
                                                  "type": {
                                                    "type": "string"
                                                  }
                                                },
                                                "type": "object"
                                              },
                                              "type": "array"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        "type": "array"
                                      },
                                      "period": {
                                        "type": "string"
                                      },
                                      "report_period": {
                                        "type": "string"
                                      },
                                      "ticker": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Segmented revenue (SEC)",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_statements": {
      "post": {
        "description": "Returns income, balance sheet, cash-flow, and key-stats statements for a stock.\n\n**What you get** \u2014 as-reported statement line items for a US-listed company, newest period first, one array keyed to the statement you asked for:\n\n- `income_statements[]` (the default) \u2014 `revenue`, `cost_of_revenue`, `gross_profit`, `operating_expense`, `operating_income`, `ebit`, `interest_expense`, `income_tax_expense`, `net_income`, `earnings_per_share`, `dividends_per_share`, `weighted_average_shares`, all in `currency` units. AAPL's FY2025 row shows revenue 416,161,000,000 against gross_profit 195,201,000,000 \u2014 a 46.9% gross margin.\n- `report_period` \u2014 fiscal period end (`2025-09-27` for AAPL FY2025), with `fiscal_period` (`FY`), `period`, and `symbol` on every row.\n- `balance` and `cashflow` return their own arrays (`balance_sheets`, `cash_flow_statements`); `key-stats` returns the summary set.\n\n**When to use it** \u2014 rebuild a model from primary line items rather than someone's derived ratios, or diff two fiscal years to see whether margin change came from price, mix, or opex.\n\n**Good to know** \u2014 `statement_type` must be one of `income`, `balance`, `cashflow`, `key-stats`; `period` is `annual` or `quarter`; `limit` is 1-40 (default 30). Fields absent from a filing come back `null` or `0.0` \u2014 AAPL reports `dividends_per_share: null` and `interest_expense: 0.0`. Fiscal calendars differ from calendar years. US-listed only; gated tickers return `HIP3_ASSET_NO_US_LISTING`.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_statements",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_statements"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialStatementsInput"
                  },
                  "toolName": {
                    "const": "financial_statements",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 70,
                        "isError": false,
                        "result": {
                          "income_statements": [
                            {
                              "cost_of_revenue": 220960000000.0,
                              "currency": "USD",
                              "dividends_per_share": null,
                              "earnings_per_share": 7.49,
                              "ebit": 132729000000.0,
                              "fiscal_period": "FY",
                              "gross_profit": 195201000000.0,
                              "income_tax_expense": 20719000000.0,
                              "interest_expense": 0.0,
                              "net_income": 112010000000.0,
                              "operating_expense": 62151000000.0,
                              "operating_income": 133050000000.0,
                              "period": "annual",
                              "report_period": "2025-09-27",
                              "revenue": 416161000000.0,
                              "symbol": "AAPL",
                              "weighted_average_shares": 15004697000.0
                            },
                            {
                              "cost_of_revenue": 210352000000.0,
                              "currency": "USD",
                              "dividends_per_share": null,
                              "earnings_per_share": 6.11,
                              "ebit": 123485000000.0,
                              "fiscal_period": "FY",
                              "gross_profit": 180683000000.0,
                              "income_tax_expense": 29749000000.0,
                              "interest_expense": 0.0,
                              "net_income": 93736000000.0,
                              "operating_expense": 57467000000.0,
                              "operating_income": 123216000000.0,
                              "period": "annual",
                              "report_period": "2024-09-28",
                              "revenue": 391035000000.0,
                              "symbol": "AAPL",
                              "weighted_average_shares": 15408095000.0
                            },
                            "...truncated 6 more"
                          ],
                          "period": "annual",
                          "status": "success",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_statements"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "income_statements": {
                                  "items": {
                                    "properties": {
                                      "cost_of_revenue": {
                                        "type": "number"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "dividends_per_share": {
                                        "type": "null"
                                      },
                                      "earnings_per_share": {
                                        "type": "number"
                                      },
                                      "ebit": {
                                        "type": "number"
                                      },
                                      "fiscal_period": {
                                        "type": "string"
                                      },
                                      "gross_profit": {
                                        "type": "number"
                                      },
                                      "income_tax_expense": {
                                        "type": "number"
                                      },
                                      "interest_expense": {
                                        "type": "number"
                                      },
                                      "net_income": {
                                        "type": "number"
                                      },
                                      "operating_expense": {
                                        "type": "number"
                                      },
                                      "operating_income": {
                                        "type": "number"
                                      },
                                      "period": {
                                        "type": "string"
                                      },
                                      "report_period": {
                                        "type": "string"
                                      },
                                      "revenue": {
                                        "type": "number"
                                      },
                                      "symbol": {
                                        "type": "string"
                                      },
                                      "weighted_average_shares": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "period": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Financial statements",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#financial_stock_dividends": {
      "post": {
        "description": "Lists a US stock's historical dividend events.\n\n**What you get** \u2014 the dividend event history for one US stock, newest ex-date first:\n\n- `dividends[]` \u2014 per event: `ex_date` and `payment_date`, `amount` per share, `adj_amount` (split-adjusted), `yield_pct`, `frequency` (e.g. `Quarterly`), and `currency`.\n- Envelope \u2014 `ticker`, `count`, `limit`, `status`.\n\nThe captured `AAPL` call returned exactly `{\"status\": \"not_found\", \"ticker\": \"AAPL\"}` \u2014 no `dividends` array and no `count` \u2014 despite AAPL being a dividend payer, so treat `not_found` as a coverage gap rather than proof a company pays nothing.\n\n**When to use it** \u2014 compute a total-return series by adding distributions back to a price history, or forecast the next ex-date from the observed `frequency` before writing a dividend-capture rule.\n\n**Good to know** \u2014 `limit` is 1-500 and is rejected locally outside that range; the registered default is 30. `status: \"not_found\"` collapses two distinct conditions \u2014 no record for the symbol, and a failed lookup \u2014 so retry before concluding coverage is missing. Ticker input is uppercased. Symbols whose canonical tradable identity is a perp market with no US listing are refused with a redirect rather than served the same-named US company's dividend history.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "financial_stock_dividends",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "financial_stock_dividends"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiFinancialStockDividendsInput"
                  },
                  "toolName": {
                    "const": "financial_stock_dividends",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1129,
                        "isError": false,
                        "result": {
                          "status": "not_found",
                          "ticker": "AAPL"
                        },
                        "toolName": "financial_stock_dividends"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "status": {
                                  "type": "string"
                                },
                                "ticker": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Dividend history",
        "tags": [
          "US equities / SEC / fundamentals"
        ]
      }
    },
    "/api/agent-tools/call#hyperliquid_smart_money": {
      "post": {
        "description": "Analyzes what large, historically profitable Hyperliquid wallets are positioned in for a given token.\n\n**What you get** \u2014 the full perp position book for one asset across tracked large wallets, aggregated and itemized:\n\n- `smart_money.aggregated_position` \u2014 `long_position`, `short_position`, `total_position` and `net_position`, all USD notional, with `last_updated`. In the example below 214 BTC wallets hold $443M long against $570M short, a net **$127M short**.\n- `smart_money.wallet_positions[]` \u2014 per wallet: `wallet_address`, `size` (signed, in coins) and `abs_size`, `is_long`, `entry_price`, `position_value` (USD notional), `leverage`, `margin_used` (USD), `liquidation_price`, `unrealized_pnl` (USD).\n- `smart_money.total_wallets` / `wallets_returned` and `sort_info` \u2014 the sort actually applied.\n\n**When to use it** \u2014 read crowding before a squeeze (net short plus clustered `liquidation_price` levels just above spot is fuel), or track whether the largest holders added or cut into a move by watching `entry_price` versus current.\n\n**Good to know** \u2014 `sort_by` accepts `abs_size`, `position_value`, `unrealized_pnl`, `leverage` or `margin_used`, always descending; `top_n` is 1\u2013100 (default 10), but the captured call came back with all 214 wallets and `sort_info.limit: null`, so treat truncation as best-effort and slice client-side. `token_address` is a canonical asset id (`bitcoin`), not a symbol. Values are a snapshot at `last_updated`, not a stream.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "hyperliquid_smart_money",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "hyperliquid_smart_money"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiHyperliquidSmartMoneyInput"
                  },
                  "toolName": {
                    "const": "hyperliquid_smart_money",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 105,
                        "isError": false,
                        "result": {
                          "smart_money": {
                            "aggregated_position": {
                              "last_updated": "2026-08-18T06:00:58.961878",
                              "long_position": 423705122.89815295,
                              "net_position": -144182893.41345906,
                              "short_position": 567888016.311612,
                              "total_position": 991593139.209765
                            },
                            "sort_info": {
                              "limit": null,
                              "sort_by": "abs_size",
                              "sort_direction": "desc"
                            },
                            "success": true,
                            "symbol": "BTC",
                            "token_address": "bitcoin",
                            "total_wallets": 213,
                            "wallet_positions": [
                              {
                                "abs_size": 1800.0,
                                "entry_price": 63991.0,
                                "is_long": false,
                                "last_updated": "2026-08-18T06:00:58.998869",
                                "leverage": 40.0,
                                "liquidation_price": 64854.6347748938,
                                "margin_used": 2888100.0,
                                "position_value": 115524000.0,
                                "size": -1800.0,
                                "symbol": "BTC",
                                "unrealized_pnl": -340026.498063,
                                "wallet_address": "0x8c96e5a2d770f9f2c9d2464ce4e741df0b2bca57"
                              },
                              {
                                "abs_size": 1256.6398,
                                "entry_price": 63236.6,
                                "is_long": false,
                                "last_updated": "2026-08-18T06:00:58.998869",
                                "leverage": 5.0,
                                "liquidation_price": 99287.4855491224,
                                "margin_used": 16131736.44056,
                                "position_value": 80658682.2028,
                                "size": -1256.6398,
                                "symbol": "BTC",
                                "unrealized_pnl": -1193052.463659,
                                "wallet_address": "0xb83de012dba672c76a7dbbbf3e459cb59d7d6e36"
                              },
                              "...truncated 211 more"
                            ],
                            "wallets_returned": 213
                          },
                          "status": "success"
                        },
                        "toolName": "hyperliquid_smart_money"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "smart_money": {
                                  "properties": {
                                    "aggregated_position": {
                                      "properties": {
                                        "last_updated": {
                                          "type": "string"
                                        },
                                        "long_position": {
                                          "type": "number"
                                        },
                                        "net_position": {
                                          "type": "number"
                                        },
                                        "short_position": {
                                          "type": "number"
                                        },
                                        "total_position": {
                                          "type": "number"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "sort_info": {
                                      "properties": {
                                        "limit": {
                                          "type": "null"
                                        },
                                        "sort_by": {
                                          "type": "string"
                                        },
                                        "sort_direction": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "success": {
                                      "type": "boolean"
                                    },
                                    "symbol": {
                                      "type": "string"
                                    },
                                    "token_address": {
                                      "type": "string"
                                    },
                                    "total_wallets": {
                                      "type": "integer"
                                    },
                                    "wallet_positions": {
                                      "items": {
                                        "properties": {
                                          "abs_size": {
                                            "type": "number"
                                          },
                                          "entry_price": {
                                            "type": "number"
                                          },
                                          "is_long": {
                                            "type": "boolean"
                                          },
                                          "last_updated": {
                                            "type": "string"
                                          },
                                          "leverage": {
                                            "type": "number"
                                          },
                                          "liquidation_price": {
                                            "type": "number"
                                          },
                                          "margin_used": {
                                            "type": "number"
                                          },
                                          "position_value": {
                                            "type": "number"
                                          },
                                          "size": {
                                            "type": "number"
                                          },
                                          "symbol": {
                                            "type": "string"
                                          },
                                          "unrealized_pnl": {
                                            "type": "number"
                                          },
                                          "wallet_address": {
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "wallets_returned": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Hyperliquid smart money",
        "tags": [
          "Derivatives & positioning"
        ]
      }
    },
    "/api/agent-tools/call#kline_analysis": {
      "post": {
        "description": "Reads a token's price chart (candles) and summarizes the pattern in plain language.\n\n**What you get** \u2014 a compact OHLCV series for one token on one venue, trimmed to what a chart actually needs:\n\n- `chart_patterns[]` \u2014 one entry per candle: `t` (bar open time as a `YYYY-MM-DD HH:MM:SS` UTC string), `o`, `h`, `l`, `c`, `v`. In the example below the 2026-08-14 03:00 hourly bar opened 63,437.1, ranged 63,277.1\u201363,556.1, closed 63,288.1 on 3,097.959 volume, and 96 hourly candles came back.\n- `exchange_id` \u2014 the venue actually read, auto-resolved to the token's best venue when you do not name one (`hyperliquid_perp` in the example).\n- `requested_exchange_id` and `token_metadata.requested_exchange_id` \u2014 echoes of your venue argument, `null` when you let it auto-resolve.\n- `title` / `url` \u2014 a display label and public reference-chart link for the token.\n\n**When to use it** \u2014 draw the price chart or candlestick overlay in an agent report, or hand a lightweight recent series to a pattern check that does not need indicator math.\n\n**Good to know** \u2014 `timeframe` accepts `5m`, `15m`, `1h`, `4h`, `1d`; anything else silently falls back to `1h` instead of erroring, so validate the value yourself if the interval matters. There is no `limit` argument \u2014 the window is the venue default unless you pass `start_end_datetime` as an ISO range, which is validated and rejected with a structured error when inverted. A malformed upstream payload yields an empty `chart_patterns` list rather than an error status, so check the length before charting.\n\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "kline_analysis",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "kline_analysis"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiKlineAnalysisInput"
                  },
                  "toolName": {
                    "const": "kline_analysis",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 42,
                        "isError": false,
                        "result": {
                          "agent": "kline_analysis",
                          "chart_patterns": [
                            {
                              "c": 62888.1,
                              "h": 63079.1,
                              "l": 62888.0,
                              "o": 62944.6,
                              "t": "2026-08-14 07:00:00",
                              "v": 5972.257
                            },
                            {
                              "c": 62904.9,
                              "h": 62974.4,
                              "l": 62658.8,
                              "o": 62888.0,
                              "t": "2026-08-14 08:00:00",
                              "v": 11490.409
                            },
                            "...truncated 94 more"
                          ],
                          "exchange_id": "hyperliquid_perp",
                          "requested_exchange_id": null,
                          "status": "success",
                          "title": "the data provider Bitcoin Price Chart",
                          "token_metadata": {
                            "requested_exchange_id": null
                          },
                          "url": "https://www.the data provider.com/en/coins/bitcoin"
                        },
                        "toolName": "kline_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "agent": {
                                  "type": "string"
                                },
                                "chart_patterns": {
                                  "items": {
                                    "properties": {
                                      "c": {
                                        "type": "number"
                                      },
                                      "h": {
                                        "type": "number"
                                      },
                                      "l": {
                                        "type": "number"
                                      },
                                      "o": {
                                        "type": "number"
                                      },
                                      "t": {
                                        "type": "string"
                                      },
                                      "v": {
                                        "type": "number"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "exchange_id": {
                                  "type": "string"
                                },
                                "requested_exchange_id": {
                                  "type": "null"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "token_metadata": {
                                  "properties": {
                                    "requested_exchange_id": {
                                      "type": "null"
                                    }
                                  },
                                  "type": "object"
                                },
                                "url": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Candle/kline analysis",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#liquidation_risk": {
      "post": {
        "description": "Calculates how close a position sits to its exchange-computed liquidation price.\n\n**What you get** \u2014 a Monte-Carlo probability that a position touches its liquidation price within 24 hours, plus the volatility model behind it:\n\n- `riskProbability` \u2014 probability as a 0\u20131 decimal (0.02 = 2%), with `riskLevel` as its bucketed label (`VERY_LOW` \u2026) and `ci95` as the confidence bounds.\n- `sigmasAway` \u2014 distance to liquidation in standard deviations of the simulated horizon; `position.price_distance_pct` is the same gap in percent.\n- `volatility` \u2014 `daily` and `horizon` as decimals (0.01041 = 1.04% daily), plus the estimator (`garman_klass`) and `window_bars` (168) it was fit on.\n- `meta` \u2014 the simulation: `nPaths` (5000), `dtSec` (300), `horizonSec` (86400), `barIntervalSec` (3600). `drift.method` is `zero`, so paths are driftless.\n- `histogram` \u2014 a normalized `terminal_log_return` distribution with `bins` / `counts` for plotting the tail.\n\nIn the example below a long liquidating at $58,000 with spot at $64,000 sits 10.34% away \u2014 9.46 sigma \u2014 for a `riskProbability` of 0.0.\n\n**When to use it** \u2014 decide whether a leverage level survives the next session, or rank open positions by which the tail actually threatens.\n\n**Good to know** \u2014 pass the exchange-reported `liquidation_price`; there is no entry or leverage argument, so `position.entry_price` and `position.leverage` echo back as 0. Paths are cached upstream \u2014 `_metadata.cache_hit` and `notes` say whether this call generated fresh ones.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "liquidation_risk",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "current_price": 64000,
                  "direction": "long",
                  "liquidation_price": 58000,
                  "token_address": "bitcoin"
                },
                "toolName": "liquidation_risk"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiLiquidationRiskInput"
                  },
                  "toolName": {
                    "const": "liquidation_risk",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 184,
                        "isError": false,
                        "result": {
                          "_metadata": {
                            "cache_hit": false,
                            "request_time_ms": 159.64,
                            "token_address": "bitcoin"
                          },
                          "bankruptcyPrice": null,
                          "ci95": [
                            0.0,
                            0.0005989670023148763
                          ],
                          "drift": {
                            "method": "zero",
                            "per_sec": 0.0
                          },
                          "histogram": {
                            "bins": [
                              -0.040944115303401175,
                              -0.03930635069126513,
                              "...truncated 49 more"
                            ],
                            "counts": [
                              0.0,
                              0.0,
                              "...truncated 49 more"
                            ],
                            "kind": "terminal_log_return",
                            "normalized": true
                          },
                          "liquidationPrice": 58000.0,
                          "meta": {
                            "barIntervalSec": 3600,
                            "cached": false,
                            "dtSec": 300,
                            "horizonDays": 1.0,
                            "horizonSec": 86400,
                            "nPaths": 5000
                          },
                          "notes": [
                            "Generated and cached new paths"
                          ],
                          "parameters": {
                            "source": "exchange"
                          },
                          "position": {
                            "current_price": 64000.0,
                            "direction": "long",
                            "entry_price": 0,
                            "leverage": 0,
                            "price_distance_pct": 10.344827586206895
                          },
                          "riskLevel": "VERY_LOW",
                          "riskProbability": 0.0,
                          "sigmasAway": 9.428448957019555,
                          "status": "success",
                          "volatility": {
                            "daily": 0.0104407494023673,
                            "horizon": 0.0104407494023673,
                            "method": "garman_klass",
                            "per_sec": 3.552015078898374e-05,
                            "window_bars": 168
                          }
                        },
                        "toolName": "liquidation_risk"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "_metadata": {
                                  "properties": {
                                    "cache_hit": {
                                      "type": "boolean"
                                    },
                                    "request_time_ms": {
                                      "type": "number"
                                    },
                                    "token_address": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "bankruptcyPrice": {
                                  "type": "null"
                                },
                                "ci95": {
                                  "items": {
                                    "type": "number"
                                  },
                                  "type": "array"
                                },
                                "drift": {
                                  "properties": {
                                    "method": {
                                      "type": "string"
                                    },
                                    "per_sec": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                },
                                "histogram": {
                                  "properties": {
                                    "bins": {
                                      "items": {
                                        "type": "number"
                                      },
                                      "type": "array"
                                    },
                                    "counts": {
                                      "items": {
                                        "type": "number"
                                      },
                                      "type": "array"
                                    },
                                    "kind": {
                                      "type": "string"
                                    },
                                    "normalized": {
                                      "type": "boolean"
                                    }
                                  },
                                  "type": "object"
                                },
                                "liquidationPrice": {
                                  "type": "number"
                                },
                                "meta": {
                                  "properties": {
                                    "barIntervalSec": {
                                      "type": "integer"
                                    },
                                    "cached": {
                                      "type": "boolean"
                                    },
                                    "dtSec": {
                                      "type": "integer"
                                    },
                                    "horizonDays": {
                                      "type": "number"
                                    },
                                    "horizonSec": {
                                      "type": "integer"
                                    },
                                    "nPaths": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "notes": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "parameters": {
                                  "properties": {
                                    "source": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "position": {
                                  "properties": {
                                    "current_price": {
                                      "type": "number"
                                    },
                                    "direction": {
                                      "type": "string"
                                    },
                                    "entry_price": {
                                      "type": "integer"
                                    },
                                    "leverage": {
                                      "type": "integer"
                                    },
                                    "price_distance_pct": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                },
                                "riskLevel": {
                                  "type": "string"
                                },
                                "riskProbability": {
                                  "type": "number"
                                },
                                "sigmasAway": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "volatility": {
                                  "properties": {
                                    "daily": {
                                      "type": "number"
                                    },
                                    "horizon": {
                                      "type": "number"
                                    },
                                    "method": {
                                      "type": "string"
                                    },
                                    "per_sec": {
                                      "type": "number"
                                    },
                                    "window_bars": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Liquidation risk",
        "tags": [
          "Derivatives & positioning"
        ]
      }
    },
    "/api/agent-tools/call#market_session": {
      "post": {
        "description": "Tells you whether a venue's market is currently open, and what the local time is there for the user.\n\n**What you get** \u2014 a deterministic, locally computed answer to \"is this venue open right now\", with the timestamps to say it precisely:\n\n- `is_open`, `session`, `reason` \u2014 the verdict, its label (`continuous`, `regular`, `premarket`, `after_hours`, `closed`, `closed_weekend`, `closed_holiday`, `reference_required`) and a sentence you can quote.\n- `at_utc`, `current_source_time`, `current_local_time` \u2014 the evaluated instant in UTC, in the venue's own zone (`source_timezone`) and in your `display_timezone`.\n- `holiday`, `daily_close`, `candle_timezone`, `notes[]` \u2014 venue caveats worth repeating verbatim.\n- US equities adds `regular_session` (`open_source`/`close_source` plus local twins) and `next_regular_open_source`/`next_regular_open_local`.\n\nIn the example below `hyperliquid_perp` at 2026-08-18T02:21:35Z returns `is_open: true`, `session: \"continuous\"`.\n\n**When to use it** \u2014 stop a report from claiming \"the market opens today\" on a holiday, and decide whether a stale equity print is stale or simply outside hours.\n\n**Good to know** \u2014 venues and aliases: `hyperliquid_perp`/`hl_perp`, `us_equities`/`nyse`/`nasdaq`, `cme_comex_gold`/`cme_comex`/`comex_gold`/`gc`; anything else returns `status: \"error\"`, `code: \"unsupported_venue\"`. Equities are classified in America/New_York \u2014 premarket from 04:00, regular 09:30\u201316:00, after-hours to 20:00 \u2014 against a holiday table covering 2025 through 2030. COMEX gold deliberately answers `is_open: null` / `reference_required` rather than guessing settlement rules. `timezone` (IANA, default UTC) only changes display fields; `at`/`timestamp` evaluate a past instant.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "market_session",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "venue": "hyperliquid_perp"
                },
                "toolName": "market_session"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiMarketSessionInput"
                  },
                  "toolName": {
                    "const": "market_session",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 1,
                        "isError": false,
                        "result": {
                          "at_utc": "2026-08-18T06:04:23Z",
                          "candle_timezone": "UTC",
                          "current_local_time": "2026-08-18T06:04:23+00:00",
                          "current_source_time": "2026-08-18T06:04:23+00:00",
                          "daily_close": null,
                          "display_timezone": "UTC",
                          "holiday": null,
                          "is_open": true,
                          "notes": [
                            "Hyperliquid perps have no COMEX or NYSE daily venue close.",
                            "Candle closes depend on the requested timeframe and source candle timestamps."
                          ],
                          "reason": "Hyperliquid perpetual markets trade continuously.",
                          "session": "continuous",
                          "source_timezone": "UTC",
                          "status": "success",
                          "symbol": null,
                          "venue": "hyperliquid_perp"
                        },
                        "toolName": "market_session"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "at_utc": {
                                  "type": "string"
                                },
                                "candle_timezone": {
                                  "type": "string"
                                },
                                "current_local_time": {
                                  "type": "string"
                                },
                                "current_source_time": {
                                  "type": "string"
                                },
                                "daily_close": {
                                  "type": "null"
                                },
                                "display_timezone": {
                                  "type": "string"
                                },
                                "holiday": {
                                  "type": "null"
                                },
                                "is_open": {
                                  "type": "boolean"
                                },
                                "notes": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "reason": {
                                  "type": "string"
                                },
                                "session": {
                                  "type": "string"
                                },
                                "source_timezone": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "null"
                                },
                                "venue": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Market session status",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#market_whale_positions": {
      "post": {
        "description": "Lists the largest Hyperliquid positions currently held by large wallets ('whales'), sourced through TrueNorth's market-data gateway.\n\n**What you get** \u2014 a leaderboard of the largest open perp positions for one coin, ranked by notional:\n\n- `data.list[]` \u2014 per position: `address`, `baseCoin`, `side` (`Long`/`Short`), `size` (signed, in coins), `entryPx`, `price` (the mark used), `positionValue` and `maxPosition` (USD notional), `leverage`, `marginUsed` (USD), `liquidationPx`, `unrealizedPnl` (USD), `cumFunding` (USD booked over the position's life), `type` (`cross`/isolated).\n- Position history on the same row \u2014 `createdAt` / `ts`, `preSize` and `preNoticeSize` (prior size, size at last notice), `preChangeTime`, `firstGt1000`, `updateTs`; all epoch milliseconds.\n- `data.pagination` \u2014 `current`, `pageSize`, `total`.\n\nIn the example below the top BTC row is 1,800 coins short at $63,991 entry on 40x cross margin \u2014 $115.5M notional, $307,626 unrealized loss, liquidation at $64,855.\n\n**When to use it** \u2014 map the liquidation shelf above or below spot before a breakout, or watch `preSize` versus `size` to catch a whale cutting risk into strength.\n\n**Good to know** \u2014 `base_coin` defaults to `BTC` and `size` is clamped 1\u2013100 (default 50), so one call sees at most 100 of the `total` (296 here) rows. Ordering is by position value descending and is not caller-selectable. Rows are periodic snapshots; `updateTs` is the freshness stamp.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "market_whale_positions",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "market_whale_positions"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiMarketWhalePositionsInput"
                  },
                  "toolName": {
                    "const": "market_whale_positions",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 203,
                        "isError": false,
                        "result": {
                          "data": {
                            "list": [
                              {
                                "address": "0x8c96e5a2d770f9f2c9d2464ce4e741df0b2bca57",
                                "baseCoin": "BTC",
                                "createdAt": 1785864540000,
                                "cumFunding": -130215.287958,
                                "entryPx": 63991.0,
                                "firstGt1000": 1785970440000,
                                "follow": false,
                                "isAll": true,
                                "isShow": true,
                                "leverage": 40,
                                "liquidationPx": 64854.6575425652,
                                "marginUsed": 2888910.0,
                                "maxPosition": 116047800.0,
                                "positionValue": 115556400.0,
                                "preChangeTime": 1786947270058,
                                "preNoticeSize": 114370200.0,
                                "preSize": -1800.0,
                                "price": 64202.0,
                                "side": "Short",
                                "size": -1800.0,
                                "state": 1,
                                "ts": 1785864540000,
                                "type": "cross",
                                "unrealizedPnl": -372426.498063,
                                "updateTs": 1787032680000
                              },
                              {
                                "address": "0x92ea19eceb7a8de0f50978a1583a5d8b018050e9",
                                "baseCoin": "BTC",
                                "createdAt": 1779286740000,
                                "cumFunding": 1366315.701084,
                                "entryPx": 76117.3,
                                "firstGt1000": 1779286740000,
                                "follow": false,
                                "isAll": true,
                                "isShow": true,
                                "leverage": 5,
                                "liquidationPx": 19878.4591733737,
                                "marginUsed": 16285673.397774,
                                "maxPosition": 95685719.26254,
                                "positionValue": 81428366.98887,
                                "preChangeTime": 1779895350684,
                                "preNoticeSize": 95468833.99977,
                                "preSize": 1268.33487,
                                "price": 64211.7,
                                "side": "Long",
                                "size": 1268.33487,
                                "state": 1,
                                "ts": 1779286740000,
                                "type": "cross",
                                "unrealizedPnl": -15113927.44406,
                                "updateTs": 1787032680000
                              },
                              "...truncated 48 more"
                            ],
                            "pagination": {
                              "current": 1,
                              "pageSize": 50,
                              "total": 291
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "market_whale_positions"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "data": {
                                  "properties": {
                                    "list": {
                                      "items": {
                                        "properties": {
                                          "address": {
                                            "type": "string"
                                          },
                                          "baseCoin": {
                                            "type": "string"
                                          },
                                          "createdAt": {
                                            "type": "integer"
                                          },
                                          "cumFunding": {
                                            "type": "number"
                                          },
                                          "entryPx": {
                                            "type": "number"
                                          },
                                          "firstGt1000": {
                                            "type": "integer"
                                          },
                                          "follow": {
                                            "type": "boolean"
                                          },
                                          "isAll": {
                                            "type": "boolean"
                                          },
                                          "isShow": {
                                            "type": "boolean"
                                          },
                                          "leverage": {
                                            "type": "integer"
                                          },
                                          "liquidationPx": {
                                            "type": "number"
                                          },
                                          "marginUsed": {
                                            "type": "number"
                                          },
                                          "maxPosition": {
                                            "type": "number"
                                          },
                                          "positionValue": {
                                            "type": "number"
                                          },
                                          "preChangeTime": {
                                            "type": "integer"
                                          },
                                          "preNoticeSize": {
                                            "type": "number"
                                          },
                                          "preSize": {
                                            "type": "number"
                                          },
                                          "price": {
                                            "type": "number"
                                          },
                                          "side": {
                                            "type": "string"
                                          },
                                          "size": {
                                            "type": "number"
                                          },
                                          "state": {
                                            "type": "integer"
                                          },
                                          "ts": {
                                            "type": "integer"
                                          },
                                          "type": {
                                            "type": "string"
                                          },
                                          "unrealizedPnl": {
                                            "type": "number"
                                          },
                                          "updateTs": {
                                            "type": "integer"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "pagination": {
                                      "properties": {
                                        "current": {
                                          "type": "integer"
                                        },
                                        "pageSize": {
                                          "type": "integer"
                                        },
                                        "total": {
                                          "type": "integer"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Whale positions",
        "tags": [
          "Derivatives & positioning"
        ]
      }
    },
    "/api/agent-tools/call#mvrv": {
      "post": {
        "description": "Returns Bitcoin's MVRV Z-Score, a daily on-chain cycle-timing indicator. The same series behind the dashboard's MVRV Z-Score widget.\n\n**What you get** \u2014 the full daily Bitcoin MVRV Z-Score history in one payload:\n\n- `items[]` \u2014 per UTC day: `date` (unix ms at UTC midnight), `mvrvRatio` (market cap divided by realized cap), `marketCap` and `realizedCap` in USD, and `zScore`.\n- `meta.count`, `meta.latest`, `meta.dataFreshnessTs` \u2014 series length, the newest point, and when the series was last written (epoch ms).\n\nIn the example below the newest point carries `mvrvRatio` 1.1834 with `marketCap` \u2248 $1.283T against `realizedCap` \u2248 $1.084T and `zScore` 0.3263 \u2014 nothing like the `zScore` 11.64 the 2010 rows show.\n\n**When to use it** \u2014 place a BTC thesis in its cycle: extended valuations run high on `zScore`, while readings near zero sit close to the market's aggregate cost basis.\n\n**Good to know** \u2014 `limit` defaults to and caps at 10000 (newest N, ascending); the example returned 5835 daily points starting 2010-08-18. Nothing is synthesized: there is no gap-fill or carry-forward, and any metric \u2014 including `zScore` on the earliest rows \u2014 can legitimately be `null`, so guard before charting. An empty series is a valid state (`items: []`, `meta.latest: null`), not an error. Cached in-process for 300s; the source updates at most daily.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "mvrv",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "mvrv"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiMvrvInput"
                  },
                  "toolName": {
                    "const": "mvrv",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 323,
                        "isError": false,
                        "result": {
                          "items": [
                            {
                              "date": 1282089600000,
                              "marketCap": 262209.5,
                              "mvrvRatio": 1.333140370569158,
                              "realizedCap": 196685.5897463032,
                              "zScore": null
                            },
                            {
                              "date": 1282176000000,
                              "marketCap": 255170.00000000003,
                              "mvrvRatio": 1.2937318479487294,
                              "realizedCap": 197235.61756988795,
                              "zScore": 11.638836474234612
                            },
                            "...truncated 5833 more"
                          ],
                          "meta": {
                            "count": 5835,
                            "dataFreshnessTs": 1787024400307,
                            "latest": {
                              "date": 1786406400000,
                              "marketCap": 1282608330751.338,
                              "mvrvRatio": 1.183387043351774,
                              "realizedCap": 1083845169639.9633,
                              "zScore": 0.32633974213865347
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "mvrv"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "items": {
                                  "items": {
                                    "properties": {
                                      "date": {
                                        "type": "integer"
                                      },
                                      "marketCap": {
                                        "type": "number"
                                      },
                                      "mvrvRatio": {
                                        "type": "number"
                                      },
                                      "realizedCap": {
                                        "type": "number"
                                      },
                                      "zScore": {
                                        "type": "null"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "meta": {
                                  "properties": {
                                    "count": {
                                      "type": "integer"
                                    },
                                    "dataFreshnessTs": {
                                      "type": "integer"
                                    },
                                    "latest": {
                                      "properties": {
                                        "date": {
                                          "type": "integer"
                                        },
                                        "marketCap": {
                                          "type": "number"
                                        },
                                        "mvrvRatio": {
                                          "type": "number"
                                        },
                                        "realizedCap": {
                                          "type": "number"
                                        },
                                        "zScore": {
                                          "type": "number"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "MVRV Z-Score",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/agent-tools/call#options_report": {
      "post": {
        "description": "Builds a full options-market picture for a token: max pain, gamma exposure, implied volatility, skew, and notable block trades.\n\n**What you get** \u2014 the options surface for one major crypto underlying, anchored on the most active expiry:\n\n- `spot` \u2014 the underlying price the whole report is built on ($64,033 in the example below), with `currency` / `market` as the resolved options underlying (`BTC`).\n- `top_expiry` and `expiry_datetime_utc` \u2014 the anchor expiry as an exchange code (`25DEC26`) and an ISO-8601 instant, plus `days_to_expiry` (128).\n- `atm_iv` \u2014 at-the-money implied volatility in percent for that expiry (38.2 = 38.2%).\n- `exchange_id` / `exchange_name` \u2014 the options venue the surface was read from.\n- `status` (`\"ok\"` on success) and `fallback_notice`, non-null when the anchor expiry had to be substituted.\n\n**When to use it** \u2014 check whether an options-implied move is rich or cheap against your own realized-vol estimate, or pick the expiry with real liquidity before quoting a structure.\n\n**Good to know** \u2014 coverage is limited to `bitcoin`, `ethereum`, `solana`, `ripple`, `tron` and `avalanche-2`; pass the canonical id, not the symbol, or you get `status:\"error\"` with the supported list. The contract also promises max-pain, greek-exposure, skew and block-trade sections beyond the keys above, and the captured example truncates six further keys \u2014 confirm their names against a live call. Unsupported underlyings fail fast rather than substituting a neighbouring asset.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "options_report",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "options_report"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiOptionsReportInput"
                  },
                  "toolName": {
                    "const": "options_report",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 34,
                        "isError": false,
                        "result": {
                          "...": "6 more field(s) omitted from this documentation example",
                          "atm_iv": 38.3,
                          "currency": "BTC",
                          "days_to_expiry": 128,
                          "exchange_id": "derive",
                          "exchange_name": "Derive",
                          "expiry_datetime_utc": "2026-12-25T00:00:00+00:00",
                          "fallback_notice": null,
                          "market": "BTC",
                          "requested_token": null,
                          "spot": 64136.0,
                          "status": "ok",
                          "top_expiry": "25DEC26"
                        },
                        "toolName": "options_report"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "...": {
                                  "type": "string"
                                },
                                "atm_iv": {
                                  "type": "number"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "days_to_expiry": {
                                  "type": "integer"
                                },
                                "exchange_id": {
                                  "type": "string"
                                },
                                "exchange_name": {
                                  "type": "string"
                                },
                                "expiry_datetime_utc": {
                                  "type": "string"
                                },
                                "fallback_notice": {
                                  "type": "null"
                                },
                                "market": {
                                  "type": "string"
                                },
                                "requested_token": {
                                  "type": "null"
                                },
                                "spot": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "top_expiry": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Options report",
        "tags": [
          "Derivatives & positioning"
        ]
      }
    },
    "/api/agent-tools/call#performance_scanner": {
      "post": {
        "description": "Ranks a universe of tokens by relative strength against a benchmark and flags standouts from STRONG_BUY to UNDERPERFORMING.\n\n**What you get** \u2014 a ranked relative-strength leaderboard for a token universe, measured against one benchmark:\n\n- `leaderboard[]` \u2014 per row: `rank`, `token`, `name`, `ticker`, `price`, `momentum_1d` / `momentum_7d` (percent), `rs_vs_benchmark` (percent outperformance), `drawdown` (percent), `is_outlier`, `signal`, and a plain-English `reason`. In the example below rank 1 `world-liberty-financial` is +10.43% over 7 days against the benchmark's +0.94%, giving `rs_vs_benchmark` 9.49 and signal `BUY`.\n- `data_source_exchange_id` \u2014 the venue whose candles produced that row's numbers \u2014 and `best_tradable_exchange_id`, resolved separately as the chart/trade venue.\n- `benchmark` \u2014 `address`, `name`, `ticker`, and `data` with `price`, `momentum_7d`, `drawdown`.\n- `signal_counts` and `signals` \u2014 bucket totals (`STRONG_BUY` 0, `BUY` 5, `HOLD` 6, `WEAK` 11, `UNDERPERFORMING` 7) and the token ids in each bucket.\n\n**When to use it** \u2014 run the daily \"what's leading, what's lagging\" rotation scan, or narrow a universe to relative-strength leaders before a deeper per-name study.\n\n**Good to know** \u2014 the benchmark is fixed by universe, not chosen by the caller: BTC for both crypto universes, an S&P 500 ETF for the tokenized-stock and `us_equities_sp500` universes, and USDC for commodity. Defaults are the volume-and-market-cap crypto universe at `universe_size=30`, `top_n=29`, `lookback_days=7`; accepted ranges are 1-200, 1-100, and 1-30. Scans are heavy \u2014 the example took 12.4s (`metadata.execution_time_sec`). A failed venue lookup leaves `best_tradable_exchange_id` null instead of failing the scan.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "performance_scanner",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "performance_scanner"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiPerformanceScannerInput"
                  },
                  "toolName": {
                    "const": "performance_scanner",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 2844,
                        "isError": false,
                        "result": {
                          "benchmark": {
                            "address": "bitcoin",
                            "data": {
                              "drawdown": -0.5085744410332744,
                              "momentum_7d": 0.9534298300818124,
                              "price": 64166.0
                            },
                            "data_source_exchange_id": "hyperliquid_perp",
                            "exchange_id": "hyperliquid_perp",
                            "name": "BITCOIN",
                            "ticker": "BTCUSDT"
                          },
                          "leaderboard": [
                            {
                              "best_tradable_exchange_id": "hyperliquid_perp",
                              "data_source_exchange_id": "hyperliquid_perp",
                              "drawdown": -0.7220277366365877,
                              "exchange_id": "hyperliquid_perp",
                              "is_outlier": false,
                              "momentum_1d": -0.7220277366365877,
                              "momentum_7d": 8.292638149440064,
                              "name": "hyperliquid",
                              "price": 58.987,
                              "rank": 1,
                              "reason": "Strongly outperforming benchmark by 7.3%",
                              "rs_vs_benchmark": 7.339208319358252,
                              "signal": "BUY",
                              "ticker": "HYPEUSDT",
                              "token": "hyperliquid"
                            },
                            {
                              "best_tradable_exchange_id": "hyperliquid_perp",
                              "data_source_exchange_id": "hyperliquid_perp",
                              "drawdown": -1.2088868385459757,
                              "exchange_id": "hyperliquid_perp",
                              "is_outlier": false,
                              "momentum_1d": -1.2088868385459757,
                              "momentum_7d": 7.353309786943152,
                              "name": "chainlink",
                              "price": 9.4224,
                              "rank": 2,
                              "reason": "Strongly outperforming benchmark by 6.4%",
                              "rs_vs_benchmark": 6.39987995686134,
                              "signal": "BUY",
                              "ticker": "LINKUSDT",
                              "token": "chainlink"
                            },
                            "...truncated 27 more"
                          ],
                          "metadata": {
                            "calc_time": 0.0005826950073242188,
                            "effective_arguments": {
                              "benchmark": "bitcoin",
                              "lookback_days": 7,
                              "token_universe": "crypto_top_by_volume_and_market_cap",
                              "top_n": 29,
                              "universe_size": 30
                            },
                            "execution_time_sec": 0.5156822204589844,
                            "fetch_time": 0.27145862579345703,
                            "lookback_days": 7,
                            "pairs_load_time": 0.018056154251098633,
                            "request_fingerprint": "2959d3dd2ad65e9db62bdf22452558dc35d66190270770811f1d113933126ebb",
                            "scan_time": 0.5156822204589844,
                            "tokens_returned": 29,
                            "tokens_scanned": 29,
                            "total_tokens": 29
                          },
                          "signal_counts": {
                            "BUY": 2,
                            "HOLD": 9,
                            "STRONG_BUY": 0,
                            "UNDERPERFORMING": 11,
                            "WEAK": 7
                          },
                          "signals": {
                            "buy": [
                              "hyperliquid",
                              "chainlink"
                            ],
                            "hold": [
                              "polygon-ecosystem-token",
                              "zcash",
                              "...truncated 7 more"
                            ],
                            "strong_buy": [],
                            "underperforming": [
                              "stellar",
                              "bittensor",
                              "...truncated 9 more"
                            ],
                            "weak": [
                              "solana",
                              "tron",
                              "...truncated 5 more"
                            ]
                          },
                          "summary": "Weak market with 18 tokens underperforming. Leading performers: hyperliquid (+8.3%), chainlink (+7.4%). vs BITCOIN benchmark.",
                          "tool_name": "performance_scanner"
                        },
                        "toolName": "performance_scanner"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "benchmark": {
                                  "properties": {
                                    "address": {
                                      "type": "string"
                                    },
                                    "data": {
                                      "properties": {
                                        "drawdown": {
                                          "type": "number"
                                        },
                                        "momentum_7d": {
                                          "type": "number"
                                        },
                                        "price": {
                                          "type": "number"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "data_source_exchange_id": {
                                      "type": "string"
                                    },
                                    "exchange_id": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "ticker": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "leaderboard": {
                                  "items": {
                                    "properties": {
                                      "best_tradable_exchange_id": {
                                        "type": "string"
                                      },
                                      "data_source_exchange_id": {
                                        "type": "string"
                                      },
                                      "drawdown": {
                                        "type": "number"
                                      },
                                      "exchange_id": {
                                        "type": "string"
                                      },
                                      "is_outlier": {
                                        "type": "boolean"
                                      },
                                      "momentum_1d": {
                                        "type": "number"
                                      },
                                      "momentum_7d": {
                                        "type": "number"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "price": {
                                        "type": "number"
                                      },
                                      "rank": {
                                        "type": "integer"
                                      },
                                      "reason": {
                                        "type": "string"
                                      },
                                      "rs_vs_benchmark": {
                                        "type": "number"
                                      },
                                      "signal": {
                                        "enum": [
                                          "STRONG_BUY",
                                          "BUY",
                                          "HOLD",
                                          "WEAK",
                                          "UNDERPERFORMING"
                                        ],
                                        "type": "string"
                                      },
                                      "ticker": {
                                        "type": "string"
                                      },
                                      "token": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "metadata": {
                                  "properties": {
                                    "calc_time": {
                                      "type": "number"
                                    },
                                    "effective_arguments": {
                                      "properties": {
                                        "benchmark": {
                                          "type": "string"
                                        },
                                        "lookback_days": {
                                          "type": "integer"
                                        },
                                        "token_universe": {
                                          "type": "string"
                                        },
                                        "top_n": {
                                          "type": "integer"
                                        },
                                        "universe_size": {
                                          "type": "integer"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "execution_time_sec": {
                                      "type": "number"
                                    },
                                    "fetch_time": {
                                      "type": "number"
                                    },
                                    "lookback_days": {
                                      "type": "integer"
                                    },
                                    "pairs_load_time": {
                                      "type": "number"
                                    },
                                    "request_fingerprint": {
                                      "type": "string"
                                    },
                                    "scan_time": {
                                      "type": "number"
                                    },
                                    "tokens_returned": {
                                      "type": "integer"
                                    },
                                    "tokens_scanned": {
                                      "type": "integer"
                                    },
                                    "total_tokens": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "signal_counts": {
                                  "properties": {
                                    "BUY": {
                                      "type": "integer"
                                    },
                                    "HOLD": {
                                      "type": "integer"
                                    },
                                    "STRONG_BUY": {
                                      "type": "integer"
                                    },
                                    "UNDERPERFORMING": {
                                      "type": "integer"
                                    },
                                    "WEAK": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                },
                                "signals": {
                                  "properties": {
                                    "buy": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "hold": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "strong_buy": {
                                      "type": "array"
                                    },
                                    "underperforming": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "weak": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    }
                                  },
                                  "type": "object"
                                },
                                "summary": {
                                  "type": "string"
                                },
                                "tool_name": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Performance scanner",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#polymarket_insight": {
      "post": {
        "description": "Looks up live odds from prediction markets.\n\n**What you get** \u2014 live prediction-market odds for crypto price ladders, macro, or regulatory questions, returned as event objects with their tradable legs:\n\n- `markets.events[]` \u2014 per event: `title`, `slug`, `ticker`, `id`, `description`, `startDate` / `endDate`, `closed` / `active` / `archived`, `volume` plus rolling `volume1wk` / `volume1mo` / `volume1yr` (USD), and `tags[]`.\n- `events[].markets[]` \u2014 the binary legs: `question`, `outcomes` (a JSON-encoded string like `\"[\\\"Yes\\\", \\\"No\\\"]\"`) and `outcomePrices`, positionally aligned, as **0\u20131 decimal probabilities, also JSON-encoded strings** \u2014 in the example below \"Bitcoin above $70,000 on April 5?\" carries `[\"0\", \"1\"]`, i.e. Yes at 0% against $71,406.88 of `volumeNum`.\n- Trading constraints per leg \u2014 `orderMinSize` (5), `orderPriceMinTickSize` (0.001), `conditionId`, `endDate`.\n\n**When to use it** \u2014 read the crowd's probability of a price level before an event window, or compare a macro market's implied odds against what rates or funding price.\n\n**Good to know** \u2014 `outcomePrices` needs a `json.loads` first, and it is a 0\u20131 price, not a percent. `query_type=\"crypto_price\"` requires `token` and resolves the current-and-next-month price ladder by slug, then falls back to a keyword search filtered on titles naming the token \u2014 that fallback can return already-resolved events, as the captured 2024 market shows, so check `closed` and `endDate` before quoting odds. `limit` is 1\u201310 (default 5); `event_slug` fetches one event.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "polymarket_insight",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "limit": 10,
                  "query_type": "crypto_price",
                  "search_terms": "bitcoin"
                },
                "toolName": "polymarket_insight"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiPolymarketInsightInput"
                  },
                  "toolName": {
                    "const": "polymarket_insight",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-19 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 80,
                        "isError": false,
                        "result": {
                          "markets": {
                            "events": [
                              {
                                "...": "22 more field(s) omitted from this documentation example",
                                "active": true,
                                "archived": false,
                                "closed": true,
                                "createdAt": "2026-02-16T17:00:09.666647Z",
                                "creationDate": "2026-02-16T17:05:32.538689Z",
                                "description": "This market will resolve to \"Yes\" if the Binance 1 minute ca...truncated 613 chars",
                                "endDate": "2026-02-23T17:00:00Z",
                                "featured": false,
                                "icon": "https://the prediction-market venue-upload.s3.us-east-2.amazonaws.com/BTC+ful...truncated 9 chars",
                                "id": "211888",
                                "image": "https://the prediction-market venue-upload.s3.us-east-2.amazonaws.com/BTC+ful...truncated 9 chars",
                                "new": false,
                                "openInterest": 0,
                                "restricted": true,
                                "slug": "bitcoin-above-on-february-23",
                                "startDate": "2026-02-16T17:05:32.538703Z",
                                "ticker": "bitcoin-above-on-february-23",
                                "title": "Bitcoin above ___ on February 23?",
                                "updatedAt": "2026-02-25T00:29:11.306307Z",
                                "volume": 5476990.364345
                              },
                              "...truncated 9 more"
                            ],
                            "pagination": {
                              "hasMore": true,
                              "totalResults": 117742
                            }
                          },
                          "status": "success"
                        },
                        "toolName": "polymarket_insight"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "markets": {
                                  "properties": {
                                    "events": {
                                      "items": {
                                        "properties": {
                                          "...": {
                                            "type": "string"
                                          },
                                          "active": {
                                            "type": "boolean"
                                          },
                                          "archived": {
                                            "type": "boolean"
                                          },
                                          "closed": {
                                            "type": "boolean"
                                          },
                                          "createdAt": {
                                            "type": "string"
                                          },
                                          "creationDate": {
                                            "type": "string"
                                          },
                                          "description": {
                                            "type": "string"
                                          },
                                          "endDate": {
                                            "type": "string"
                                          },
                                          "featured": {
                                            "type": "boolean"
                                          },
                                          "icon": {
                                            "type": "string"
                                          },
                                          "id": {
                                            "type": "string"
                                          },
                                          "image": {
                                            "type": "string"
                                          },
                                          "new": {
                                            "type": "boolean"
                                          },
                                          "openInterest": {
                                            "type": "integer"
                                          },
                                          "restricted": {
                                            "type": "boolean"
                                          },
                                          "slug": {
                                            "type": "string"
                                          },
                                          "startDate": {
                                            "type": "string"
                                          },
                                          "ticker": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "updatedAt": {
                                            "type": "string"
                                          },
                                          "volume": {
                                            "type": "number"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "pagination": {
                                      "properties": {
                                        "hasMore": {
                                          "type": "boolean"
                                        },
                                        "totalResults": {
                                          "type": "integer"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Prediction-market odds",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/agent-tools/call#resolve_asset": {
      "post": {
        "description": "Turns a free-text ticker or name into the canonical token address and best exchange to trade it on, across crypto, stocks, and more.\n\n**What you get** \u2014 one canonical identity for a ticker, symbol, or name, plus the exact pair records needed to open it:\n\n- `token_address` \u2014 the canonical id every other market tool accepts; in the example below `BTC` resolves to `bitcoin`, never a same-named stock synthetic.\n- `best_exchange` \u2014 the venue to chart or trade on (`hyperliquid_perp` here), which is not necessarily the native listing venue.\n- `exchange_pairs[]` \u2014 `{exchange_id, exchange_pair_id, display_pair_id}` per venue, e.g. `hyperliquid_perp` / `BTC` / `BTC-USDC` and `binance_futures` / `BTCUSDT` / `BTC-USDT`; the example returns 10 of them.\n- `asset_class` (`crypto`, `stock`, `stock_perp`, `etf`), `display_symbol`, `display_name`.\n- `matched_via` \u2014 how the match was made (`crypto_alias`) \u2014 and `confidence` (`high`; falls back to `medium` when unstated).\n- `status` \u2014 `resolved`, `none`, or `error`; `query` echoes your input.\n\n**When to use it** \u2014 normalize free-text input (\"btc\", \"SPCX\") before any price, candle, or watcher call, and copy the matching `exchange_pairs` record straight into a chart request rather than guessing a pair spelling.\n\n**Good to know** \u2014 when the resolved asset has a perpetual listing on `hyperliquid_perp`, that venue overrides the native listing venue (e.g. a stock synthetic's NASDAQ). The `asset_class` argument is a filter hint only: it never selects a second resolver or synthesizes another identity, and a class mismatch returns `status: \"none\"` with an explanatory `message` instead of an error. A `none` means \"no canonical tradable asset for this symbol\" \u2014 not \"no market data\".\n\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "resolve_asset",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "query": "BTC"
                },
                "toolName": "resolve_asset"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiResolveAssetInput"
                  },
                  "toolName": {
                    "const": "resolve_asset",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 51,
                        "isError": false,
                        "result": {
                          "asset_class": "crypto",
                          "best_exchange": "hyperliquid_perp",
                          "confidence": "high",
                          "display_name": "Bitcoin",
                          "display_symbol": "BTC",
                          "exchange_pairs": [
                            {
                              "display_pair_id": "BTC-USDC",
                              "exchange_id": "hyperliquid_perp",
                              "exchange_pair_id": "BTC"
                            },
                            {
                              "display_pair_id": "BTC-USDT",
                              "exchange_id": "binance_futures",
                              "exchange_pair_id": "BTCUSDT"
                            },
                            "...truncated 8 more"
                          ],
                          "matched_via": "crypto_alias",
                          "query": "BTC",
                          "status": "resolved",
                          "token_address": "bitcoin",
                          "tool": "resolve_asset"
                        },
                        "toolName": "resolve_asset"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "asset_class": {
                                  "type": "string"
                                },
                                "best_exchange": {
                                  "type": "string"
                                },
                                "confidence": {
                                  "type": "string"
                                },
                                "display_name": {
                                  "type": "string"
                                },
                                "display_symbol": {
                                  "type": "string"
                                },
                                "exchange_pairs": {
                                  "items": {
                                    "properties": {
                                      "display_pair_id": {
                                        "type": "string"
                                      },
                                      "exchange_id": {
                                        "type": "string"
                                      },
                                      "exchange_pair_id": {
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "matched_via": {
                                  "type": "string"
                                },
                                "query": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "token_address": {
                                  "type": "string"
                                },
                                "tool": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Resolve asset",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#technical_analysis": {
      "post": {
        "description": "Runs standard technical indicators (RSI, MACD, support/resistance) on a token and explains what they mean.\n\n**What you get** \u2014 a computed indicator snapshot for one token, one venue, one timeframe, with every support/resistance level exposed as an individually citable candidate:\n\n- `technical_indicators` \u2014 keyed by indicator: `rsi14`, `macd_12_26_9`, `boll_20_2`, `adx14`, `atr14`, `cci20`, `kdj_14_3_3`, `stoch_k_14_3_3`, `sma10` / `sma20` / `sma50`, and `volume`.\n- `support_resistance` \u2014 `pivot`, `recent_high_low`, `vwap`, and a `support and resistance channel` block (that key really does contain spaces).\n- `market_structure` \u2014 `referencePrice`, `asOf`, `exchangeId`, `timeframe`, plus `candidates[]` where each level carries a snapshot-local `selectionId` (`S1`, `R1`, \u2026), `role`, `price`, `label`, and the `sources` that evidenced it, alongside `candidateMetrics`. The example below yields 23 candidates around a reference price of 64,088.9 as of `2026-08-18T03:00:00Z` on `binance_futures`, 1h.\n- `exchange_id` / `requested_exchange_id` \u2014 venue actually used versus asked for.\n\n**When to use it** \u2014 let an agent cite one specific level by `selectionId` instead of inventing a round number, or gate a setup on RSI/MACD state at a fixed timeframe.\n\n**Good to know** \u2014 `timeframe` must be `5m`, `15m`, `1h`, `4h`, or `1d`; anything else returns a structured error (unlike the candle tool, which falls back). A mismatch between the venue you requested and the venue that backed the numbers is an error, never a silent substitution. When a venue has no candles at that timeframe, `technical_indicators` comes back empty and `coverage` is set to `empty_timeframe`. `chart_patterns` is always an empty list here \u2014 use a candle tool for bars.\n\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "technical_analysis",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "technical_analysis"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiTechnicalAnalysisInput"
                  },
                  "toolName": {
                    "const": "technical_analysis",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 313,
                        "isError": false,
                        "result": {
                          "agent": "technical_analysis",
                          "chart_patterns": [],
                          "exchange_id": "binance_futures",
                          "market_structure": {
                            "asOf": "2026-08-18T06:00:00Z",
                            "candidateMetrics": {
                              "...": "22 more field(s) omitted from this documentation example"
                            },
                            "candidates": [
                              "...truncated (depth limit, 22 items)"
                            ],
                            "error": null,
                            "exchangeId": "binance_futures",
                            "referencePrice": 64157.8,
                            "status": "success",
                            "timeframe": "1h",
                            "tokenAddress": "bitcoin"
                          },
                          "requested_exchange_id": null,
                          "status": "success",
                          "support_resistance": {
                            "pivot": null,
                            "recent_high_low": {
                              "...": "1 more field(s) omitted from this documentation example"
                            },
                            "support and resistance channel": {
                              "...": "2 more field(s) omitted from this documentation example"
                            },
                            "vwap": {
                              "...": "5 more field(s) omitted from this documentation example"
                            }
                          },
                          "technical_indicators": {
                            "...": "1 more field(s) omitted from this documentation example",
                            "adx14": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "atr14": {
                              "...": "4 more field(s) omitted from this documentation example"
                            },
                            "boll_20_2": {
                              "...": "7 more field(s) omitted from this documentation example"
                            },
                            "cci20": {
                              "...": "2 more field(s) omitted from this documentation example"
                            },
                            "kdj_14_3_3": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "macd_12_26_9": {
                              "...": "5 more field(s) omitted from this documentation example"
                            },
                            "rsi14": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma10": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma20": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "sma50": {
                              "...": "3 more field(s) omitted from this documentation example"
                            },
                            "stoch_k_14_3_3": {
                              "...": "4 more field(s) omitted from this documentation example"
                            },
                            "volume": {
                              "...": "5 more field(s) omitted from this documentation example"
                            }
                          },
                          "title": "the data provider Bitcoin Price Chart",
                          "token_metadata": {
                            "data": {
                              "...": "9 more field(s) omitted from this documentation example"
                            },
                            "elapsed_time": "0.294s",
                            "token_info": {
                              "...": "2 more field(s) omitted from this documentation example"
                            }
                          },
                          "url": "https://www.the data provider.com/en/coins/bitco...truncated 2 chars"
                        },
                        "toolName": "technical_analysis"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "agent": {
                                  "type": "string"
                                },
                                "chart_patterns": {
                                  "type": "array"
                                },
                                "exchange_id": {
                                  "type": "string"
                                },
                                "market_structure": {
                                  "properties": {
                                    "asOf": {
                                      "type": "string"
                                    },
                                    "candidateMetrics": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "candidates": {
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "error": {
                                      "type": "null"
                                    },
                                    "exchangeId": {
                                      "type": "string"
                                    },
                                    "referencePrice": {
                                      "type": "number"
                                    },
                                    "status": {
                                      "type": "string"
                                    },
                                    "timeframe": {
                                      "type": "string"
                                    },
                                    "tokenAddress": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "requested_exchange_id": {
                                  "type": "null"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "support_resistance": {
                                  "properties": {
                                    "pivot": {
                                      "type": "null"
                                    },
                                    "recent_high_low": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "support and resistance channel": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "vwap": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "technical_indicators": {
                                  "properties": {
                                    "...": {
                                      "type": "string"
                                    },
                                    "adx14": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "atr14": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "boll_20_2": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "cci20": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "kdj_14_3_3": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "macd_12_26_9": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "rsi14": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "sma10": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "sma20": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "sma50": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "stoch_k_14_3_3": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "volume": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "token_metadata": {
                                  "properties": {
                                    "data": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "elapsed_time": {
                                      "type": "string"
                                    },
                                    "token_info": {
                                      "properties": {
                                        "...": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "type": "object"
                                },
                                "url": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Technical analysis",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#trending_discovery": {
      "post": {
        "description": "Surfaces trending crypto tokens, mapped to a tradable exchange.\n\n**What you get** \u2014 the crypto names currently trending, each with price, valuation, and artwork:\n\n- `trending.coins[]` \u2014 every element wraps its payload in an `item` object, so read `coins[i].item`.\n- `item.id` / `slug` / `symbol` / `name` / `market_cap_rank` \u2014 identity. In the example below the top entry is Hyperliquid (`HYPE`, id `hyperliquid`) at rank 10.\n- `item.data.price` \u2014 USD price as a number (59.2990\u2026), while `item.data.market_cap` and `total_volume` are preformatted display strings (`\"$13,180,225,271\"` and `\"$263,390,051\"`).\n- `item.data.market_cap_btc`, `total_volume_btc`, and `item.price_btc` \u2014 the same figures denominated in BTC (0.00092557 BTC per HYPE).\n- `item.data.price_change_percentage_24h` \u2014 a map of 24h percent change keyed by currency (63 denominations in the example).\n- `item.thumb` / `small` / `large` and `item.data.sparkline` \u2014 logo and sparkline image URLs.\n\n**When to use it** \u2014 seed a \"what's hot right now\" panel or discovery feed, or generate a candidate list that a scanner then prices and ranks properly.\n\n**Good to know** \u2014 crypto only, and the ordering is an externally curated attention list, not a computed momentum score \u2014 treat it as interest, not signal. `limit` is clamped to 5\u201315 (default 10). `include_categories` adds a `trending.categories` array. There is no venue or pair mapping in the payload; resolve each `id` before charting it. Values under `item.data` are display-formatted, so strip currency symbols and separators before doing arithmetic. On failure the call returns `status: \"error\"` rather than a partial list.\n\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "trending_discovery",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {},
                "toolName": "trending_discovery"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiTrendingDiscoveryInput"
                  },
                  "toolName": {
                    "const": "trending_discovery",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 91,
                        "isError": false,
                        "result": {
                          "status": "success",
                          "trending": {
                            "coins": [
                              {
                                "item": {
                                  "coin_id": 52622,
                                  "data": {
                                    "content": {
                                      "...": "2 more field(s) omitted from this documentation example"
                                    },
                                    "market_cap": "$373,751,017",
                                    "market_cap_btc": "5820.279079781759",
                                    "price": 0.005945780357251436,
                                    "price_btc": "0.00000009259170959628049",
                                    "price_change_percentage_24h": {
                                      "...": "63 more field(s) omitted from this documentation example"
                                    },
                                    "sparkline": "https://data.the data provider.com/coins/52622/sparkline.svg",
                                    "total_volume": "$32,480,629",
                                    "total_volume_btc": "505.809905880079"
                                  },
                                  "id": "pudgy-penguins",
                                  "large": "https://coin-images.the data provider.com/coins/images/52622/large/PUDGY_PENGUINS_PENGU_PFP.png?1733809110",
                                  "market_cap_rank": 112,
                                  "name": "Pudgy Penguins",
                                  "price_btc": 9.259170959628049e-08,
                                  "score": 0,
                                  "slug": "pudgy-penguins",
                                  "small": "https://coin-images.the data provider.com/coins/images/52622/small/PUDGY_PENGUINS_PENGU_PFP.png?1733809110",
                                  "symbol": "PENGU",
                                  "thumb": "https://coin-images.the data provider.com/coins/images/52622/standard/PUDGY_PENGUINS_PENGU_PFP.png?173380911...truncated 1 chars"
                                }
                              },
                              "...truncated 9 more"
                            ]
                          }
                        },
                        "toolName": "trending_discovery"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "status": {
                                  "type": "string"
                                },
                                "trending": {
                                  "properties": {
                                    "coins": {
                                      "items": {
                                        "properties": {
                                          "item": {
                                            "properties": {
                                              "coin_id": {
                                                "type": "integer"
                                              },
                                              "data": {
                                                "properties": {
                                                  "content": {
                                                    "properties": {
                                                      "...": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "type": "object"
                                                  },
                                                  "market_cap": {
                                                    "type": "string"
                                                  },
                                                  "market_cap_btc": {
                                                    "type": "string"
                                                  },
                                                  "price": {
                                                    "type": "number"
                                                  },
                                                  "price_btc": {
                                                    "type": "string"
                                                  },
                                                  "price_change_percentage_24h": {
                                                    "properties": {
                                                      "...": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "type": "object"
                                                  },
                                                  "sparkline": {
                                                    "type": "string"
                                                  },
                                                  "total_volume": {
                                                    "type": "string"
                                                  },
                                                  "total_volume_btc": {
                                                    "type": "string"
                                                  }
                                                },
                                                "type": "object"
                                              },
                                              "id": {
                                                "type": "string"
                                              },
                                              "large": {
                                                "type": "string"
                                              },
                                              "market_cap_rank": {
                                                "type": "integer"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "price_btc": {
                                                "type": "number"
                                              },
                                              "score": {
                                                "type": "integer"
                                              },
                                              "slug": {
                                                "type": "string"
                                              },
                                              "small": {
                                                "type": "string"
                                              },
                                              "symbol": {
                                                "type": "string"
                                              },
                                              "thumb": {
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Trending discovery",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/agent-tools/call#venue_costs": {
      "post": {
        "description": "Looks up the latest fee, slippage, and funding-cadence config for one instrument on one venue.\n\n**What you get** \u2014 the cost model for trading one instrument on one venue, the numbers a backtest or execution-quality comparison needs:\n\n- `maker_bps` / `taker_bps` \u2014 the venue's fee per side, in basis points (10.0 bps = 0.10% of notional). In the example below, a $10,000 BTC spot market order on this venue pays $10 in taker fees.\n- `slippage_bps_base` + `slippage_size_curve` \u2014 expected slippage: the base cost for a small order, then a curve keyed by order size in USD (`{\"1000\": \"0.5\", \"10000\": \"1.5\", \"100000\": \"5.0\"}` reads: a $100k order expects ~5 bps of slippage).\n- `funding_interval_hours` \u2014 how often perp funding is charged (8h on most venues; `0`/`null` for spot, which has no funding).\n- `min_notional_usd` and `tick_size` \u2014 the venue's smallest allowed order and price increment.\n- `meta.source` \u2014 `\"default\"` means the curated baseline config; live-derived values carry their own source tag.\n\n**When to use it** \u2014 make a strategy's PnL honest before comparing venues: apply these fees and slippage to every simulated fill, or rank venues for the same instrument by all-in round-trip cost (fee + expected slippage at your size + funding drag for held perps).\n\n**Good to know** \u2014 values are strings to preserve exact decimals; convert with care. Coverage spans crypto, stock, and commodity instruments across the supported venues; unknown venue/instrument pairs return the conservative default profile rather than an error.\n\nCalls `POST /api/agent-tools/call` with the request body below.",
        "operationId": "venue_costs",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "arguments": {
                  "instrument": "BTC"
                },
                "toolName": "venue_costs"
              },
              "schema": {
                "properties": {
                  "arguments": {
                    "$ref": "#/components/schemas/TnapiVenueCostsInput"
                  },
                  "toolName": {
                    "const": "venue_costs",
                    "type": "string"
                  }
                },
                "required": [
                  "toolName",
                  "arguments"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "durationMs": 0,
                        "isError": false,
                        "result": {
                          "data": {
                            "asset_class": "crypto",
                            "funding_interval_hours": 0,
                            "instrument": "BTC",
                            "instrument_type": "spot",
                            "maker_bps": "10.0",
                            "min_notional_usd": "5",
                            "slippage_bps_base": "1.5",
                            "slippage_size_curve": {
                              "1000": "0.5",
                              "10000": "1.5",
                              "100000": "5.0"
                            },
                            "taker_bps": "10.0",
                            "tick_size": null,
                            "venue": "binance"
                          },
                          "meta": {
                            "as_of": "2026-08-18T06:04:51.137447Z",
                            "schema_version": 1,
                            "source": "default"
                          },
                          "status": "success"
                        },
                        "toolName": "venue_costs"
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "durationMs": {
                              "type": "integer"
                            },
                            "isError": {
                              "type": "boolean"
                            },
                            "result": {
                              "properties": {
                                "data": {
                                  "properties": {
                                    "asset_class": {
                                      "type": "string"
                                    },
                                    "funding_interval_hours": {
                                      "type": "integer"
                                    },
                                    "instrument": {
                                      "type": "string"
                                    },
                                    "instrument_type": {
                                      "type": "string"
                                    },
                                    "maker_bps": {
                                      "type": "string"
                                    },
                                    "min_notional_usd": {
                                      "type": "string"
                                    },
                                    "slippage_bps_base": {
                                      "type": "string"
                                    },
                                    "slippage_size_curve": {
                                      "properties": {
                                        "1000": {
                                          "type": "string"
                                        },
                                        "10000": {
                                          "type": "string"
                                        },
                                        "100000": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "taker_bps": {
                                      "type": "string"
                                    },
                                    "tick_size": {
                                      "type": "null"
                                    },
                                    "venue": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "meta": {
                                  "properties": {
                                    "as_of": {
                                      "type": "string"
                                    },
                                    "schema_version": {
                                      "type": "integer"
                                    },
                                    "source": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "status": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "toolName": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Venue trading costs",
        "tags": [
          "Crypto market data & TA"
        ]
      }
    },
    "/api/coinbase-premium": {
      "get": {
        "description": "The plain-REST twin of the coinbase_premium tool \u2014 same Coinbase-vs-Binance BTC gap series.\n**What you get** \u2014 the plain-REST twin of the `coinbase_premium` tool: a historical BTC Coinbase-vs-Binance price-gap series, bucketed by interval.\n\n- `items[].coinbasePrice` / `.binancePrice` \u2014 the two venues' close prices for the bucket (e.g. $64,142.60 vs $64,201.03 at the latest bucket).\n- `items[].premiumGap` \u2014 `coinbasePrice - binancePrice` in USD (\u2212$58.43 in the latest bucket \u2014 Coinbase trading at a discount).\n- `items[].premiumIndex` \u2014 the gap expressed as a percentage (\u22120.091%).\n- `meta.unmatchedBinanceBuckets` / `.unmatchedCoinbaseBuckets` \u2014 buckets where one venue had no matching data; both `0` in the captured window.\n\n**When to use it** \u2014 track the \"Coinbase premium\" as a rough proxy for US institutional demand vs offshore flow, or diff the two venues' prices directly.\n\n**Good to know** \u2014 `interval` accepts `1m`/`5m`/`15m`/`1h`/`1d` (invalid values return 422); `limit` caps at 1000 buckets per venue leg. No auth required, and this route is CORS-open for direct browser calls.\n\n**Tier:** L1",
        "operationId": "get_api_coinbase_premium",
        "parameters": [
          {
            "description": "Bucket interval.",
            "in": "query",
            "name": "interval",
            "required": false,
            "schema": {
              "default": "1h",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h",
                "1d"
              ],
              "type": "string"
            }
          },
          {
            "description": "Max buckets fetched per venue leg.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 500,
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "items": [
                          {
                            "binancePrice": 63450.0,
                            "closeTime": 1785239999999,
                            "coinbasePrice": 63393.51,
                            "openTime": 1785236400000,
                            "premiumGap": -56.48999999999796,
                            "premiumIndex": -0.08903073286051688
                          },
                          {
                            "binancePrice": 63546.65,
                            "closeTime": 1785243599999,
                            "coinbasePrice": 63470.34,
                            "openTime": 1785240000000,
                            "premiumGap": -76.31000000000495,
                            "premiumIndex": -0.12008500841508551
                          },
                          "...truncated 498 more"
                        ],
                        "meta": {
                          "count": 500,
                          "dataFreshnessTs": 1787036399999,
                          "interval": "1h",
                          "latest": {
                            "binancePrice": 64204.18,
                            "closeTime": 1787032979999,
                            "coinbasePrice": 64141.5,
                            "openTime": 1787032920000,
                            "premiumGap": -62.68000000000029,
                            "premiumIndex": -0.0976260424165534
                          },
                          "unmatchedBinanceBuckets": 0,
                          "unmatchedCoinbaseBuckets": 0
                        }
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "items": {
                              "items": {
                                "properties": {
                                  "binancePrice": {
                                    "type": "number"
                                  },
                                  "closeTime": {
                                    "type": "integer"
                                  },
                                  "coinbasePrice": {
                                    "type": "number"
                                  },
                                  "openTime": {
                                    "type": "integer"
                                  },
                                  "premiumGap": {
                                    "type": "number"
                                  },
                                  "premiumIndex": {
                                    "type": "number"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "meta": {
                              "properties": {
                                "count": {
                                  "type": "integer"
                                },
                                "dataFreshnessTs": {
                                  "type": "integer"
                                },
                                "interval": {
                                  "type": "string"
                                },
                                "latest": {
                                  "properties": {
                                    "binancePrice": {
                                      "type": "number"
                                    },
                                    "closeTime": {
                                      "type": "integer"
                                    },
                                    "coinbasePrice": {
                                      "type": "number"
                                    },
                                    "openTime": {
                                      "type": "integer"
                                    },
                                    "premiumGap": {
                                      "type": "number"
                                    },
                                    "premiumIndex": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                },
                                "unmatchedBinanceBuckets": {
                                  "type": "integer"
                                },
                                "unmatchedCoinbaseBuckets": {
                                  "type": "integer"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Coinbase premium (plain REST)",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/etf-flow": {
      "get": {
        "description": "The plain-REST twin of the etf_flow tool \u2014 same US spot-ETF net-flow series.\n**What you get** \u2014 the plain-REST twin of the `etf_flow` tool: daily US spot-ETF net flows for BTC or ETH, broken out per fund.\n\n- `items[].flows[].ticker` / `.flowUsd` / `.flowCoin` \u2014 per-fund daily flow, e.g. `IBIT` at $18.07M / 209.97 BTC on one captured day.\n- `items[].netFlowUsd` / `.netFlowCoin` \u2014 the day's total across all funds ($84.17M / 978.24 BTC in that example).\n- `meta.latest` \u2014 the most recent day's totals, mirrored at the top level for a quick \"as of now\" read.\n- `meta.refreshedAtTs` \u2014 when this series was last refreshed upstream.\n\n**When to use it** \u2014 chart institutional ETF demand alongside price, or feed net flow as a sentiment input to a strategy.\n\n**Good to know** \u2014 `asset` only accepts `btc` or `eth` (422 otherwise); `limit` caps at 1000 trading days and is served newest-N-then-ascending. No auth required; CORS-open.\n\n**Tier:** L1",
        "operationId": "get_api_etf_flow",
        "parameters": [
          {
            "description": "Base coin.",
            "in": "query",
            "name": "asset",
            "required": false,
            "schema": {
              "default": "btc",
              "enum": [
                "btc",
                "eth"
              ],
              "type": "string"
            }
          },
          {
            "description": "Max trading days returned (newest N, served ascending).",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 365,
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "items": [
                          {
                            "date": 1742774400000,
                            "flows": [
                              {
                                "flowCoin": 0.0,
                                "flowUsd": 0.0,
                                "ticker": "GBTC"
                              },
                              {
                                "flowCoin": 209.97,
                                "flowUsd": 18067347.72,
                                "ticker": "IBIT"
                              },
                              "...truncated 9 more"
                            ],
                            "netFlowCoin": 978.24,
                            "netFlowUsd": 84173567.21
                          },
                          {
                            "date": 1742860800000,
                            "flows": [
                              {
                                "flowCoin": 0.0,
                                "flowUsd": 0.0,
                                "ticker": "GBTC"
                              },
                              {
                                "flowCoin": 480.57,
                                "flowUsd": 42032708.76,
                                "ticker": "IBIT"
                              },
                              "...truncated 9 more"
                            ],
                            "netFlowCoin": 306.81,
                            "netFlowUsd": 26834350.91
                          },
                          "...truncated 363 more"
                        ],
                        "meta": {
                          "asset": "btc",
                          "count": 365,
                          "dataFreshnessTs": 1786924800000,
                          "latest": {
                            "date": 1786924800000,
                            "flows": [
                              {
                                "flowCoin": 0.0,
                                "flowUsd": 0.0,
                                "ticker": "GBTC"
                              },
                              {
                                "flowCoin": 0.0,
                                "flowUsd": 0.0,
                                "ticker": "IBIT"
                              },
                              "...truncated 9 more"
                            ],
                            "netFlowCoin": 2005.24,
                            "netFlowUsd": 126081851.05
                          },
                          "refreshedAtTs": 1787030400408
                        }
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "items": {
                              "items": {
                                "properties": {
                                  "date": {
                                    "type": "integer"
                                  },
                                  "flows": {
                                    "items": {
                                      "properties": {
                                        "flowCoin": {
                                          "type": "number"
                                        },
                                        "flowUsd": {
                                          "type": "number"
                                        },
                                        "ticker": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "type": "array"
                                  },
                                  "netFlowCoin": {
                                    "type": "number"
                                  },
                                  "netFlowUsd": {
                                    "type": "number"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "meta": {
                              "properties": {
                                "asset": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "dataFreshnessTs": {
                                  "type": "integer"
                                },
                                "latest": {
                                  "properties": {
                                    "date": {
                                      "type": "integer"
                                    },
                                    "flows": {
                                      "items": {
                                        "properties": {
                                          "flowCoin": {
                                            "type": "number"
                                          },
                                          "flowUsd": {
                                            "type": "number"
                                          },
                                          "ticker": {
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "netFlowCoin": {
                                      "type": "number"
                                    },
                                    "netFlowUsd": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                },
                                "refreshedAtTs": {
                                  "type": "integer"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "ETF flows (plain REST)",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/fear-greed": {
      "get": {
        "description": "The plain-REST twin of the fear_greed tool \u2014 same daily Fear & Greed series, no tool-call wrapper needed.\n**What you get** \u2014 the plain-REST twin of the `fear_greed` tool: the daily crypto Fear & Greed index alongside same-day BTC price, no tool-call wrapper needed.\n\n- `items[].value` \u2014 the index, 0-100 (61 = greed-leaning in the captured example).\n- `items[].btcPrice` \u2014 BTC's price on that date, so you can eyeball index-vs-price without a second join.\n- `items[].date` \u2014 epoch milliseconds.\n- `meta.count` / `.dataFreshnessTs` / `.latest` \u2014 series size, freshness timestamp, and the most recent reading duplicated at the top for convenience.\n\n**When to use it** \u2014 chart sentiment against price, or gate a strategy/alert on extreme readings (e.g. value < 20 or > 80).\n\n**Good to know** \u2014 `limit` caps at 3000 days and returns newest-N in ascending order. No auth required; this is the same underlying series `/api/agent-tools/call` hits when you call the `fear_greed` tool, just without the tool-call envelope.\n\n**Tier:** L1",
        "operationId": "get_api_fear_greed",
        "parameters": [
          {
            "description": "Max days returned (newest N, served ascending).",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 365,
              "maximum": 3000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "items": [
                          {
                            "btcPrice": 117364.0,
                            "date": 1755475200000,
                            "value": 61
                          },
                          {
                            "btcPrice": 116252.6,
                            "date": 1755561600000,
                            "value": 57
                          },
                          "...truncated 363 more"
                        ],
                        "meta": {
                          "count": 365,
                          "dataFreshnessTs": 1786924800000,
                          "latest": {
                            "btcPrice": 62740.3,
                            "date": 1786924800000,
                            "value": 30
                          }
                        }
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "items": {
                              "items": {
                                "properties": {
                                  "btcPrice": {
                                    "type": "number"
                                  },
                                  "date": {
                                    "type": "integer"
                                  },
                                  "value": {
                                    "type": "integer"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "meta": {
                              "properties": {
                                "count": {
                                  "type": "integer"
                                },
                                "dataFreshnessTs": {
                                  "type": "integer"
                                },
                                "latest": {
                                  "properties": {
                                    "btcPrice": {
                                      "type": "number"
                                    },
                                    "date": {
                                      "type": "integer"
                                    },
                                    "value": {
                                      "type": "integer"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "Fear & Greed (plain REST)",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    },
    "/api/mvrv": {
      "get": {
        "description": "The plain-REST twin of the mvrv tool \u2014 same Bitcoin MVRV Z-Score series, no tool-call wrapper needed.\n**What you get** \u2014 the plain-REST twin of the `mvrv` tool: Bitcoin's daily MVRV Z-Score archive back to 2010.\n\n- `items[].mvrvRatio` \u2014 market cap \u00f7 realized cap (1.18 at the latest date in the captured example \u2014 market cap only slightly above realized/cost basis).\n- `items[].zScore` \u2014 the standardized MVRV Z-Score used to call cycle tops/bottoms; `null` on early dates where the rolling-stats window isn't full yet (seen on the very first archive row).\n- `items[].marketCap` / `.realizedCap` \u2014 the two raw series MVRV is derived from, in USD.\n- `meta.count` \u2014 5,835 days in the captured full-archive pull.\n\n**When to use it** \u2014 cycle-positioning context (Z-Score extremes have historically marked BTC tops/bottoms), or as a feature in a longer-horizon model.\n\n**Good to know** \u2014 `limit` defaults to and caps at the full archive (10000); no auth required. Anonymous callers are safe because the service holds one bounded cache entry behind a coalescing lock, regardless of the `limit` requested.\n\n**Tier:** L1",
        "operationId": "get_api_mvrv",
        "parameters": [
          {
            "description": "Max days returned (newest N, served ascending). Default equals the max \u2014 the route returns the full archive unless limited.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10000,
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "live": {
                    "summary": "Captured 2026-08-18 from production",
                    "value": {
                      "code": null,
                      "data": {
                        "items": [
                          {
                            "date": 1282089600000,
                            "marketCap": 262209.5,
                            "mvrvRatio": 1.333140370569158,
                            "realizedCap": 196685.5897463032,
                            "zScore": null
                          },
                          {
                            "date": 1282176000000,
                            "marketCap": 255170.00000000003,
                            "mvrvRatio": 1.2937318479487294,
                            "realizedCap": 197235.61756988795,
                            "zScore": 11.638836474234612
                          },
                          "...truncated 5833 more"
                        ],
                        "meta": {
                          "count": 5835,
                          "dataFreshnessTs": 1787024400307,
                          "latest": {
                            "date": 1786406400000,
                            "marketCap": 1282608330751.338,
                            "mvrvRatio": 1.183387043351774,
                            "realizedCap": 1083845169639.9633,
                            "zScore": 0.32633974213865347
                          }
                        }
                      },
                      "failed": false,
                      "message": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StandardResponse"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "items": {
                              "items": {
                                "properties": {
                                  "date": {
                                    "type": "integer"
                                  },
                                  "marketCap": {
                                    "type": "number"
                                  },
                                  "mvrvRatio": {
                                    "type": "number"
                                  },
                                  "realizedCap": {
                                    "type": "number"
                                  },
                                  "zScore": {
                                    "type": "null"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "meta": {
                              "properties": {
                                "count": {
                                  "type": "integer"
                                },
                                "dataFreshnessTs": {
                                  "type": "integer"
                                },
                                "latest": {
                                  "properties": {
                                    "date": {
                                      "type": "integer"
                                    },
                                    "marketCap": {
                                      "type": "number"
                                    },
                                    "mvrvRatio": {
                                      "type": "number"
                                    },
                                    "realizedCap": {
                                      "type": "number"
                                    },
                                    "zScore": {
                                      "type": "number"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object",
                          "x-tn-inferred-from-live-example": true
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success."
          }
        },
        "security": [],
        "summary": "MVRV (plain REST)",
        "tags": [
          "Sentiment / flows / on-chain cycle"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Production.",
      "url": "https://tn-api.truenorth.xyz"
    }
  ],
  "tags": [
    {
      "description": "Candles, technical indicators, and price/volume analysis across crypto markets.",
      "name": "Crypto market data & TA"
    },
    {
      "description": "Funding rates, open interest, liquidations, order flow, and positioning across derivatives venues.",
      "name": "Derivatives & positioning"
    },
    {
      "description": "News, curated content, and calendar/event data (economic, earnings, key events).",
      "name": "News & events"
    },
    {
      "description": "Market-wide sentiment, exchange flows, and on-chain cycle indicators (fear & greed, MVRV, ETF flow, coinbase premium, and related).",
      "name": "Sentiment / flows / on-chain cycle"
    },
    {
      "description": "US stock fundamentals, analyst estimates, SEC filings, earnings, and related company data.",
      "name": "US equities / SEC / fundamentals"
    },
    {
      "description": "Transport and connection endpoints: the tool-RPC call/batch routes, and the MCP connection recipe.",
      "name": "Utility"
    }
  ]
}
