A native macOS menu bar application built with Swift and SwiftUI that displays real-time cryptocurrency prices from OKX exchange.
Download the latest release from the Releases page.
Note: On first launch, you may need to right-click the app and select "Open" to bypass macOS Gatekeeper (the app is unsigned).
- 🔄 Auto-refresh every 30 seconds
- 📊 Real-time price display with 24h change
- 🎨 Color-coded price changes (green/red)
- ⚙️ Support for multiple trading pairs
- 🔔 Menu bar integration (no Dock icon)
- 🚀 Lightweight and fast
- BTC-USDT
- ETH-USDT
- SOL-USDT
- BNB-USDT
- XRP-USDT
- ADA-USDT
- DOGE-USDT
- MATIC-USDT
- macOS 13.0 or later
- Xcode 15.0 or later
- Swift 5.9+
xcodebuild -project OKXCryptoPrice.xcodeproj -scheme OKXCryptoPrice -configuration Debug buildOr open the project in Xcode and press Cmd+R.
Releases are automatically built via GitHub Actions when you push a version tag:
# Create and push a version tag
git tag v1.0.0
git push origin v1.0.0The workflow will automatically:
- Build the Release configuration
- Create a GitHub Release
- Attach
OKXCryptoPrice.app.zipto the release
- Launch the app
- Look for the Bitcoin icon in your menu bar (top-right)
- Click the icon to view current prices
- Click the gear icon to change trading pairs
- Prices update automatically every 30 seconds
- MVVM Pattern: Clean separation of concerns
- SwiftUI: Modern declarative UI
- Async/Await: Modern Swift concurrency
- OKX Public API: No authentication required
OKXCryptoPrice/
├── Models/ # Data models
├── Services/ # API service layer
├── ViewModels/ # State management
├── Views/ # SwiftUI views
└── Resources/ # Assets
MIT