# Coinpred widget: Altcoin Season Index (山寨季指数)

> The share of the top 50 altcoins that beat Bitcoin over 90 days: ≥75 is altcoin season, ≤25 Bitcoin season. The list style also shows the 10 best performers.

Widget id: `altseason` · Live preview and configurator: https://coinpred.com/widgets/#altseason · All widgets: https://coinpred.com/widgets/llms.txt

## Embed code (default settings)

```html
<div class="coinpred-widget" data-widget="altseason" data-style="dial" data-lang="en" data-theme="light">
  <a href="https://coinpred.com/widgets/" target="_blank" rel="noopener">Coinpred Altcoin Season Index</a>
</div>
<script async src="https://coinpred.com/widgets/v1.js"></script>
```

## Options

Change the data-* attributes on the div. Only these values are supported:

| Attribute | Values | Default | Notes |
|---|---|---|---|
| `data-style` | `dial` \| `meter` \| `list` | `dial` | dial (Dial), meter (Meter), list (Ranking) |
| `data-theme` | `light` \| `dark` | `light` |  |
| `data-lang` | `en` \| `zh` | `en` | en (English) or zh (Simplified Chinese) |

## Rules

1. Load the script from coinpred.com, which also provides the data: `<script async src="https://coinpred.com/widgets/v1.js"></script>`.
2. Use the official snippet unchanged: the `<div class="coinpred-widget">` with its `<a>` link to coinpred.com. Do not rebuild the widget with another library.
3. Keep the `<a>` link inside the div visible (no `display:none`, no `rel="nofollow"`); it is the only condition of free use.
4. Load the script once per page. In single-page apps (React, Vue, Next.js…) call `window.CoinpredWidgets.scan()` after rendering new widget divs.
5. Use `data-lang="zh"` for Simplified Chinese sites and `data-theme="dark"` on dark backgrounds. Coin symbols are plain tickers (BTC, not BTCUSDT).

## Where to paste it

### Plain HTML

Paste the snippet inside <body> where the widget should appear, save and reload. With several widgets on one page keep the <script> line once.

### WordPress

Edit the page or post → “+” → Custom HTML block → paste → Update. In the Classic editor switch to the Text tab first; for a sidebar use Appearance → Widgets → Custom HTML.

### Webflow / Wix / Shopify etc.

Add an Embed / Code Block / Custom code / Custom Liquid section, paste the snippet and publish. In Wix, resize the HTML iframe element to the widget height.

### React / Next.js

Render the div with its data attributes and load the script once on the client; after client-side navigation call window.CoinpredWidgets.scan() to mount new widgets. The Next.js App Router needs 'use client'.

```jsx
'use client';
import { useEffect } from 'react';

const SRC = 'https://coinpred.com/widgets/v1.js';
export default function CoinpredWidget() {
  useEffect(() => {
    if (window.CoinpredWidgets) return void window.CoinpredWidgets.scan();
    if (!document.querySelector('script[src="' + SRC + '"]')) {
      const s = document.createElement('script'); s.src = SRC; s.async = true; document.body.appendChild(s);
    }
  }, []);
  return (
    <div className="coinpred-widget" data-widget="altseason" data-style="dial" data-lang="en" data-theme="light">
      <a href="https://coinpred.com/widgets/" target="_blank" rel="noopener">Coinpred Altcoin Season Index</a>
    </div>
  );
}
```

### Vue / Nuxt

Put the div in the template and load the script once in onMounted; if it is already loaded call window.CoinpredWidgets.scan().

```vue
<template>
  <div class="coinpred-widget" data-widget="altseason" data-style="dial" data-lang="en" data-theme="light">
    <a href="https://coinpred.com/widgets/" target="_blank" rel="noopener">Coinpred Altcoin Season Index</a>
  </div>
</template>

<script setup>
import { onMounted } from 'vue';
const SRC = 'https://coinpred.com/widgets/v1.js';
onMounted(() => {
  if (window.CoinpredWidgets) return window.CoinpredWidgets.scan();
  const s = document.createElement('script'); s.src = SRC; s.async = true; document.body.appendChild(s);
});
</script>
```

## Add it with AI

Copy this prompt into ChatGPT, Claude, Cursor, Copilot or any AI assistant:

```text
Add the “Altcoin Season Index” widget from coinpred.com to my site. Docs: https://coinpred.com/widgets/docs/altseason.md
My settings: style=dial, lang=en, theme=light
```

## Data source and method

The top 50 coins by CoinGecko market cap that trade against USDT on Binance (excluding BTC, stablecoins and wrapped assets) are compared with Bitcoin over 90 days. Index = share beating BTC × 100; ≥75 altcoin season, ≤25 Bitcoin season; recomputed every 6 hours. Same idea as CoinMarketCap’s index but with 50 coins instead of 100, so values can differ.

Data is for information only and is not investment advice.
