Giter Site home page Giter Site logo

luizsonego / bitcoinaverage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcoinaverage/bitcoinaverage

0.0 2.0 0.0 3.26 MB

BitcoinAverage v1 API. This is no longer maintained and v2 is now live > https://apiv2.bitcoinaverage.com/

Home Page: https://bitcoinaverage.com

License: Other

Python 36.45% HTML 43.15% CSS 7.03% JavaScript 13.38%

bitcoinaverage's Introduction

19/06/2017

Version 2 of our API has now been running for around 9 months, as such Version 1 of the API has been switched off.

All bitcoin, ethereum, litecoin, ripple price data is freely available.


03/12/2015

This version of the reposisitory will remain "as-is" going forward. Many changes have been made privately to this version. The repository is working but will no longer be maintained.


this is the source of BitcoinAverage.com website

licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

run instructions

  • download sources
  • copy server.py.dist into server.py in the same folder and setup paths to folders (see comments in the file).
  • install dependencies with sudo apt-get install python-dev libevent-dev libxml2-dev python-pip libxslt1-dev redis-server && sudo apt-get build-dep libxml2 && sudo pip install SQLObject eventlet requests libxslt-dev lxml redis simplejson
  • to run the api_daemon.py you need python 2.7, no db or other storage engines needed. Install any other missing dependencies if needed.

system structure

There are several *_daemon.py files in the project root folder - these are parts of the backend that make whole thing work. Despite "daemon" name these are not real system daemons yet (there is an outstanding task in github for that).
Daemons are:

  • /api_daemon.py - main script, it loads all settings from bitcoinaverage/config.py, queries all external exchanges APIs, creates bitcoinaverage own API and regenerates API files (except for history part).
  • /history_daemon.py - fetches current data from live API and generates history API csv files. It uses HTTP to fetch API data so it can seamlessly run on separate server if needed.
  • /twitter_daemon.py - sends updates to twitter.
  • /image_daemon.py - generates price images (I wonder if anybody uses these images)
  • /monitor_daemon.py - monitors last update timestamps for api and history daemons, triggers email alerts if timestamp is older than 5 min.
  • /api folder - stores all API files. Yes, whole bitcoinaverage API is read only and based on static JSON files generated by api_daemon and served by nginx. Simple, but very high performance (only bandwidth is the limit). whole contents of this folder is generated automatically, just configure server.py and run api_daemon. This folder must be web accessible as web API.
  • /www folder - actual website. Static, must be web accessible. Files in /www/charts/* and /www/currencies/* are generated automatically and are not meant to be user viewed.

Whole frontend is JS-driven, it fetches JSON API via AJAX and renders the page.

Feel free to contact us at [email protected] for with questions on any matters about this system and website.

related thirdparty libraries

bitcoinaverage's People

Contributors

afshing avatar alexykot avatar arturoherrero avatar dumbmatter avatar georgevaccaro avatar jehkinen avatar jonathancross avatar littleant avatar obi avatar pinhopro avatar ryancdotorg avatar trevinhofmann 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.