Table of Contents
Compared to the 2021 Tokyo Olympics held during the pandemic, the 2024 Paris Olympics are bound to be superb following the lifting of pandemic restrictions. By analyzing the stock market performance of the major indices and relevant industries during the past three Olympic Games, we can uncover the dynamic changes in the stock market during these major sporting events. This article will use the TEJ API to explore Olympic market trends and better understand the stock market performance during the Olympic Games.
This article uses the Windows 11 OS and VScode as the editor.
import tejapi
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
tejapi.ApiConfig.api_key = "Your Key"
tejapi.ApiConfig.api_base = "https://api.tej.com.tw"
tejapi.ApiConfig.ignoretz = True
Set the TAIEX (Y9999) adjusted closing price function and the start and end dates as variables.
def get_TAIEX(gte , lte):
data = tejapi.get('TWN/APRCD1',
coid = 'Y9999',
mdate = {'gte':gte, 'lte':lte},
opts = {'columns':['coid', 'mdate', 'close_adj', 'roi']},
paginate = True,
)
return data
Record the dates and the years of the past three Olympic Games and convert them into DataFrame to facilitate subsequent analysis.
Substitute the Olympic Games start and end dates into the get_TAIEX
function, set the time interval to two weeks before the opening and after the closing, and mark the start and end dates on the graph. The visual chart sets the two axes as daily closing price and daily return rate (%).
From the chart, it can be observed that the performance of the Olympics was better in 2012 and 2016, especially in the 2-3 working days leading up to the opening day, where stock prices showed an upward trend. This upward trend is more pronounced when observing the percentage (%) returns line. In 2021, the Olympic performance was comparatively weaker. However, there was still an upward trend in the 2-3 working days leading up to the opening day, albeit with less strength. It is worth noting that 2021 may have experienced greater market volatility due to the outbreak of the COVID-19 pandemic, making it more challenging to discern its impact on the stock market.
Start Building Portfolios That Outperform the Market!
The hosting of the Olympics drives an increase in demand for related industries, making it a pivotal year for sportswear brands to showcase their capabilities, with performance inevitably growing in the Olympic years. Major international brands include Nike, GAP, Lululemon, Under Armour, Adidas, Fast Retailing, etc. This article outlines six major Olympic-related industries, including the apparel, footwear, and exercise equipment industries influenced by sports trends, the panel industry benefiting from increased TV demand, and the aviation and tourism industries influenced by tourism trends and international events. Specific companies within each industry are selected as examples.
The following are Olympic-related industries selected based on TEJ Sub Industry Name
Substitute the start and end dates of the Olympic Games and the security codes selected in this article for the get_stock_price function
, set the time interval to two weeks before the opening and after the closing of the Olympic Games, and mark the start and end dates of the Olympic Games on the graph.
From the chart above, we can see that both 2016 and 2021 showed an upward trend 2 to 3 working days before the opening of the Olympic Games. Although there was no upward trend in 2012, it slowed down the original decline. There is no particular trend after the Olympic Games; some rise and some fall. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the stock market of the panel industry. Still, seeing the effect on the stock market after the Olympics ends will be difficult.
The chart above shows an upward trend in the 2 to 3 working days before the opening of these three Olympic Games. There is no particular trend after the Olympics. Some prices rise, some fall, and the majority fall. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the stock market of the garment and textile industry. At the same time, it won’t be easy to see the effect on the stock market after the Olympic Games ends.
From the picture above (9802 was only listed in October 2012, so the upper left image is empty), it can be seen that in 2012 and 2016, there was an upward trend 2 to 3 working days before the opening of the Olympic Games. Although there was no noticeable increase in 2021, the upward trend slowed down the original decline. There is no particular trend after the Olympic Games; some rise and some fall. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the shoemaking industry stock market. Still, it won’t be easy to see the effect on the stock market after the Olympics ends.
The chart above shows an upward trend in the 2 to 3 working days before the opening of the three Olympic Games, which was the most significant in 2012. There is no particular trend after the Olympic Games. Some prices rise, and some fall, but most prices rise. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the stock market of the sports equipment industry. Still, seeing the effect on the stock market after the Olympics ends will be difficult.
The above figure shows an upward trend in the 2 to 3 working days before the opening of these three Olympic Games. There is no particular trend after the Olympic Games and most fall. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the tourism industry’s stock market. At the same time, it won’t be easy to see the effect on the stock market after the Olympics ends.
It can be seen from the above figure that there is an upward trend in the 2 to 3 working days before the opening of these three Olympic Games. There is no particular trend after the Olympics. For example, prices fell after the Olympics closed in 2021, while prices rose in 2012 and 2016. From this, we can speculate that the opening of the Olympic Games will have a short-term positive impact on the aviation industry’s stock market. After large-scale international competitions, it won’t be easy to see the effect on the stock market after the Olympics.
From observing the TAIEX and individual stocks in related industries during the past three Olympic Games, we noticed a general uptrend in stock prices in the 2-3 working days leading up to the opening day. This trend was particularly significant in 2012 and 2016, while 2021 may have been affected by the pandemic. However, after the Olympics concluded, the stock market performance became more unstable, with some stocks rising and others falling. Overall, this suggests that the opening of the Olympics has a specific short-term positive impact on the TAIEX and the stock market of the industries mentioned in this article. However, the post-Olympic impact is more challenging to predict. In the long run, the Olympics are just a singular event in the holding period, so it’s best to base investment decisions on factors such as company fundamentals, competitive advantages, and other considerations.
This implementation analyzes Olympic Market Trends using the TEJ API. Using the data provided by TEJ API, we can implement various types of analysis as far as we can imagine. This approach saves time and effort and furnishes investors with a more diversified evaluation method. Explore more related solutions in TEJ Market Data. Construct your trading strategy with a high-quality database.
Reminder: The strategy is only for reference and does not represent recommendations or advice on financial products and investments.
About us
Subscribe to newsletter