Git Product home page Git Product logo

kraken_ticker's Introduction

kraken_ticker: Kraken market ticker

Small library/CLI that connects to Kraken exchange websocket API and exposes a simple API for subscribing to tickers and creating custom handlers.

API

Currently undocumented, but the code should be reasonably readable. See https://docs.kraken.com/websockets/ for documentation on the passed message format (the library just parses the JSON, no other processing is done). When sending, sequentially generated reqid is automatically added to all sent messages.

CLI usage

Also works as a console notifier on Windows 10 - when launched directly, current market rates are shown in console and if a provided threshold is crossed, a toast notification is shown.

Usage: py -m src <CURRENCY_1> <CURRENCY_2> <THRESHOLD> (see run.ps1 for example).

<CURRENCY_1> and CURRENCY_2> are the market pair you want a ticker for (e.g. "XBT" "EUR").

THRESHOLD is the delta from last displayed ask price that must be crossed to show a notification (e.g. if threshold is 1 and last notification was shown when market rate was 500, next notification will be shown when crossing 499 or 501).

Windows 10 notification

Dependencies:

  • win10toast
  • websockets

(see requirements.txt)

kraken_ticker's People

Contributors

dependabot[bot] avatar matejkafka avatar

Watchers

 avatar

Forkers

berapp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.