Latest 0.1.7
Homepage https://github.com/starsfaraway/CrytpoTicker
License MIT
Platforms ios 12.0
Authors

Description

Requirements

Installation

To Use

Swift Framework that requests current cryptocurrency prices from coinmarketcap.com

Requirements

iOS 10.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

 $ gem install cocoapods

To integrate CryptoTicker into your Xcode project using CocoaPods, specify it in your Podfile:

 platform :ios, '12.0'

 use_frameworks!

 target '<Your Target Name>' do

      pod 'CrytpoTicker', '~> 0.1.7'

 end

Then, run the following command:

 $ pod install

To Use:

Simply use the function:

 CryptoTicker.getTickerInfo(limit: 20, convert: "USD") { (tickerInfo) -> (Void) in {

 }

tickerInfo is the Ticker object with the following properties, use as desired:

 var id : String?

 var name : String?

 var symbol : String?

 var rank : String?

 var price_usd : String?

 var price_btc : String?

 var market_cap_usd : String?

 var available_supply : String?

 var total_supply : String?

 var percent_change_1h : String?

 var percent_change_24h : String?

 var percent_change_7d : String?

 var last_updated : String?

Latest podspec

{
    "name": "CrytpoTicker",
    "version": "0.1.7",
    "summary": "Gets cryptocurrency price data from coinmarketcap.com.",
    "description": "Gets cryptocurrency price data from coinmarketcap.com. Please see coinmarketcap.com api.",
    "homepage": "https://github.com/starsfaraway/CrytpoTicker",
    "license": "MIT",
    "authors": {
        "Matthew": "[email protected]"
    },
    "platforms": {
        "ios": "12.0"
    },
    "swift_version": "4.2",
    "source": {
        "git": "https://github.com/starsfaraway/CrytpoTicker.git",
        "tag": "0.1.7"
    },
    "source_files": "CrytpoTicker/*.{h,m,swift}"
}

Pin It on Pinterest

Share This