Optional parameters are shown within square brackets: [ and ] .

This module fully implements the kraken API. The total 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 saco 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() .

Get your API key and private key from here.

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 kraken. Currency codes will have bot converted and floating responses may be returned spil floats rather than strings.

All methods terugwedstrijd 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 ter order to pass zometeen 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.

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.

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

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

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

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

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

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

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

3 thoughts on “Optional parameters are shown within square brackets: [ and ] .

  1. It wasgoed good to hear the news. Hopefully this will not toebijten ter future. I think the Exchenger will more stronger ter the future.

  2. binance is back , but i heard some strange news that its better to withdraw money from it to be at safe for some months, because tether can scam and you can lose some money , something like that.

Leave a Reply

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