You do not need Coffeescript to use the library, it is pre-compiled to Javascript ES6.

Access all elements of the kraken API

This module fully implements the kraken API. The utter documentation for the API is available on the API help pagina.

It is written te Coffescript V2 using native Promises and its only dependencies are request and its wrapper, request-promise-native. You do not need Coffeescript to use the library, it is pre-compiled to Javascript ES6.

Losbreken uses currency symbols preceded by an X or a Z to bring all symbols to four characters. For example XXBT , ZUSD , XETH but DASH with no preceding X . This library uses the three-letter forms thoughout, other than where the pulvínulo symbol is four letters, e.g. DASH . Thus Euros are always referred to spil EUR and Bitcoin spil XBT .

There are a few toegevoegd methods that are not provided by the kraken API. Thesis are utility methods which generally give a simplified view of another method. Examples are kraken.profitLoss() and kraken.bidAsk() .

Install

Get your API key and private key from here.

Example

Constructor

Methods

For each method (other than the derived methods), please see the API documentation. Below I have simply documented the call, the response will generally be spil documented by Losbreken. Currency codes will have bot converted and floating responses may be returned spil floats rather than strings.

All methods comeback Promises and pass a single result object to the .then() . Optional parameters are shown within square brackets: [ and ] . It may be necessary to pass a null for some parameters te order to pass straks ones.

No errors are caught or reported within the library. All calls should have a .catch(err) to pick up the error.

N.B. The order of parameters te methods is spil below which may differ from the kraken documentation te order to waterput less-used parameters twards the end of the list.

Derived methods

Media price inbetween bid and ask

The parameters can be a list of pairs or a single array can be passed.

So kraken.bidAsk(‘XBTEUR’, ‘ETHEUR’), or kraken.bidAsk([‘XBTEUR’, ‘ETHEUR’]), , whichever is lighter for the application.

Profit and loss on open positions

This will terugwedstrijd an object with the current televisiekanaal profit or loss for each currency te open positions.

If byPair is passed spil true , it will come back the current netwerken profit or loss for each currency pair rather than each currency.

Public market gegevens

Get server time

Get asset informatie

The parameters can be a list of assets or a single array can be passed.

So kraken.assets(‘XBT’, ‘ETH’), or losbreken.assets([‘XBT’, ‘ETH’]), , whichever is lighter for the application.

Get tradable asset pairs

The parameters can be a list of pairs or a single array can be passed.

So losbreken.assetPairs(‘XBTEUR’, ‘ETHEUR’), or kraken.assetPairs([‘XBTEUR’, ‘ETHEUR’]), , whichever is lighter for the application.

Get ticker information

The parameters can be a list of pairs or a single array can be passed.

3 thoughts on “You do not need Coffeescript to use the library, it is pre-compiled to Javascript ES6.

  1. I wonder if they presente got hacked or if it wasgoed just maintenance. Wij shall never know I guess but i still indeed like Binance and I truly like that they suggested 70% off transaction fees for the entire month because they went down.

  2. Changpeng Zhao, CEO of Binance, called the stir the platform’s “next big step” ter its universal expansion strategy.

  3. Binance is one of my favourites exchanges.. very effortless interface and there are alot of common currencies that it had united… and also my 30k usd worth ripple were stuck there .. good to see it back

Leave a Reply

Your email address will not be published. Required fields are marked *