Giter Club home page Giter Club logo

steemfeed's Introduction

Supported Exchanges

  • Bittrex
  • Openledger (BTS-STEEM, Open.BTC-STEEM)
  • Poloniex (Not listed yet)

Preparation

To use this price feed script, the following dependencies and packages should be installed.

sudo apt-get install libffi-dev libssl-dev python3-dev python3-pip
sudo pip3 install python-dateutil
sudo pip3 install websocket-client
sudo pip3 install steem

(if you got an error during installing steem, run sudo pip3 install upgrade pip)

In addition, you should run cli_wallet by using the following command,

cli_wallet -s ws://localhost:8090 -H 127.0.0.1:8092 --rpc-http-allowip=127.0.0.1

And unlock your cli_wallet.

Installation

Copy the code in this link and paste as steemfeed.py in your witness server.

Configuration

Then, edit the steemfeed.py to configure. We have some items under Config category in the code.

  • interval: Interval of publishing price feed. The default value is one hour (3600 seconds)
  • freq: Frequency of parsing trade history. Please be noticed that it can parse only 200 last trading history (Bittrex), so as trading is active you may need to decrease this frequency value.
  • min_change: Minimum price change percentage to publish feed
  • max_age: Maximum age of price feed
  • manual_conf: Maximum price change without manual confirmation. If price change exceeds this, you will be asked to confirm
  • use_telegram: If you want to use Telegram for confirmation, enter 1
  • telegram_token: Create your Telegram bot at @BotFather (https://telegram.me/botfather)
  • telegram_id: Get your telegram id at @MyTelegramID_bot (https://telegram.me/mytelegramid_bot)
  • bts_ws : List of BitShares Websocket servers
  • rpc_host: Your RPC host address
  • rpc_port: Your RPC host port
  • witness: Enter YOUR WITNESS ID here

Run

Then, run this code in a separate screen

screen -S steemfeed
python3 ./steemfeed.py

steemfeed's People

Contributors

clayop avatar jemekite avatar

Watchers

 avatar  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.