guillaume-gricourt / telegraf-kraken

Telegraf plugin for Kraken

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Telegraf plugin for Kraken

License:MIT License


Languages

Language:Go 95.3%Language:Makefile 4.7%