Giter Site home page Giter Site logo

btsprice's Introduction

get bitshares price

This project provides a bitshares price feed for witnesses

Project Setup

Quick Start

Install

$ git clone https://github.com/pch957/btsprice.git
$ cd btsprice
$ python3 ./setup.py install --user
$ cp ./config.json.sample ./config.json
$ vim ./config.json

Set CLI Wallet object:

  • witness = your witness account name
  • host = localhost (if installing pricefeed on same server as the node)
  • port - whatever port the cli rpc port is on (number, no quotes)
  • user = leave blank
  • passwd = leave blank
  • unlock = the cli wallet password
    "witness": "",

    "cli_wallet": {
        "host" : "localhost",
        "port" : 8093,
        "user" : "",
        "passwd" : "",
        "unlock" : ""

Login to your cli_wallet

>>> import_key "your_witness_account_name" YOUR_ACTIVE_PRIVATE_KEY

Make sure your cli_wallet is advertising on rpc port entered in cli_wallet object above.

Make sure this continues to run as a background process even after you logout.

cli_wallet -H 127.0.0.1:8093

Run the price feed script

Make sure this continues to run as a background process even after you logout.

cd btsprice
python3 ./main.py --config ../config.json

Supported Python Versions

supports the following versions out of the box:

  • CPython 2.6, 2.7, 3.3
  • PyPy 1.9

CPython 3.0-3.2 may also work but are at this point unsupported. PyPy 2.0.2 is known to work but is not run on Travis-CI.

Jython_ and IronPython_ may also work, but have not been tested. If there is interest in support for these alternative implementations, please open a feature request!

.. _Jython: http://jython.org/ .. _IronPython: http://ironpython.net/

Licenses

The code which makes up this project is licensed under the MIT/X11 license. Feel free to use it in your free software/open-source or proprietary projects.

Issues

Please report any bugs or requests that you have using the GitHub issue tracker!

Authors

  • Alt

btsprice's People

Contributors

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