free web page hit counter
New version of Kraken WebSockets Public API goes live May 30!

New version of Kraken WebSockets Public API goes live May 30!

Kraken 

Cryptocoins Exchanges / Kraken  28 Views

The original release of the Kraken WebSockets Public API was a huge success. Thousands of clients have already connected for fast and easy access to Kraken’s market data. Clients still using our REST API for public market data should consider switching and can get started with our documentation here: https://www.kraken.com/features/websocket-api

We are making several enhancements to the initial release that are scheduled to go live May 30.

Try out the enhancements now
The enhancements are already live in our beta environment – to make sure your code works with the new API and you are ready to go on May 30, we highly recommend that all clients currently using the API try out the changes as soon as possible.

Beta documentation: https://www.kraken.com/features/websocket-api-beta
Beta environment: ws-beta.kraken.com

Summary of enhancements

Enhancement 1
Two new string-type parameters channelName (designating the subscription Channel Name) and pair (designating the asset pair) are added to the messages ticker, ohlc, spread, trade, and book. This makes it easier to identify message payloads when streaming real-time data for multiple pairs and channels. These parameters are added near the end of the payload as illustrated in the example below, however the documentation currently shows them near the beginning (this will be corrected with a site update on May 30).

Enhancement 2
Two new float-type parameters bidVolume and askVolume are added to the spread message payload. Note that these parameters are also added near the end of the payload as the example shows (the originally published example showed them earlier in the payload).

Enhancement 3
The ticker message provides an initial snapshot upon subscription showing the last ticker.

Example payload (illustrating enhancements 1 and 2)

[3,				channelID

  [

  “5150.20000",			bid

  “5151.90000",			ask

  “1556560666.327763"		timestamp

  “1.26089615”,			bidVolume

  “0.00187810”,			askVolume

  ],

“spread”,			channelName

“XBT/USD”,			pair

]

Kraken also offers a WebSockets API for other products in the Kraken family, including Kraken Futures and CryptoWatch. Follow the links below for the API documentation.

Kraken Futures (cryptofacilities.com): https://www.cryptofacilities.com/resources/hc/categories/115000132213-API

CryptoWatch (in beta testing phase): https://cryptowat.ch/docs/websocket-api

The post New version of Kraken WebSockets Public API goes live May 30! appeared first on Kraken Blog.

Comments