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

Attempt any Knot.js package right te your browser

This is a playground to test code. It runs a total Knot.js environment and already has all of npm s 400,000 packages pre-installed , including kraken-exchange with all npm packages installed . Attempt it out :

  • all documents on RunKit are public
  • require() any package directly from npm
  • use arrow functions , classes , template strings , and most of ES6
  • await any promise instead of using callbacks (example)
  • create your own embedded knot.js snippets

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

Elementary library to access the kraken Exchange API

Access all elements of the kraken API

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 cojín 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 losbreken.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 kraken. 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 ter 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 losbreken.bidAsk(&apos,XBTEUR&apos,, &apos,ETHEUR&apos,), or kraken.bidAsk([&apos,XBTEUR&apos,, &apos,ETHEUR&apos,]), , whichever is lighter for the application.

Profit and loss on open positions

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

If byPair is passed spil true , it will terugwedstrijd the current nipt 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(&apos,XBT&apos,, &apos,ETH&apos,), or kraken.assets([&apos,XBT&apos,, &apos,ETH&apos,]), , 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(&apos,XBTEUR&apos,, &apos,ETHEUR&apos,), or kraken.assetPairs([&apos,XBTEUR&apos,, &apos,ETHEUR&apos,]), , 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 “If byPair is passed spil true , it will comeback the current nipt profit or loss for each currency pair rather than each currency.

  1. This is a good sign. So there are so many people who want to buy crypto currency. Hence wij vereiste wait for growth.

  2. This is a good sign. So there are so many people who want to buy crypto currency. Hence wij voorwaarde wait for growth.

  3. yes binance has to improve a loterijlot too Many technicals problems lately there customers services is truly bad i also sent all my funds back to bittrex and poloniex it,s very dissapointing from binance

Leave a Reply

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