In this section, we will learn about the following topics:
- How to get the current bid and asking price for bitcoin
- How to make a decision whether to buy or sell bitcoin
- Triggering the bitcoin trade advice alert
Actual buying and selling of bitcoin won't be covered, as it involves actual money. However, we will focus on sending an email alert when it is trying to buy or sell bitcoin based on the condition we set.
We will use the bitcoin price API module to fetch the bitcoin price. It is available on GitHub at https://github.com/dursk/bitcoin-price-api.