Skip to content
Simple status bar bitcoin price ticker for macOS
Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MacOSbtcTicker.xcodeproj Add first version of btc price ticker Feb 1, 2020
MacOSbtcTicker.xcworkspace
MacOSbtcTicker
Pods Add first version of btc price ticker Feb 1, 2020
img Change example image Feb 5, 2020
.gitignore
Podfile
Podfile.lock
readme.md

readme.md

₿ btcPriceTicker_macOS

btcPriceTicker example

Simple status bar bitcoin price ticker for macOS. This tool can show you average price of BTC in USD online. Tested on macOS 10.15 with SWIFT5.

Data are provided from CoinGecko free API. https://www.coingecko.com/en/api

How to modify

Data refresh time is set to 30 sec and can be modified in AppDelegate.swift

let updateTimeout : UInt32 = 30

Conversion currency can be simply modified in BtcPriceProvider.swift. Supported currencies can be found here https://www.coingecko.com/en/api.

let requestUrl = "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd" // modify this -> vs_currencies=usd
let price = json["bitcoin"]["usd"].doubleValue // and this -> ["usd"]
You can’t perform that action at this time.