{"source":"terminalfeed","generated_at":"2026-06-12T07:37:22.341Z","docs":"https://terminalfeed.io/developers/agent-payments","contract":"https://terminalfeed.io/openapi.json","note":"Pre-baked function-calling tool definitions for AI agents. Paste the openai or anthropic block directly into your tool-use scaffold. Cross-redeemable on tensorfeed.ai.","cost":"free (this endpoint costs no credits; the tools listed have their own pricing)","bearer_format":"tf_live_<64-char-hex>","auth_flow":"POST /api/payment/buy-credits -> send USDC on Base -> POST /api/payment/confirm -> use returned bearer token on /api/pro/*","anthropic":[{"name":"tf_briefing","description":"Fetches a real-time world-state snapshot composed from BTC ticker, Fear and Greed Index, recent earthquakes (USGS), top Hacker News story count, and ISS crew. Returns JSON. No auth required. Cache TTL 60s. Use when the agent needs a quick global pulse before deciding what to investigate.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_btc_price","description":"Fetches the current Bitcoin price in USD with 24h change, high, low, and volume. Source: Binance with CoinCap fallback. Cache TTL 15s. No auth required. Use for crypto trading decisions or when the agent needs a fresh BTC quote.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_fear_greed","description":"Fetches the current Crypto Fear and Greed Index value (0-100) with classification label (Extreme Fear, Fear, Neutral, Greed, Extreme Greed). Source: Alternative.me. Cache TTL 5min. Use as a sentiment signal for crypto trading decisions.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_crypto_movers","description":"Fetches the top 15 cryptocurrencies sorted by 24h price change. Includes price, market cap, and percentage move. Source: CoinGecko/CoinLore. Cache TTL 30s. Use when the agent needs to surface notable crypto market moves.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_predictions","description":"Fetches active Polymarket prediction markets sorted by 24h volume. Each market includes question, outcomes, and volume. Cache TTL 60s. Use when the agent needs market-implied probabilities on world events (elections, sports, macro).","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_earthquakes","description":"Fetches recent earthquakes magnitude 2.5 or greater from USGS. Returns count and most recent quake details (magnitude, place, time). Cache TTL 2min. Use for disaster monitoring or when the agent needs current seismic activity.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_climate_earthquakes","description":"Fetches USGS pre-built summary feeds with selectable magnitude bucket (significant, 4.5, 2.5, 1.0, all) and period (hour, day, week, month). Returns flattened list (id, magnitude, place, time ISO 8601, depth_km, lat, lon, tsunami flag, USGS detail URL). Cache TTL scales with feed window (60s for hour, up to 900s for month). US Government public domain. Use when the agent needs more granular control than tf_earthquakes.","input_schema":{"type":"object","properties":{"magnitude":{"type":"string","description":"Magnitude bucket: significant, 4.5, 2.5, 1.0, all. Default 2.5."},"period":{"type":"string","description":"Period bucket: hour, day, week, month. Default day."}},"required":[]}},{"name":"tf_climate_weather_alerts","description":"Fetches active alerts from api.weather.gov filtered by area (2-letter state code), exact NWS event name, severity, urgency, and status. Returns id, event, severity, urgency, certainty, headline, description, areaDesc, sent/effective/expires/ends, sender_name, web URL. 60s cache. US Government public domain. US-only coverage. Use for situational awareness on active weather hazards.","input_schema":{"type":"object","properties":{"area":{"type":"string","description":"2-letter US state code, e.g. CA, NY. Optional."},"event":{"type":"string","description":"Exact NWS event name, e.g. \"Tornado Warning\", \"Heat Advisory\". Optional."},"severity":{"type":"string","description":"Extreme | Severe | Moderate | Minor | Unknown. Optional."},"urgency":{"type":"string","description":"Immediate | Expected | Future | Past | Unknown. Optional."},"status":{"type":"string","description":"Actual | Exercise | System | Test | Draft. Optional."},"limit":{"type":"number","description":"1..100, default 50."}},"required":[]}},{"name":"tf_service_status","description":"Fetches operational status of major dev infrastructure (GitHub, Cloudflare, Discord, OpenAI, Vercel, npm, Reddit, Atlassian, Anthropic). Cache TTL 60s. Use when the agent needs to know if a dependency is up or to explain a recent outage.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_economic_data","description":"Fetches latest FRED economic indicators: Fed funds rate, CPI, unemployment rate, GDP growth. Cache TTL 1h. Use when the agent needs current US macro indicators. For deeper macro (treasury yields, forex, commodities, indices) use tf_premium_macro.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_forex","description":"Fetches current foreign exchange rates with USD as base for 16 major currencies (EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR, MXN, BRL, KRW, SGD, HKD, SEK, NOK, NZD). Source: Frankfurter (ECB-based). Cache TTL 5min. Use for currency conversion or FX-aware decisions.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_hf_trending","description":"Fetches the top 15 trending HuggingFace models sorted by likes in the last 7 days. Each item includes id (author/name), likes, downloads, pipeline tag, and url. Source: huggingface.co/api/models. Cache TTL 10min. Use when the agent needs to surface what the open-source AI community is paying attention to right now.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_harnesses","description":"Returns a snapshot of public agentic-coding benchmark scores across SWE-bench Verified, Terminal-Bench, Aider Polyglot, and METR HCAST. Each row pairs a harness with a model. Same model can score very differently on different harnesses; that gap is the value-add. Pass ?view=summary for top 10 combined leaderboard plus biggest harness gaps; ?view=gaps for full per-model harness deltas; ?view=combined for normalized cross-benchmark ranking; ?view=raw (default) for the full benchmark/result graph. Source: hand-curated from upstream leaderboards (swebench.com, terminal-bench.org, aider.chat, metr.org). Cache TTL 12h. Use when the agent needs to recommend a harness/model combo or explain why two agents using the same model perform differently.","input_schema":{"type":"object","properties":{"view":{"type":"string","enum":["raw","summary","gaps","combined"],"description":"Output shape; default raw"}},"required":[]}},{"name":"tf_solana_network","description":"Fetches live Solana mainnet network metrics: current transactions-per-second (most recent 60s sample), 3-sample average TPS, current slot, average slot time in ms, and epoch progress percentage. Source: solana-rpc.publicnode.com (getRecentPerformanceSamples + getSlot + getEpochInfo). Cache TTL 30s. Use when the agent needs to assess Solana network throughput or congestion.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_briefing","description":"Premium version of tf_briefing. Adds Polymarket prediction markets to the standard briefing payload, supports section filtering via ?include=, and supports ?history=24h for hourly BTC chart. Costs 1 credit ($0.02 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. Use when the agent needs prediction-market context or recent BTC trajectory in addition to the basic snapshot. Strict premium, no free trial. Free basic version (without predictions or history series) available at tf_briefing (no auth required).","input_schema":{"type":"object","properties":{"include":{"type":"string","description":"Comma-separated subset of sections: btc, fear-greed, earthquakes, hackernews, humans-in-space, predictions. Omit for all sections."},"history":{"type":"string","enum":["24h"],"description":"When set to 24h, response includes a series.btc_24h hourly array (24 data points)."}},"required":[]}},{"name":"tf_premium_macro","description":"Premium composed macroeconomic snapshot in one HTTP call. Includes 7 FRED economic series (Fed rate, CPI, unemployment, GDP growth, 10-year treasury), 4 USD-base forex pairs (EUR, JPY, GBP, CHF), gold via PAXG/Kraken, US market context (SPY, DIA, QQQ, VIX), and oil/natural gas via FRED. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. Optional ?history=30d adds 30-day historical series. Use this instead of calling 14 different upstream APIs separately.","input_schema":{"type":"object","properties":{"history":{"type":"string","enum":["30d"],"description":"When set to 30d, FRED entries include a series array of 30 daily observations and forex.series is populated."}},"required":[]}},{"name":"tf_premium_crypto_deep","description":"Premium deep crypto snapshot. Includes top 50 coins by market cap with 1h/24h/7d change, Binance live ticker for top 20 USDT pairs by volume, Bitcoin network statistics from mempool.space (block height, fee tiers, hashrate, mempool size), and Ethereum gas oracle from Etherscan. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. Optional ?coins= filter and ?history=30d for daily BTC OHLCV. Use this instead of calling CoinGecko + Binance + mempool.space + Etherscan separately.","input_schema":{"type":"object","properties":{"coins":{"type":"string","description":"Comma-separated symbol filter, e.g. btc,eth,sol. Omit to get all top 50."},"history":{"type":"string","enum":["30d"],"description":"When set to 30d, response includes series.btc_30d with daily OHLCV candles."}},"required":[]}},{"name":"tf_premium_github_velocity","description":"Composed GitHub developer-attention snapshot. Returns top 30 repos created in the last 7 days sorted by stars (with stars-per-day, language, topics, license, owner type, AI/ML focus flag), top 15 AI/ML-focused active repos (topic:llm with commits in the last 30 days), language and topic aggregates, and the AI/ML share of trending. Source: GitHub Search API. Costs 2 credits ($0.04 USDC). 30-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_feed_reliability","description":"Premium reliability breakdown. For every monitored feed, a 0-100 composite reliability score with subscores (uptime, availability, staleness rate, dark rate), a sample-size trust tier, and a low_coverage flag, scored from rolling ok/stale/dark counts probed every 5 minutes. Ranked, with low-sample feeds parked separately. captured_at is the monitor real check time, so a stalled monitor (>48h) no-charges. The free preview is GET /api/feed-reliability (top-line table, no auth); this paid tier adds the signed receipt and the full per-feed breakdown. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_feed_reliability_history","description":"Premium reliability history. Returns the daily composite-reliability time-series for one feed (param feed, e.g. btc-price), with optional from/to date bounds (YYYY-MM-DD, query window capped at 365 days). Immutable past data; an empty range no-charges. Use the free GET /api/feed-reliability for current feed ids. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{"feed":{"type":"string","description":"feed id, e.g. btc-price"},"from":{"type":"string","description":"lower bound YYYY-MM-DD (optional)"},"to":{"type":"string","description":"upper bound YYYY-MM-DD (optional)"}},"required":[]}},{"name":"tf_premium_stablecoin_flows","description":"Composed stablecoin flow snapshot for crypto traders. Returns top 20 stablecoins by circulating supply, each with 24h/7d/30d net change in USD and percent, top chains breakdown, peg type, and current price. Aggregate includes total circulating, net inflow/outflow over 24h and 7d, growing-vs-shrinking count, and a bias label (growing / shrinking / balanced). Source: DefiLlama stablecoins API. Trading agents use stablecoin growth as a leading indicator for crypto buying power. Costs 2 credits ($0.04 USDC). 1-hour cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_defi_tvl","description":"Composed DeFi total-value-locked snapshot for crypto research and trading agents. Returns top 50 protocols by TVL (each with 1h/24h/7d change, category, chain, market cap, FDV), top 15 chains by TVL, by-category aggregate, and biggest gainers/losers over 24h and 7d windows. Source: DefiLlama free public API. Costs 2 credits ($0.04 USDC). 30-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_exchange_flows","description":"Tracks ETH transfers in/out of major centralized exchange hot wallets (Binance, Coinbase, OKX, Kraken, Bybit, Crypto.com, KuCoin) in the last 3 blocks. Each transfer tagged as inflow (user -> exchange, often precedes selling), outflow (exchange -> user, often HODL withdrawal), or inter_exchange. Aggregated per-exchange and globally with net_eth, net_usd, and bias label (inflow_dominant / outflow_dominant / balanced). Threshold 5 ETH minimum (~$11K at $2300/ETH) to filter retail noise. Useful for trading bots detecting regime shifts: sustained large net inflow signals selling pressure ahead, sustained outflow signals accumulation. Pair with tf_premium_whales for context. Costs 2 credits ($0.04 USDC). 5-min cache. Bearer auth required. v1 covers ETH only; BTC requires a labeled-address dataset.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_whales","description":"Tracks whale-sized on-chain transactions on Bitcoin and Ethereum. BTC: scans the last 30 unconfirmed mempool transactions via mempool.space and surfaces any with output >=50 BTC; tagged with USD-equivalent at current BTC spot. ETH: scans the latest confirmed block via Etherscan eth_getBlockByNumber and surfaces transfers >=100 ETH; tagged with USD-equivalent at current ETH spot. Each whale entry includes tx_hash, value in native and USD units, from/to addresses (ETH only), and explorer URL. Useful for trading bots watching for institutional flow signals (large exchange in/outflows, treasury moves, OTC settlements). Costs 2 credits ($0.04 USDC). 5-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_correlation_matrix","description":"Pre-computed cross-asset correlation matrix for AI trading and portfolio agents. Returns 30-day Pearson correlations on daily simple returns for 6 assets: BTC, ETH, SOL (Coinbase candles), and SPY, QQQ, GLD (Stooq.com CSVs). Output includes both a pairs array (sorted by absolute r descending) and an NxN matrix object for easy lookup. Each pair tagged with relationship strength (negligible / weak / moderate / strong) and direction (positive / negative). Saves the agent from fetching 6 historical price series and running the covariance math. Costs 2 credits ($0.04 USDC). 30-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_agent_context","description":"The \"always start here\" premium call for autonomous agents. Composes 13 upstream sources into a curated world-state snapshot: BTC ticker, Fear and Greed, VIX, Fed funds rate, USD-base forex (EUR/JPY/GBP/CHF), HN front page top 5, significant earthquakes 24h, upcoming space launches, top Polymarket markets, and infrastructure status (GitHub, Cloudflare, OpenAI, Anthropic). Returns BOTH a structured JSON `context` object for parsers AND a pre-formatted `system_prompt` string (~350 tokens) the agent pastes verbatim into its LLM context. Saves the agent from making 13 separate calls and writing a formatter. Curation choice (which signals matter, how to compress them) is the moat. Costs 2 credits ($0.04 USDC). 5-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_world_deltas","description":"Premium event-stream endpoint for monitor agents. Aggregates time-stamped events from 4 sources into one time-sorted feed: USGS earthquakes M4.0+, Hacker News new stories via Algolia, recently updated Polymarket markets, and space launches in [-1h, +12h] window. Accepts ?since=<ISO timestamp> (defaults 1h ago, clamped to 1h cache horizon). Each event has type, timestamp, severity, and structured data. Saves an agent from polling 5 separate upstream feeds and merging client-side. Costs 2 credits ($0.04 USDC). Bearer auth required. 1-hour rolling cache; sub-second when warm.","input_schema":{"type":"object","properties":{"since":{"type":"string","description":"ISO 8601 timestamp. Returns events newer than this. Defaults to 1 hour ago. Clamped to 1 hour ago if older."}},"required":[]}},{"name":"tf_premium_sentiment","description":"Premium composite sentiment snapshot. Aggregates Crypto Fear and Greed Index (alternative.me), VIX volatility index (Finnhub), trending ticker mentions across Hacker News top 30 + Reddit r/CryptoCurrency / r/wallstreetbets / r/stocks hot posts with per-headline keyword-based sentiment scoring, and top Polymarket prediction-market signals. Output includes per-ticker mention_count_24h, sentiment_score (-1 to +1), sentiment_label, and sample headlines. Use to gauge market mood before a trading or research decision. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. The notes field documents that scoring is keyword-based (crude but signal-bearing), not LLM-derived; treat as one input to a broader analysis.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_preview_regime","description":"Free, zero-setup preview of the paid tf_premium_regime verdict. Returns the single regime label (risk_on / risk_off / transition / stress), the risk_score, the confidence, the one dominant driver, and a one-line why. Rate-limited to 10/IP/day and unsigned. Versus this preview, the paid tf_premium_regime (GET /api/pro/regime, 2 credits) adds the full ranked drivers with weights and contributions, all raw inputs (VIX + 30d z-score, 10y trend, BTC dominance, Fear and Greed), an Ed25519-signed receipt, and no rate limit. No auth required. Statistical heuristic, not investment advice.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_regime","description":"Premium regime classifier. Blends crypto Fear & Greed (alternative.me), VIX (FRED VIXCLS), 24h total crypto market-cap change (CoinLore), and the 10y treasury-yield trend (FRED DGS10) into a labeled regime (risk_on, risk_off, transition, or stress), a risk_score in [-1..+1], a 0-1 confidence, and a per-input drivers[] breakdown showing each signal value, weight, and contribution. A stress override fires when VIX>30 or (Fear&Greed<15 and 24h market cap <-3%). Versus the free preview (tf_preview_regime / GET /api/preview/regime) it adds the full ranked drivers, all raw inputs, a signed receipt, and no rate limit. The documented, versioned weighting is the value; the upstreams are free. Statistical heuristic, not investment advice. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_anomalies","description":"Premium anomaly screen. Surfaces statistical outliers across feeds in one ranked list: z-score outliers (|z|>2) over a trailing 30 daily-observation window for VIX (FRED VIXCLS) and the 10y treasury yield (FRED DGS10), plus threshold flags for extreme crypto Fear & Greed (<=20 or >=80), large 24h crypto market-cap moves (>5%), and elevated M4.5+ earthquake counts (>=8 in 24h, USGS). Each anomaly carries type, signal, value, baseline, z_score where applicable, severity, and a description. Distinct from world-deltas (a raw time-sorted event log with no statistical filtering): this answers \"is anything statistically unusual right now\". A screen, not a prediction. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_payment_buy_credits","description":"POST endpoint that returns the published USDC wallet address (0x549c82e6bfc54bdae9a2073744cbc2af5d1fc6d1 on Base mainnet), a unique memo, and a quote tying the dollar amount to credits at $1 USDC = 50 credits. Use as the first step when the agent needs to buy credits to access /api/pro/* endpoints.","input_schema":{"type":"object","properties":{"amount_usd":{"type":"number","description":"USDC amount to convert. Minimum $1 = 50 credits."}},"required":[]}},{"name":"tf_payment_confirm","description":"POST endpoint that verifies an on-chain Base mainnet USDC transfer to the published wallet and returns a bearer token (tf_live_<64-char-hex>) plus credit count. Use after the agent has sent USDC, with the tx hash and the memo from tf_payment_buy_credits. The returned token is cross-redeemable on tensorfeed.ai.","input_schema":{"type":"object","properties":{"tx_hash":{"type":"string","description":"On-chain Base mainnet USDC transaction hash."},"nonce":{"type":"string","description":"The memo string returned from tf_payment_buy_credits (optional but recommended)."}},"required":[]}},{"name":"tf_payment_balance","description":"GET endpoint that returns remaining credits for the bearer token in the Authorization header. Requires Authorization: Bearer tf_live_<64-char-hex>. Costs 0 credits. Use to monitor agent budget.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_payment_history","description":"GET endpoint that returns confirmed USDC purchases (tx_hash, amount_usd, credits_added, block_number, confirmed_at) plus current balance and totals for the bearer token. Requires Authorization: Bearer tf_live_<64-char-hex>. Costs 0 credits. Tokens minted before the ledger existed return current_balance with purchases: [].","input_schema":{"type":"object","properties":{},"required":[]}}]}