Kraken Client Command Line Application for Windows, OSX and Linux

Kraken Client Commands

Fully Featured Application

Kraken WebSockets Public API offers real-time market data updates. WebSockets is a bidirectional protocol offering fastest real-time data, helping you build real-time applications.

Supported Methods

Client component supports Ticker, OHLC, Trade, Booke, Spread, Ping and other methods.

Kraken Client Win32

Kraken Client Win32
Kraken Client Win32

Kraken Client Win64

Kraken Client Win64
Kraken Client Win64

Kraken Client OSX64

Kraken Client OSX64
Kraken Client OSX64

Kraken Client OSXARM64

Kraken Client OSXARM64
Kraken Client OSXARM64

Kraken Client Linux64

Kraken Client Linux64
Kraken Client Linux64

How Open a new Kraken Connection

Example: open a websocket connection to Socket.IO server

{"message":"open"}

Subscribe Ticker

Example: subscribe ticker XBT/USD

{"message":"subscribeticker", "protocol": "kraken", "pairs": ["XBT/USD"]}

 

How close connection

{"message":"close"}

UnSubscribe Ticker

Example: unsubscribe ticker XBT/USD

{"message":"unsubscribeticker", "protocol": "kraken", "pairs": ["XBT/USD"]}

 

Subscribe OHLC

Example: subscribe OHLC XBT/USD 5min

{"message": "subscribeohlc", "protocol": "kraken", "pairs":"["XBT/USD"], "params":{"interval": 1}}

 

 

Subscribe Trades

Example: subscribe Trades XBT/USD

{"message": "subscribetrade", "protocol": "kraken", "pairs":"["XBT/USD"]}

 

 

Subscribe Book

Example: subscribe Book Depth 25 XBT/USD

{"message": "subscribebook", "protocol": "kraken", "pairs":"["XBT/USD"], "params":{"depth": 1}}

 

 

Subscribe ALL

Example: subscribe ALL XBT/USD

{"message": "subscribeall", "protocol": "kraken", "pairs":"["XBT/USD"]}

 

 

TCP Server

All console applications can run an internal TCP Server that allows to send and receive commands as if were written directly on the console application.

Just start the application with the command -server and a new server will be started listening on port 8080. Example: if you want enable the server on WebSocket client, start the console application as follows:

sgcWebSocketClient.exe -server

Find below the full TCP Server parameters:

-server: starts the internal server on port 8080

-server.port: sets the listening port

-server.ip: sets the binding ip (useful if there are multiple ips).

If the server is enabled, a client connected to this server can send any JSON message and will receive any response as if was written directly from console application.

Example: if you want enable server on IP 192.168.1.1 and Port 5412

sgcWebSocketClient.exe -server -server.ip 192.168.1.1 -server.port 5412