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.
How to get a current bid and asking price for bitcoin
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...