Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

University Institute of Engineering and

Technology
Panjab University, Chandigarh
Department of Electrical and Electronics Engineering

PROJECT WORK
CRYPTO-CURRENCY LIVE PRICE CHECKER

Submitted by :- BHUVNESH KUMAR UE204021


ANKIT CHAUHAN UE204011
TABLE OF CONTENTS
Chapters

1. Introduction
2. Software Required
2.1Jupyter

3. What is crypto-currency
3.1 Price chart/ Crypto chart
3.2 Candlesticks & It’s Pattern

4. Crypto currency chart Pattern


5. How does Crypto-currency work
6. Source code
7. Result/Testing
8. References
Chapter 1
INTRODUCTION
A crypto currency price tracker monitors the current value of different
digital currencies and tokens. Many of these services provide historical
data as well, allowing users to compare current prices against older
values.

Cryptocurrency price trackers should use reliable data and consistently update
their data.
CoinMarketCap is the industry's most popular and recognizable cryptocurrency
price tracker; other trackers include Coinlib and Bitgur.
Chapter 2
Software Required

• Jupyter ,Binance

• Front _design: tkinter

• Front end Language : Python


What is jupyter ?
Jupyter Notebook allows users to compile all aspects of a data project in one
place making it easier to show the entire process of a project to your intended
audience. Through the web-based application, users can create data
visualizations and other components of a project to share with others via the
platform

One of the best parts of using Jupyter Notebook is its flexibility and versatility,
as you can work with the technology by downloading Jupyter lab, or simply
opening your browser to use the notebook on the go through the original
application. A tool that was made for collaboration and interactivity, Jupyter
Notebook is also compatible with the most commonly used programming
languages such as R, C++, Ruby, and Python.
What is Python ?

Python Is a popular programming language. It was created by Guido


van Possum, and released in 1991.

It is used for
1.Web development (server-side).
2. Software Development,
3. Mathematics,
What is Tkinter ?
 Tkinter is the de facto way in Python to create Graphical User interfaces (GUIs) and is included in all
standard Python Distributions. In fact, it’s the only framework built into the Python standard library. 

This Python framework provides an interface to the Tk toolkit and works as a thin object-oriented
layer on top of Tk. The Tk toolkit is a cross-platform collection of  ‘graphical control elements’, aka
widgets, for building application interfaces.

This framework provides Python users with a simple way to create GUI elements using the widgets
found in the Tk toolkit. Tk widgets can be used to construct buttons, menus, data fields, etc. in a
Python application. Once created, these graphical elements can be associated with or interact with
features, functionality, methods, data or even other widgets. 
3. What is crypto currency ?
Cryptocurrency is a digital payment system that doesn't rely on banks to verify
transactions. It’s peer to peer system that can enable anyone anywhere to send and
receive payments. Instead of being physical money carried around and exchanged in
the real world, cryptocurrency payments exist purely as digital entries to an online
database describing specific transactions. When you transfer cryptocurrency funds, the
transactions are recorded in a public ledger. Cryptocurrency is stored in digital wallets.
Cryptocurrency received its name because it uses encrypted to verify transactions. This
means advanced coding is involved in storing and transmitting cryptocurrency data
between wallets and to public ledgers. The aim of encryption is to provide security and
safety.
The first cryptocurrency was Bitcoin, which was founded in 2009 and remains the best
known today. Much of the interest in cryptocurrencies is to trade for profit, with
speculators at times driving prices skyward.
3.1 Price chart
1.Crypto charts are graphical representations of historical price, volumes, and time intervals. The charts
form patterns based on the past price movements of the digital currency and are used to spot investment
opportunities.
2.A Candlestick is among the frequently used charts by crypto traders. To interpret the image above,
you should be aware that a candle is represented in red when the closing price is lower than the starting
price during a specified time frame. This means the price of the asset declined. In contrast, the green
candle shows that the closing price was greater than the starting price. This indicates that the asset’s
price rose. These candlestick charts form several patterns. Depending on the shape, colour and size of
the candlestick, traders take positions or make changes in their trading strategies.
3.1 Price chart/Crypto chart
1.Crypto charts are graphical representations of historical price, volumes,
and time intervals. The charts form patterns based on the past price
movements of the digital currency and are used to spot investment
opportunities.
2.A Candlestick is among the frequently used charts by crypto traders. To
interpret the image above, you should be aware that a candle is represented
in red when the closing price is lower than the starting price during a
specified time frame. This means the price of the asset declined. In contrast,
the green candle shows that the closing price was greater than the starting
price. This indicates that the asset’s price rose. These candlestick charts
form several patterns. Depending on the shape, colour and size of the
candlestick, traders take positions or make changes in their trading
strategies.
3.2 Candlesticks & It’s Pattern
The candlestick's shadows show the day's high and
low and how they compare to the open and close. A
candlestick's shape varies based on the relationship
between the day's high, low, opening and closing
prices.

