karolispx / python-crypto-pack

Simple python script that allows calculating crypto profits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Crypto Pack

This is my first ever Python script! There's probably many better ways to do things, use this at your own risk!


Introduction

It becomes problematic when you have crypto-currencies in several different exchanges, it's hard to know how much you've lost/made. This is a simple tool that allows calculating profits/losses for your crypto-currencies.

Script has been build having Arduino in mind, I've previously built something similar in GoLang and have written a small script for Arduino that made a call to the GoLang endpoint to calculate profits and display on an LCD screen. Cool little project!


Getting Started

To get started, simply populate coins array with your coins and you're good to go!

coins = [
	{'id': 'bitcoin', 'invested': 1000, 'amount': 1, 'price_eur': 0, 'worth': 0, 'made_loss': 0},
	{'id': 'ethereum', 'invested': 3000, 'amount': 3, 'price_eur': 0, 'worth': 0, 'made_loss': 0}
]

Install dependencies

  • pip install requests flask flask-restful

Run It Locally

  1. Clone this repository
  2. Open the folder in your terminal
  3. Run python profits.py
  4. Open http://127.0.0.1:8082/ in your browser to see your profits

About

Simple python script that allows calculating crypto profits.


Languages

Language:Python 100.0%