Giter Site home page Giter Site logo

pricefeed's Introduction

Steem Witness Price Feed Publishing Tool

Install nodejs & npm

If you already have nodejs & npm installed you can skip this section, but I wanted to include it here for thoroughness. Run the following commands to install nodejs and npm in order to run the pricefeed software:

$ sudo apt-get update
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
$ sudo apt-get install -y nodejs

Setup & Installation

Clone the project repo into the "pricefeed" directory and install using NPM:

$ git clone https://github.com/MattyIce/pricefeed.git pricefeed
$ cd pricefeed
$ npm install

Update the config.json file with your witness account name and private active key as described in the Configuration section below.

Run in background with PM2

I suggest using the PM2 software to manage and run your nodejs programs in the background. Use the following commands to install PM2 and run the pricefeed program:

$ sudo npm install pm2 -g
$ pm2 start feed.js
$ pm2 logs feed

If everything worked you should not see any errors in the logs and a price feed transaction should have been published to your account.

Run in Docker

If you prefer using Docker, use the following commands:

docker build -t pricefeed .
docker run -itd --rm --name pricefeed pricefeed

# Check the status with docker logs
docker logs pricefeed

Configuration

{
  "rpc_nodes": [											// List of RPC nodes to use
    "https://api.steemit.com",
    "https://rpc.buildteam.io",
    "https://steemd.minnowsupportproject.org",
    "https://steemd.privex.io",
    "https://gtg.steem.house:8090"
  ],
  "account": "witness_account_name",						// Name of your Steem witness account
  "active_key": "witness_account_private_active_key",		// Private active key of your Steem witness account
  "exchanges": ["bittrex", "poloniex", "binance"],  // List of exchanges to use. Will publish an average of all exchanges in the list. If no exchanges are specified it will fall back to coinmarketcap.com as the default.
  "interval": 60,											// Number of minutes between feed publishes
  "peg_multi": 1											// Feed bias setting, quote will be set to 1 / peg_multi
}

pricefeed's People

Contributors

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