How to get a current bid and asking price for bitcoin
Google search is the simplest way to search for the current bid rate. In order to achieve the buying and selling of bitcoin, the triggering of both should be done accordingly.
The triggering of buy bitcoin
The following are the steps to go through to get the current bid:
- First, check the bitcoin price online.
- Modify the script so that the buy alert triggers first. Set the buy threshold to higher than the current price. Here, we set the buy threshold to
6500
, as shown in the following code:
# define buy and sell thresholds for Bitcoin buy_thresh = 6500 sell_thresh = 6500
- Save the script and execute it. The following screenshot shows the executed script:

The script has been executed and the buy alert should have gone. Check it in the email.
The following screenshot shows that we have received the bitcoin alert email advising us to buy bitcoin, according to the criteria that we have set up in the script:

The triggering of sell bitcoin
- Initially,...