CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✓ |
Maintained by iCell.
CryptoCurrencyKit is an API kit based on CryptoCurrency Market Capitalizations
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler. It is in early development, but Alamofire does support its use on supported platforms.
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.Package(url: "https://github.com/iCell/CryptoCurrency.git")
]
fetch tickers
CryptoCurrencyKit.fetchTickers { response in
switch response {
case .success(let data):
print(data)
case .failure(let error):
print(error)
}
}
fetch a specific crypto currency
CryptoCurrencyKit.fetchTicker(coinName: "BitCoin", convert: .jpy) { response in
switch response {
case .success(let bitCoin):
print(bitCoin.priceJPY)
case .failure(let error):
print(error)
}
}
fetch global data
CryptoCurrencyKit.fetchGlobal(convert: .cny) { response in
switch response {
case .success(let data):
print(data)
case .failure(let error):
print(error)
}
}
iCell, [email protected]
Alamofire is released under the MIT license. See LICENSE for details.