Skip to content

nhonn/OKXCryptoPrice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OKX Crypto Price - macOS Menu Bar App

Build and Release

A native macOS menu bar application built with Swift and SwiftUI that displays real-time cryptocurrency prices from OKX exchange.

Download

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).

Features

  • 🔄 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

Supported Trading Pairs

  • BTC-USDT
  • ETH-USDT
  • SOL-USDT
  • BNB-USDT
  • XRP-USDT
  • ADA-USDT
  • DOGE-USDT
  • MATIC-USDT

Requirements

  • macOS 13.0 or later
  • Xcode 15.0 or later
  • Swift 5.9+

Building

Local Build

xcodebuild -project OKXCryptoPrice.xcodeproj -scheme OKXCryptoPrice -configuration Debug build

Or open the project in Xcode and press Cmd+R.

Creating a Release

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.0

The workflow will automatically:

  • Build the Release configuration
  • Create a GitHub Release
  • Attach OKXCryptoPrice.app.zip to the release

Usage

  1. Launch the app
  2. Look for the Bitcoin icon in your menu bar (top-right)
  3. Click the icon to view current prices
  4. Click the gear icon to change trading pairs
  5. Prices update automatically every 30 seconds

Architecture

  • MVVM Pattern: Clean separation of concerns
  • SwiftUI: Modern declarative UI
  • Async/Await: Modern Swift concurrency
  • OKX Public API: No authentication required

Project Structure

OKXCryptoPrice/
├── Models/              # Data models
├── Services/            # API service layer
├── ViewModels/          # State management
├── Views/               # SwiftUI views
└── Resources/           # Assets

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages