A lightweight, native macOS menu bar application that displays real-time stock prices and indices.
- Real-time Data: Fetches live stock data using Yahoo Finance API.
- Menu Bar Widget: prices scroll or rotate directly in your menu bar.
- Modes:
- Rotating: Cycles through your stocks one by one.
- Marquee: Continuous scrolling ticker tape (Classic visual).
- Customizable:
- Manage tickers (Bulk add/remove).
- Color-coded price changes (Green/Red).
- Visual indicators (▲/▼).
- Native Performance: Built with Swift and Cocoa for minimal footprint.
- Clone the repository.
- Run the build script:
./package_app.sh
- The app will be created in
dist/StockTicker.app. - Drag it to your Applications folder.
- Click the ticker in the menu bar to open settings.
- Manage Tickers: Add your favorite stocks (e.g., AAPL, TSLA, BTC-USD). Max 10 tickers.
- Marquee Mode: Toggle for a scrolling effect.
Built with Swift 5.7+ and AppKit.
Sources/StockTickerApp: Core application logic.AppEntry.swift: Entry point (@main).MenuBarManager.swift: UI and logic controller.StockFetcher.swift: Networking and data model.
package_app.sh: Script to compile and bundle the.app.
swift build -c releaseBecause this app is not yet signed with an Apple Developer Certificate, macOS Gatekeeper will block it when downloaded from the internet.
To fix this:
- Open Terminal.
- Run the following command (replace path with actual location):
xattr -cr /Applications/StockTicker.app
- Open the app again.
MIT

