home / skills / openclaw / skills / fear-greed

This skill provides a drop-in fear-greed index widget for crypto dashboards, delivering real-time sentiment insights and easy React/HTML integration.

npx playbooks add skill openclaw/skills --skill fear-greed

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
3.6 KB
---
name: fear-greed
description: Embeddable Fear & Greed Index for crypto dashboards. Real-time sentiment gauge. Drop-in React/HTML components. Works with AI agents, Claude, Cursor.
version: 1.1.1
keywords: fear-greed, crypto-sentiment, market-indicator, trading-widget, dashboard-component, react-widget, bitcoin-sentiment, ai, ai-agent, ai-coding, trading-bot, fintech, market-data, openclaw, moltbot, vibe-coding, agentic
---

# 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

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

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

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

## PRISM Endpoint

| Endpoint | Description | Speed |
|----------|-------------|-------|
| `GET /market/fear-greed` | Current index | 229ms |

## Index Values

| Range | Label | Meaning |
|-------|-------|---------|
| 0-25 | Extreme Fear | Buy opportunity? |
| 26-45 | Fear | Caution |
| 46-55 | Neutral | Wait and see |
| 56-75 | Greed | Take profits? |
| 76-100 | Extreme Greed | Possible top |

## Output Formats

### Terminal (Default)
```
šŸ“Š Crypto Fear & Greed Index

   ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
   │                     │
   │         72          │
   │       GREED         │
   │                     │
   │  ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ │
   │                     │
   ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

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

### JSON
```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
```jsx
import { FearGreedGauge } from '@strykr/fear-greed-widget';

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

### HTML Embed
```html
<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
```html
<iframe 
  src="https://widgets.strykr.com/fear-greed?theme=dark&variant=gauge"
  width="200" 
  height="200"
  frameborder="0"
></iframe>
```

## Themes

| Theme | Background | Text |
|-------|------------|------|
| `dark` | #0D0D0D | #F5F3EF |
| `light` | #FFFFFF | #1A1A1A |
| `transparent` | none | auto |

## Auto-Refresh

Widget auto-refreshes every 5 minutes by default.

```javascript
// 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

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

---

Built by [@NextXFrontier](https://x.com/NextXFrontier)

Overview

This skill provides an embeddable Fear & Greed Index widget for crypto dashboards and apps. It delivers real-time sentiment values and drop-in React, HTML, and iframe components with no API key required. The widget supports auto-refresh and multiple visual variants to fit dashboards or lightweight embeds.

How this skill works

The skill queries a PRISM endpoint to fetch the current Fear & Greed value and label, returning JSON or rendered UI components. Embeds call the endpoint on a configurable refresh interval (default 5 minutes) and update the gauge, bar, or badge in real time. It ships as a React component, a standalone script for HTML pages, and an iframe option for simple integration.

When to use it

  • Add a quick market-sentiment indicator to a trading or portfolio dashboard.
  • Embed a live sentiment widget in a blog, newsletter, or documentation page.
  • Power a Discord or Telegram bot that posts daily sentiment updates.
  • Include a compact badge on a landing page or email for market context.
  • Use as a contextual signal alongside technical indicators in trading tools.

Best practices

  • Cache results and respect the default refresh interval (5 minutes) to avoid excessive requests.
  • Choose a visual variant that matches available space: gauge for dashboards, badge for compact UIs.
  • Map index ranges to clear actions in UI copy (e.g., Extreme Fear = buying opportunity?) conservatively.
  • Expose the timestamp from the JSON output so users know how fresh the data is.
  • Adopt accessible color contrasts and assistive labels for users with visual impairments.

Example use cases

  • Trading dashboard: display the gauge alongside price charts to provide quick sentiment context.
  • Blog post: embed the iframe at the top of market updates for an immediate snapshot.
  • Portfolio app: show a compact badge on asset pages to indicate market-wide mood.
  • Community bot: fetch JSON periodically and post human-friendly summaries in chat channels.
  • Internal ops console: surface the index to help decision-makers gauge broad market risk.

FAQ

Do I need an API key to use the widget?

No. The widget fetches data from the PRISM endpoint and does not require a user API key.

How often does the widget refresh?

Default auto-refresh is every 5 minutes. You can customize the refreshInterval in milliseconds.

What output formats are available?

You can get terminal-style text, JSON (value, label, timestamp), or render visual widgets (gauge, bar, badge) via React, script embed, or iframe.