← 返回
数据分析

Fear Greed

Embeddable Fear & Greed Index for crypto dashboards. Real-time sentiment gauge. Drop-in React/HTML components. Works with AI agents, Claude, Cursor.
适用于加密仪表盘的可嵌入恐惧与贪婪指数。实时情绪指标,支持React/HTML即插即用组件,兼容AI代理(Claude、Cursor)。
nextfrontierbuilds
数据分析 clawhub v1.1.2 1 版本 99108.1 Key: 无需
★ 1
Stars
📥 3,647
下载
💾 321
安装
1
版本
#latest

概述

Crypto Sentiment Widget

Market mood at a glance. Embeddable Fear & Greed Index for crypto dashboards and trading apps.

Drop-in React and HTML components. Real-time updates. No API key required. Powered by Strykr PRISM.

Quick Usage

# Get current Fear & Greed value
./fear-greed.sh

# Get JSON output
./fear-greed.sh --json

# Get historical data
./fear-greed.sh --history

PRISM Endpoint

EndpointDescriptionSpeed
------------------------------
GET /market/fear-greedCurrent index229ms

Index Values

RangeLabelMeaning
-----------------------
0-25Extreme FearBuy opportunity?
26-45FearCaution
46-55NeutralWait and see
56-75GreedTake profits?
76-100Extreme GreedPossible top

Output Formats

Terminal (Default)

📊 Crypto Fear & Greed Index

   ┌─────────────────────┐
   │                     │
   │         72          │
   │       GREED         │
   │                     │
   │  ████████████████░░ │
   │                     │
   └─────────────────────┘

   Last updated: 2026-01-28 13:15 UTC

JSON

{
  "value": 72,
  "label": "Greed",
  "timestamp": "2026-01-28T13:15:00Z"
}

Widget Variants

1. Gauge (Circle)

    ╭───────╮
   ╱    72   ╲
  │   GREED   │
   ╲         ╱
    ╰───────╯

2. Bar (Horizontal)

Fear & Greed: 72 (Greed)
████████████████░░░░░░░░░░

3. Badge (Compact)

┌────────┐
│ FG: 72 │
│   😀   │
└────────┘

Embed Options

React Component

import { FearGreedGauge } from '@strykr/fear-greed-widget';

function Dashboard() {
  return (
    <FearGreedGauge 
      theme="dark"
      size="md"
      variant="gauge"
      refreshInterval={300000}  // 5 minutes
    />
  );
}

HTML Embed

<div id="fear-greed-widget"></div>
<script src="https://cdn.strykr.com/fear-greed.js"></script>
<script>
  StrykrWidget.FearGreed({
    element: '#fear-greed-widget',
    theme: 'dark',
    variant: 'gauge'
  });
</script>

iframe

<iframe 
  src="https://widgets.strykr.com/fear-greed?theme=dark&variant=gauge"
  width="200" 
  height="200"
  frameborder="0"
></iframe>

Themes

ThemeBackgroundText
-------------------------
dark#0D0D0D#F5F3EF
light#FFFFFF#1A1A1A
transparentnoneauto

Auto-Refresh

Widget auto-refreshes every 5 minutes by default.

// Custom refresh interval (in milliseconds)
FearGreedGauge({ refreshInterval: 60000 })  // 1 minute

Use Cases

  1. Trading Dashboard — Quick sentiment check
  2. Blog/Newsletter — Embed in market updates
  3. Discord Server — Daily sentiment bot
  4. Portfolio App — Contextual indicator

Environment Variables

PRISM_URL=https://strykr-prism.up.railway.app

Built by @NextXFrontier

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-03-28 11:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,959
developer-tools

Elite Longterm Memory

nextfrontierbuilds
{"answer":"专为 Cursor、Claude、ChatGPT 和 Copilot 打造的终极 AI 记忆系统。WAL 协议 + 向量搜索 + git-notes + 云备份。永不错失上下文。完美适配 Vibe-coding。"}
★ 222 📥 61,780
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,855