Live Stock Ticker Widget for Your Dashboard

Track real-time stock prices online. Create customizable widgets for your website. No installation, free & secure.

Why Choose StockWidgetDesk?

Real-Time Updates

Get live stock prices with automatic updates

Secure & Safe

No downloads, no risks. Everything runs in your browser

Fully Customizable

Choose themes, colors, and update intervals

100% Free

No hidden costs, no premium features, completely free

Customize Your Widget

0px24px
1s10s

Features

  • Real-time updates
  • No installation required
  • Fully customizable
  • Secure & free

Preview

Live Stock Ticker

AAPL
$178.25
+2.15
(+1.22%)
GOOGL
$142.80
-0.95
(-0.66%)
MSFT
$415.60
+5.30
(+1.29%)
AMZN
$178.35
+1.85
(+1.05%)
TSLA
$242.80
-3.20
(-1.30%)
Updates every 3s - Demo data only

Generated Widget Code

Copy this code and paste it into your website HTML to embed the stock widget:

<!-- StockWidgetDesk - Live Stock Ticker -->
<div id="stock-widget-container"></div>
<style>
#stock-widget-container {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}
.stock-widget {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.stock-widget-header {
  background: #f9fafb;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 600;
}
.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  transition: background 0.2s;
}
.stock-item:hover {
  background: #f9fafb;
}
.stock-item:last-child {
  border-bottom: none;
}
.stock-symbol {
  font-weight: bold;
  font-size: 16px;
  color: #111827;
}
.stock-price {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
}
.stock-change {
  font-size: 14px;
  font-weight: 500;
}
.stock-change.positive { color: #10b981; }
.stock-change.negative { color: #ef4444; }
.stock-footer {
  padding: 8px 16px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
</style>
<script>
(function() {
  const config = {
    stocks: ["AAPL","GOOGL","MSFT","AMZN","TSLA"],
    theme: 'light',
    updateInterval: 3000,
    showPercent: true,
    accentColor: '#0ea5e9'
  };

  const stockData = {};
  config.stocks.forEach(symbol => {
    stockData[symbol] = {
      price: (Math.random() * 500 + 50).toFixed(2),
      change: (Math.random() * 10 - 5).toFixed(2)
    };
  });

  function renderWidget() {
    const container = document.getElementById('stock-widget-container');
    let html = '<div class="stock-widget">';
    html += '<div class="stock-widget-header">Live Stock Ticker</div>';

    config.stocks.forEach(symbol => {
      const data = stockData[symbol];
      const changePercent = ((data.change / data.price) * 100).toFixed(2);
      const changeClass = data.change >= 0 ? 'positive' : 'negative';

      html += `<div class="stock-item">
        <div>
          <div class="stock-symbol">${symbol}</div>
          <div class="stock-price">$${data.price}</div>
        </div>
        <div class="stock-change ${changeClass}">
          ${data.change >= 0 ? '+' : ''}${data.change}`;

      if (config.showPercent) {
        html += ` (${changePercent >= 0 ? '+' : ''}${changePercent}%)`;
      }

      html += '</div></div>';
    });

    html += '<div class="stock-footer">Updates every ' + (config.updateInterval / 1000) + 's - Demo data</div>';
    html += '</div>';

    container.innerHTML = html;
  }

  function updatePrices() {
    config.stocks.forEach(symbol => {
      const data = stockData[symbol];
      const change = (Math.random() - 0.5) * 2;
      data.price = (parseFloat(data.price) + change).toFixed(2);
      data.change = (parseFloat(data.change) + change).toFixed(2);
    });
    renderWidget();
  }

  renderWidget();
  setInterval(updatePrices, config.updateInterval);
})();
</script>

How to Use

  1. 1Click the "Copy Code" button above
  2. 2Paste the code into your website's HTML where you want the widget to appear
  3. 3The widget will automatically load with your selected theme and update interval
Note: This is demonstration code. The widget uses simulated data for display purposes only and should not be used for real trading decisions.

How It Works

1

Customize Your Widget

Choose your preferred theme, update interval, and settings

2

Preview Live

See your widget in action with real-time updates

3

Use Instantly

Start tracking stocks immediately - no downloads needed