This European company can allow you to buy crypto or learn more: Iconomi.com
…
A Technical I.T./DevOps Blog
This European company can allow you to buy crypto or learn more: Iconomi.com
…
Problem scenario
You want to use Python to get data from BTC transactions. You do not want to use “import requests”. What do you do?
Solution
Prerequisite
This assumes you have installed the Bitcoin pypi package: pip install bitcoin
If you need assistance installing pip, see this posting for Ubuntu or this posting for a Red Hat derivative.
…
Continue reading “How Do You Use Python to Retrieve Information about Bitcoin Transactions?”
Problem scenario
You want to use Nomics to retrieve cryptocurrency prices. What do you do?
Prerequisite
Get an API key. It is free here: https://p.nomics.com/pricing#free-plan
(You do not need to provided credit card information to obtain one.)
Procedures
Run this Python program but replace YOUR_KEY_HERE with the key:
import requests
resp = requests.get(“https://api.nomics.com/v1/prices?key=YOUR_KEY_HERE&format=json”)
for item in resp.json():
if item[’currency’] in [”BTC”, …
Continue reading “How Do You Use Nomics to a Retrieve Cryptocurrency Prices?”
Problem scenario
You want to find the historic data for a given cryptocurrency using Python. You want to print out the low, high, open and close prices on a specific day. How do you get data for one specific date?
Solution
Prerequisite
This assumes you have installed pandas: pip install pandas
Procedures
Run this program:
“””
Usage instructions: Change the “2016-12-25” the value (assigned to “date_to_see”) to the day you want to view. …
Continue reading “How Do You Retrieve Cryptocurrency Data for One Day in the Past Using Python?”
In the past five years as of 8/30/21,
Cryptocurrency and financial technology appear to have very bright futures. To learn more about cryptocurrency, read these postings. To get a book about cryptocurrency, see this list.
…
Continue reading “Three Companies Grew by 1,000% in Five Years”
Problem scenario
You do not want to install new Python modules. How do you use Python to print out the latest price of Bitcoin?
Solution
Run this program:
import requests
resp = requests.get(“https://api.coindesk.com/v1/bpi/currentprice/USD.json”)
print(resp.json()[’bpi’])
Here is a modified version of the program:
import requests
resp = requests.get(“https://api.coindesk.com/v1/bpi/currentprice/USD.json”)
print(resp.json()[’bpi’][’USD’][’rate’])
If you want to receive free cryptocurrency by just learning more,
…
Problem scenario
You want to use Python to calculate the latest price of various cryptocurrencies. What should you do?
Solution
Prerequisite
This assumes you have installed pip.
Procedures
Install the Python package cryptocompare: pip install cryptocompare
Run this program:
import cryptocompare
print(cryptocompare.get_price(‘BTC’, ‘USD’))
print(cryptocompare.get_price(‘BTC’, ‘USD’))
print(cryptocompare.get_price(‘ETH’, ‘USD’))
print(cryptocompare.get_price(‘LTC’, ‘USD’))
print(cryptocompare.get_price(‘XRP’, …
While some people recommend you purchase a wallet, if you do not mind storing your crypto on a third party platform, you could earn interest.
Some of the advertised rates are above 5%. The cryptocurrency is not backed by FDIC. To learn more about how it works, see these postings:
If you want to receive free cryptocurrency by just learning more,
…
Problem scenario
You want to print out the average cryptocurrency price along with the minimum and maximum prices based on a range of dates. What do you do?
Solution
This solution only goes back to 2015 for BTC. For other cryptocurrencies, the oldest price data is usually more recent than that.
Prerequisite
This assumes you have installed pandas: pip install pandas
If you need assistance installing pip,
…
Continue reading “How Do You Print Out Aggregate Cryptocurrency Information Based on a Date Range?”
Problem scenario
You want to write a Flask program to display the high and low prices of a given cryptocurrency for a given day. You want the output to include the volume too. How do you do this?
Solution
Prerequisite
This assumes that you have installed Flask and pandas.
Procedures
Run this program.
…
Continue reading “How Do You Build a Flask Application to Return the Price of a Cryptocurrency?”