2qov3b / CryptoApp

A Flask app to show cryptocurrency trading data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CryptoApp

A Flask app to show cryptocurrency trading data.

Get Start!

  1. Clone the repository
  2. Create and active a virtualenv:
$ python3.8 -m venv env
$ source env/bin/activate
  1. Install dependencies:
$ pip install -r requirements.txt
$ pip install prometheus-client
  1. Run the Flask application:
$ flask run
  1. Open another new terminal and run Prometheus:
// Get the metrics from '/chart-data' endpoint
$ python metric_exporter.py http://127.0.0.1:5000/chart-data
  1. Confirmation: Access to http://127.0.0.1:5000/ and you can find the page which every 10 seconds print the result of Q4 and the absolute delta from the previous value for each symbol.: Alt text

Q1: Alt text

Q2: Alt text

Q3: Alt text

Q4: Alt text

Access to http://127.0.0.1:8080/metrics and get metrics like: Alt text

About

A Flask app to show cryptocurrency trading data.


Languages

Language:Python 50.7%Language:HTML 49.3%