Candlestick patterns are used to predict the future


direction of price movement. Discover 16 of the most
common candlestick patterns and how you can use
them to identify trading opportunities.
4.Crypto currency cart pattern
There are hundreds of different chart patterns out there, but a handful of
them have survived the test of time. Since chart patterns are so subjective,
there aren’t any “proven” patterns that work better than others, as is the case
with less subjective analytical tools. Most traders identify a handful of chart
patterns that work best for them

1. Price Channels Crypto Chart Patterns


2.Ascending Triangle & Descending Triangle Cryptocurrency
Chart Patterns
3.Head & Shoulders Crypto Chart Patterns
4.Triple & Double Top & Bottom Cryptocurrency Chart Patterns
5.Rising Wedge & Falling Wedge Crypto Graph Patterns
6.Channel Down & Channel Up Crypto Graph Patterns
7.Bullish and Bearish Flag Crypto Graph Patterns
1. Price Channels Crypto Chart Patterns

Price channels are built by creating two ascending,


descending or horizontal parallel lines that connect a
series of highs and lows. These are areas of support
(lower) and resistance (higher) and prices tend to bounce
between them. Most traders buy toward the bottom and
sell toward the top, while breakouts or breakdowns can be
significant moves.
2. Ascending Triangle & Descending Triangle Cryptocurrency Chart Patterns

Ascending and descending triangles are created with


one horizontal trend line connecting highs or lows and
a second sloped trend line connecting rising highs or
falling lows. The resulting right triangle leads up to a
decision point where the price tends to breakout or
breakdown from the horizontal line in the direction of
the sloped line.

In the example above, there’s an ascending triangle followed


by a breakout on high volume. Traders would have entered
into a long position following the breakout from the upper
trend line with a price target equal to the height of the
triangle applied to the upper trend line. In this case, the high
volume during the breakout provides a great confirmation.
3. Head & Shoulders Crypto Chart Patterns

The Head and Shoulders is a slightly more advanced


chart pattern that's characterized by a temporary high or
low, followed by an even bigger move higher or lower,
followed by a third move higher or lower that's equal to
the first move. The pattern resembles a head with two
shoulders that's either right-side up (bearish) or upside
down (bullish).

In the example above, there’s a bearish head and shoulders


pattern that predicts the subsequent sharp decline. Traders
would have entered into a short position after the price broke
down from the shoulder line (the horizontal trend line) with a
price target equal to the distance between the shoulder line
and head.
4. Triple & Double Top & Bottom Cryptocurrency Chart Patterns

When markets bounces off the same resistance (top) or support


(bottom) level two or three times in a row, this is known as a triple
or double top and bottom chart pattern.
A bullish indication is regarded a double bottom, while a bearish
signal is considered a double top. Both the triple and double
patterns are reversal settings, indicating that prices are poised to
change direction.
Although double tops and bottoms are significantly more prevalent
crypto graph patterns, triple patterns frequently produce greater
reversals
In the example above, there’s a bearish double top pattern that predicts a
decline. Traders would have entered into a bearish position after the price
broke down from the prior reaction low in early-July. In this case, it’s
worth noting that the bearish volume was light compared to the high
bullish volume, suggesting that it was a weak pattern.
5. Rising Wedge & Falling Wedge Crypto Graph Patterns

Rising and falling wedges are similar to ascending and descending


