diff --git a/README.md b/README.md
index a5bdc045..bb294a2d 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,33 @@
-# Bitcoin Miner in Python
+# Visualizing Bitcoin in Python
+## 2022
+
+
+## 2021
## Libraries
```
-import hashlib
+pip install pandas-datareader
+```
+
+```
+pip install matplotlib
+```
+
+```
+pip install mplfinance
+```
+
+## or
+
+```
+pip install -r requirements.txt
```
py-3.10.8
diff --git a/miner.py b/miner.py
deleted file mode 100644
index 352b3440..00000000
--- a/miner.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import hashlib
-
-NONCE_LIMIT = 100000000000
-
-zeroes = 4
-
-def mine (block_number, transactions, previous_hash):
- for nonce in range (NONCE_LIMIT) :
- base_text = str(block_number) + transactions + previous_hash + str(nonce)
- hash_try = hashlib.sha256 (base_text.encode()).hexdigest ()
- if hash_try.startswith('0' * zeroes):
- print (f"Found Hash With Nonce: {nonce}")
- return hash_try
-
- return -1
-
-block_number = 24
-transactions = "76123cc21149"
-previous_hash = "876de8756b967c87"
-
-# combined_text = str(block_number) + transactions + previous_hash + str(78)
-# print(hashlib.sha256(combined_text.encode()).hexdigest())
-
-mine(block_number, transactions, previous_hash)
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index e69de29b..3edc8e51 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -0,0 +1,21 @@
+certifi==2022.9.24
+charset-normalizer==2.1.1
+contourpy==1.0.6
+cycler==0.11.0
+fonttools==4.38.0
+idna==3.4
+kiwisolver==1.4.4
+lxml==4.9.1
+matplotlib==3.6.2
+mplfinance==0.12.9b5
+numpy==1.23.5
+packaging==21.3
+pandas==1.5.2
+pandas-datareader==0.10.0
+Pillow==9.3.0
+pyparsing==3.0.9
+python-dateutil==2.8.2
+pytz==2022.6
+requests==2.28.1
+six==1.16.0
+urllib3==1.26.13
diff --git a/src/2022.png b/src/2022.png
new file mode 100644
index 00000000..81d7d636
Binary files /dev/null and b/src/2022.png differ
diff --git a/src/main.png b/src/main.png
index d5c1f9fc..1dc12d5c 100644
Binary files a/src/main.png and b/src/main.png differ
diff --git a/vb2021.py b/vb2021.py
new file mode 100644
index 00000000..7e1c8fda
--- /dev/null
+++ b/vb2021.py
@@ -0,0 +1,19 @@
+import pandas_datareader as web
+import matplotlib.pyplot as plt
+import mplfinance as mpf
+
+import datetime as dt
+
+crypto = "BTC"
+currency = "USD"
+
+start = dt.datetime (2022, 1, 1)
+end = dt.datetime.now()
+
+btc = web.DataReader(f"{crypto}-{currency}", "yahoo", start, end)
+eth = web.DataReader(f"ETH-{currency}", "yahoo", start, end)
+
+plt.plot(btc['Close'], label="BTC")
+plt.plot(eth['Close'], label="ETH")
+plt.legend(loc="upper left")
+plt.show()
\ No newline at end of file
diff --git a/vbitcoin.py b/vbitcoin.py
new file mode 100644
index 00000000..ad7033b5
--- /dev/null
+++ b/vbitcoin.py
@@ -0,0 +1,20 @@
+import pandas_datareader as web
+import matplotlib.pyplot as plt
+import mplfinance as mpf
+
+import datetime as dt
+
+crypto = "BTC"
+currency = "USD"
+
+start = dt.datetime (2022, 1, 1)
+end = dt.datetime.now()
+
+btc = web.DataReader(f"{crypto}-{currency}", "yahoo", start, end)
+eth = web.DataReader(f"ETH-{currency}", "yahoo", start, end)
+
+plt.plot(btc['Close'], label="BTC")
+plt.plot(eth['Close'], label="ETH")
+plt.legend(loc="upper left")
+plt.show()
+# mpf .plot (data, type="candle", volume=True, style="yahoo")
\ No newline at end of file
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy