“Who let the ‘Doge’ out?”

Tejeswini
Analytics Vidhya
Published in
4 min readMay 23, 2021
Source: arstechnica.com

Not long ago(on 08 Feb 2021), we have seen the billionaire, Elon Musk making news about his $1.5B Tesla investment on Bitcoin, which is when it also hit a record high of USD43,000.

Around the same time, Tesla also announced that it would allow vehicle purchases using Bitcoin.

Leave alone the data, seemingly this man can propel and dip the prices of Bitcoin and Doge just by tweeting or talking about them.

Analysis of the Musk effect on Bitcoin & Doge

Lets dive into the analysis on why Elon Musk made such a huge bet and “how doge skyrocketed by 20% in 24 hours and fell another 20% before and after his appearance on Saturday Night Live with Michael Che.

Now that we have a time period we are looking at, lets look at some data.

Data Extraction & Exploration

The data can be extracted from public APIs like cryptowat.ch (REST API documentation for real-time market data: https://docs.cryptowat.ch/rest-api/) as below:

API Request for OHLC Price data(Refer to above REST API documentation above)
Create a list of string for retrieving OHLC values of desired cryptocurrencies

The data extracted here is the OHLC Price data (Open, High, Low and Close Price).

We can also use rapidapi.com (https://rapidapi.com/apidojo/api/investing-cryptocurrency-markets). This requires sign up for API key, Secret key and code generation.

For our analysis, lets use a python package called investpy to retrieve data from Investing.com.

Do a pip install investpy to install the package. Extract the ‘Dogecoin’ and ‘Bitcoin’ OHLC data as below:

df_doge stores the ‘dogecoin’ OHLC values from Jan 2021-May 2021
df_btc stores the ‘bitcoin’ OHLC values from Jan 2019-May 2021

Lets look at some line charts of Open, Close values of dogecoin and bitcoins and how Elon Musk’s tweets influenced their prices:

‘Dogefather’ effect on Dogecoin prices
‘Dogefather’ effect on Bitcoin prices

Analysis derived from above charts and relating them to his tweets

The price trend analysis summary from the doge and bitcoin charts above

Technical Analysis

Lets analyze factors that influenced Elon Musk’s quick decisions that caused the wild price rides in both doge and bitcoin.

Since we are talking about this fall and rise in crypto prices, we should definitely talk about the Bull & Bear markets. Most of us might have come across these terms “bull” or “bear” from Leo D’s The Wolf of Wall Street. While the “Bull market” is characterized by an aggressive market rise , the “Bear market” is characterized by a decline.

Lets look at the candlestick chart for this purpose as they show signs of price direction and momentum. Candlestick charts are characterized by an up and down trend that result in a bearish or bullish engulfing patterns.

As above, a green candle shows close price > open price and red candle shows close price < open price

Visit https://www.investopedia.com/trading/candlestick-charting-what-is-it/ to know more about these patterns.

The data being looked at here is from Nov 2020-May 2021:

Candlestick chart of Bitcoin prices Sep’20-May’21

Elon Musk has been the sole reason behind the rallied bullish trend of the bitcoin when he announced his $1.5 billion investment and even caused a bearish trend with the price hitting as low as $30,000 when he withdrew from Bitcoin purchases of Tesla vehicles.

But lets not forget he has helped to stir up a conversation around the heavy carbon footprint of Bitcoin. “Bitcoin consumes more electricity than the entire annual energy consumption of the Netherlands, Cambridge University researchers say” as quoted by cnbc.com

Its one thing to think if the Bitcoin purchases of Tesla’s electric cars will negate the damage in any way.

Is cryptocurrency the best use of renewable energy?

Follow me on Medium for more articles on cryptocurrency and topics related to Data Analysis, AI, Machine Learning, Design and Technology

Please feel free to share your thoughts, comments and feedback

Follow me here on Medium or connect with me on LinkedIn to collaborate and share ideas.

--

--

Tejeswini
Analytics Vidhya

Data| Machine Learning| Technology| Design| Leadership