Code Monkey home page Code Monkey logo

bitcoinde_api's Introduction

Bitcoin.de WebSocket client (socket.io)

Code artifacts included with this repository have been forked from the https://github.com/matthiaslinden/bitcoinDE_API repository. The API has been tested against Python 3.7 (especially a remote Python configuration using Docker). See the original repository for further details about implemented API client functionality.

Changes

  • added Docker support
  • fixed code issues (code has been aligned with PEP-8)
  • fixed typos, and also removed informational comments
  • adjusted OOP-design (made changes to inheritance) add event-sinks objects
  • disabled ws1-endpoint, since this one does not seem to work without issues
  • removed imprecise/noisy debug outputs
  • adds support for event sinks to MultiSource
  • adds a ZeroMQ PUB socket event sink (publishes message-packed events).
  • adds commandline parsing capabilities to the WebSocket API application (defines --port argument for the ZeroMQ PUB socket server).

ZeroMQ PUB socket

This ZeroMQ PUB socket feature turns the application into a WebSocket API proxy service that is easier to consume by other applications. It opens a ZeroMQ PUB socket server on port 5634 that does not use any topics. Any event aggregated by the MultiSource client gets published over the socket. Event data is encoded/packed using msgpack (see pack method in Event class). The message has the following format:

message = {
    "timestamp": int,  # indicates the unix-timestamp (utc, seconds) when the event has been aggregated
    "type": str,  #  the event type, for instance: add, rm, ..
    "id": str,
    "data": dict  # event-specific data
}

Build and run Docker container

docker build -t bitcoindews-py -f Dockerfile .
docker run -d -p 5634:5634 bitcoindews-py

Examples

bitcoinde_api's People

Contributors

matzefriedrich avatar matthiaslinden avatar

Stargazers

box25 avatar

Watchers

James Cloos avatar

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.