A CoinCap API written on a modern language Swift.
Coincap().assets { (cryptocurrencies) in
print(cryptocurrencies.map { $0.name })
// Prints ["Bitcoin", "Ethereum", "Tether", "XRP" ... ]
}
Coincap().assets(search: "Bitcoin") { (cryptocurrencies) in
print(cryptocurrencies.map { $0.name })
// Prints ["Bitcoin", "Bitcoin Cash", "Bitcoin SV" ... ]
}
Coincap().assets(ids: ["bitcoin", "ethereum", "nano"]) { (cryptocurrencies) in
print(cryptocurrencies.map { $0.name })
// Prints ["Bitcoin", "Ethereum", "Nano"]
}