Simple library for interfacing with the CoinCap.io API.
Currently the WebSocket API is not supported.
Installation
The library is available on Haxelib.
haxelib install coincap
Usage
Initialize a CoinCapClient object.
var client: CoinCapClient = new CoinCapClient();
Or if you also have an API key...
var client: CoinCapClient = new CoinCapClient(apiKey);
Note that all methods return tink_core promises. As such they are compatible with the rest of the tink framework. For the examples here, it is assumed that tink_await is also installed, but it is not a dependency of this library.
All of the API is available, some examples are below.
var assets: Array<Asset> = @await client.getAssets();
var asset: Asset = @await testObject.getAsset('cardano');
var exchange: Exchange = @await testObject.getExchange('kucoin');