triangles, except both the upper and lower lines are sloped in the same
direction (but are still converging). Unlike the ascending and
descending triangle, rising and falling wedges are reversal patterns. A
rising wedge is a bearish signal and a falling wedge is a bullish signal.

6. Channel Down & Channel Up Crypto Graph Patterns


The channel down and channel up crypto trading patterns are diagonal parallel lines of
exchange range. It develops when parallel support and resistance lines are crossed by an
uptrend or decline. It implies either a potential trend reversal or a change in the present
trend's slope.
7. Bullish and Bearish Flag Crypto Graph Patterns

These crypto patterns are expressed by small rectangular trading ranges within diagonal parallel lines for
shorter periods of time. It moves against the dominant price trend over a longer time period. It often
develops after a rapid gain or collapse and frequently denotes a slight change in trend (or areas of
consolidation) prior to the return of the prior trend.
Bullish flags and bearish flags are both examples of flag patterns because it creates a backdrop for entering
an established trend that is prepared to continue, the flag pattern is one of the most trustworthy continuity
patterns used by traders.
5.How does cryptocurrency work?

a distributed public ledger called blockchain, a record of all transactions updated and held by currency holders.
re created through a process called mining, which involves using computer power to solve complicated mathematica
y the currencies from brokers, then store and spend them using cryptographic wallets.
y, you don’t own anything tangible. What you own is a key that allows you to move a record or a unit of measure from
ty.
n around since 2009, cryptocurrencies and applications of blockchain technology are
terms, and more uses are expected in the future. Transactions including bonds, stocks, and other financial assets c
6.SOURCE CODE
import requests
from bs4 import BeautifulSoup
import tkinter as tk
from tkinter import ttk
from tkinter import font as tkFont
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

driver_path = input('Enter chrome driver path: ')

# Function to scrape stock data from generated URL


def scraper():
url = 'https://www.cointracker.io/price'
driver = webdriver.Chrome(driver_path)
driver.get(url)

# Wait for results to load


time.sleep(5)
html = driver.page_source

# Start scraping resultant html data


soup = BeautifulSoup(html, 'html.parser')

# Find the crypto price table to scrape


results = soup.find("table", {"class": 'table mx-auto'})
rows = results.findChildren('tr')
table_data = []
row_values = []
# Append individual cryptocurrency data into a list
for row in rows: cells = row.findChildren(['th', 'td'])
for cell in cells:
value = cell.text.strip()
value = " ".join(value.split())
row_values.append(value)
table_data.append(row_values)
row_values = []
# Formatting the cryptocurrency data stored in the list
stocks_data = ""
for stock in table_data:
single_record = ""
for cell in stock:
format_cell = "{:<30}"
single_record += format_cell.format(cell[:20])
single_record += "\n"
stocks_data += single_record
# Adding the formatted data into tkinter GUI
query_label.config(state=tk.NORMAL)
query_label.delete(1.0, "end")
query_label.insert(1.0, stocks_data)
query_label.config(state=tk.DISABLED)
driver.close()
# Creating tkinter window
window = tk.Tk()
window.title('Cryptocurrency Price Checker')
window.geometry('1200x1000')
window.configure(bg='white')
style = ttk.Style()
style.configure('my.TButton', font=('Helvetica', 16))
style.configure('my.TFrame', background='white')

# label text for title


ttk.Label(window, text="Cryptocurrency Price Checker",
background='white', foreground="DodgerBlue2",
font=("Helvetica", 30, 'bold')).grid(row=0, column=3, padx=300)

submit_btn = ttk.Button(window, text="Fetch Live Price!",


style='my.TButton', command=scraper)
submit_btn.grid(row=5, column=3, pady=5, padx=15, ipadx=5)

frame = ttk.Frame(window, style='my.TFrame')


frame.place(relx=0.50, rely=0.12, relwidth=0.98, relheight=0.90, anchor="n")

# To display stock data


query_label = tk.Text(frame, height="52", width="500", bg="lightskyblue1")
query_label.grid(row=7, columnspan=2)

window.mainloop()
RESULT/TESTING
REFERENCES

https://chromedriver.storage.googleapis.com/index.html?path=107.0.5304.62/

You might also like