Skip to content

Repository files navigation

CryptoCompKit

Unofficial client library for accessing CryptoCompare.com's market data

Getting Started

The Docs

Take a look at their API docs for an overview and more information on the publicly available currency data.

Note: CryptoCompKit currently makes a limited subset of api endpoints available. More to be added.

Usage

All market end points are accesed through the CryptoCompKit class:

letcryptoCompKit=CryptoCompKit()

Once you have a CryptoCompKit() object instance, you can call an end point:

List of Coins

cryptoCompKit.coinList{ list, result inswitch result {case.success(_):updateUI(coins:list.coins)caselet.failure(error):handle(error:error)}}

List of Prices

letfrom=["BTC","ETH","LTC"]letto=["USD"]
cryptoCompKit.priceList(fSyms:from, tSyms:to){ list, result inswitch result {case.success(_):updateUI(prices:list.prices)case.failure(_):handle(error:error)}}

List of Historical Minutes (Candles)

cryptoCompKit.histoMinutes(fSym:"USD", tSym:"BTC"){ list, result inswitch result {case.success(_):updateUI(minutes:list.histos)case.failure(_):handle(error:error)}}

Installation

The easiest way to use CryptoCompKit is with CocoaPods

Installation with CocoaPods

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

platform:ios,'11.0'target'TargetName'dopod'CryptoCompKit'end

Then, run the following command:

$ pod install

Pre-Release Version

This is a pre-release version of CryptoCompKit and although it is stable and should be working in all the above cases, things will be added, changed and potentially break.

License

CryptoCompKit is released under the MIT license

About

💰Client Library for CryptoCompare.com's API 💰

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages