Skip to content

maciekmalachowski/Crypto-charts-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊Crypto-charts-site

See for yourself
Website

Table of Contents


First look 👀

The Jupyter Notebook-based application was created to analyze market data using the Binance API using the Python-binance library. 

Numpy and Pandas allow users to retrieve and analyze market data. Visualization of charts is supported by 'Mplfinance', which uses Matplotlib.

Open-source library Mercury allows you to add interactive widgets in jupter-notebook, so you can share your notebook as a web application, which is deployed by https://cloud.runmercury.com.


Installation ℹ

  • First of all, clone this repository on your device. Open your shell and paste the following commands:

URL cloning

git clone https://github.com/maciekmalachowski/Crypto-charts-site.git

SSH cloning

git clone git@github.com:maciekmalachowski/Crypto-charts-site.git

  • Then, you need to install the requirements contained in requirements.txt.
pip install -r requirements.txt

  • Create a .env file and paste your api and secret keys from the Binance API.
api_key = 'your_api_key'
secret_key = 'your_secret_key'

  • After that, run internal mercury server in the repository folder.
mercury run

Mercury will read all the notebooks contained in the folder and automatically display them in the browser.


App appearance 🔍

  • The application has a sidebar, which is responsible for all activities related to cryptocurrency analysis.
  • Cryptocurrency analysis returns us information within a specified interval, such as:
    • Current price
    • Highest price
    • Lowest price
    • Mean price
  • It also displays a chart, which we can freely modify.

The Binance server that is being used is set to the time zone UTC+0

Download 💾

Mercury has the option to export an executed notebook to PDF or HTML. It is very simple. Click the Download button in the sidebar and select the desired format:

A first-time PDF download will trigger pyppeteer download and installation if it is not available in the system.

Make sure you have Chromium installed. It can be done with the following command:

pyppeteer-install

More images can be found in the media folder.