API Kraken | REST Public API

Connection

URL: https://api.kraken.com

 

Kraken Public API doesn't require any authentication.

 

Configuration

The only configuration is enable or not a log for REST HTTP requests. Enable HTTPLogOptions if you want to save in a text file log all HTTP Requests/Responses

 

Events

  OnKrakenHTTPException: this event is called if there is any exception doing an HTTP Request from REST Api.

 

Methods

GetServerTime

This method is to aid in approximating the skew time between the server and client. Returns Time in Unix format.


{"error":[],"result":{"unixtime":1586705546,"rfc1123":"Sun, 12 Apr 20 15:32:26 +0000"}}

GetAssets

Returns information about Assets


{"error":[],"result":{"ADA":{"aclass":"currency","altname":"ADA","decimals":8,"display_decimals":6}}}}

GetAssetPairs

Returns information about a pair of assets


Kraken.REST_API.GetAssetPairs(['XBTUSD']);

GetTicker

Returns ticker information


Kraken.REST_API.GetTicker(['XBTUSD']);

GetOHLC

Returns Open-High-Low-Close data.


Kraken.REST_API.GetOHLC('XBTUSD');

GetOrderBook

Returns Array pair name and market depth.


Kraken.REST_API.GetOrderBook('XBTUSD');

GetTrades

Returns recent trade data of a pair.


Kraken.REST_API.GetTrades('XBTUSD');

GetSpread

Returns recent spread data of a pair.


Kraken.REST_API.GetSpread('XBTUSD');