coincap

Haxe client for the coincap API.
https://gitlab.com/haath/coincap-haxe

To install, run:

haxelib install coincap 0.2.1 

See using Haxelib in Haxelib documentation for more information.

README.md

coincap-haxe

build status license haxelib version haxelib downloads


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');
Contributors
Haath
Version
0.2.1
Published
1 year ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub