Skip to content

guillaume-gricourt/telegraf-kraken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegraf-kraken

Github Version
Code style: black GitHub Super-Linter

This plugin will pull ticker stats from Kraken API.

Configuration

Ticker

The minimal configuration expects the pairs to be set.

[[inputs.ticker]]
  ## Pairs to grab - Required
  pairs = [""]

  ## Timeout for HTTP requests
  # timeout = "5s"

Installation

  • Clone the repository
git clone git@github.com:guillaume-gricourt/telegraf-kraken.git
  • Build the bin/telegraf-kraken-<label> binary

The label refers to the endpoint of the API. The labels available are:

  • ticker: Get Ticker Information
  • depth: Get Order Book
  • spread: Get Recent Spreads, only last one is kept
make <label>
  • You should be able to call this from telegraf now using execd
[[inputs.execd]]
  command = ["/path/to/telegraf-kraken-<label>", "-poll_interval 1m"]
  signal = "none"

This self-contained plugin is based on the documentations of Execd Go Shim