{"id":1065,"date":"2025-03-21T13:30:00","date_gmt":"2025-03-21T13:30:00","guid":{"rendered":"https:\/\/www.tejwin.com\/en\/insights\/tquant-from-0-to-1-day-3-building-a-comprehensive-investment-data-perspective-stock-pool-screening-and-data-retrieval-with-tejtoolapi-2\/"},"modified":"2025-03-21T13:30:00","modified_gmt":"2025-03-21T13:30:00","slug":"tquant-from-0-to-1-day-3-building-a-comprehensive-investment-data-perspective-stock-pool-screening-and-data-retrieval-with-tejtoolapi-2","status":"publish","type":"insight","link":"https:\/\/www.tejwin.com\/en\/insights\/tquant-from-0-to-1-day-3-building-a-comprehensive-investment-data-perspective-stock-pool-screening-and-data-retrieval-with-tejtoolapi-2\/","title":{"rendered":"[TQuant from 0 to 1 &#8211; Day 3] Building a Comprehensive Investment Data Perspective: Stock Pool Screening and Data Retrieval with TejToolAPI"},"content":{"rendered":"<figure class=\"wp-block-image size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"stock pool\" class=\"wp-image-31911\" height=\"1728\" src=\"https:\/\/www.tejwin.com\/en\/wp-content\/uploads\/2026\/08\/carlos-muza-hpjSkU2UYSU-unsplash-2.jpg\" width=\"2426\"\/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@kmuza?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\" rel=\"noopener\" target=\"_blank\">Carlos Muza<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/laptop-computer-on-glass-top-table-hpjSkU2UYSU?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\" rel=\"noopener\" target=\"_blank\">Unsplash<\/a><\/figcaption><\/figure>\n<h2 class=\"wp-block-heading\">Preface<\/h2>\n<p class=\"wp-block-paragraph\"><strong>In financial investment, mastering accurate and comprehensive data is an indispensable skill, and effectively managing stock pools and acquiring stock price data is the key to unlocking this skill. With the tools and APIs provided by TQuant Lab, we can easily define screening criteria, quickly establish stock pools that meet specific requirements, and retrieve relevant historical stock price data.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>This article will guide you step by step through setting up the environment and configuring your API Key, as well as explain how to use the <\/strong><strong>get_universe function to obtain stock samples based on specific conditions. Whether you are a beginner in investing or a data analysis enthusiast, this guide will help you master the automation of data retrieval, laying a solid foundation for future quantitative analysis. Through examples and hands-on operations, you can quickly get started and apply these techniques to your investment strategies.<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">What is a Stock Pool?<\/h2>\n<p class=\"wp-block-paragraph\"><strong>A stock pool is like a shopping list in our daily lives. Imagine grocery shopping in a supermarket with thousands of products on the shelves. If you don\u2019t filter your choices, you may spend a long time selecting items or buying things you don\u2019t need. However, if you prepare a shopping list in advance, such as \u201cbreakfast ingredients\u201d or \u201cfitness diet,\u201d you can quickly locate the relevant items in the store, saving time and improving efficiency.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>Similarly, a stock pool aims to help investors filter out stocks that meet specific criteria from the vast stock market. For instance, you might set a condition like:<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u201cI want to find common stocks of semiconductor companies listed in Taiwan.\u201d<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>With a stock pool, you get a curated list of stocks that meet this condition, just like a shopping list helps you focus on relevant grocery items. This allows you to concentrate on analyzing only the relevant stocks without wasting time on unrelated companies.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>In short, a stock pool acts as a \u201ccompass\u201d in your investment journey, helping you navigate the complex market and providing a reliable foundation for decision-making.<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">Benefits of a Well-Designed Stock Pool<\/h2>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>1. Improved Analysis Efficiency<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>With thousands of stocks in the market, it is easy to get lost in a sea of data if you lack clear selection criteria. A well-defined stock pool lets you focus on relevant stocks quickly, saving time.<\/strong><\/p>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>2. Reducing the Impact of Survivor Bias<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>By setting specific selection criteria, a stock pool ensures that you consider both successful and failed companies, rather than only analyzing those that have survived. This helps create a more comprehensive view when backtesting investment strategies.<\/strong><\/p>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>3. Automation and Quantitative Applications<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>Stock pools can be integrated with quantitative strategies, aiding in backtesting and data analysis. This ensures that your investment targets are based on a filtered and reliable dataset, improving the accuracy and effectiveness of your analysis.<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">Introduction to the get_universe Function<\/h2>\n<p class=\"wp-block-paragraph\"><strong>In quantitative analysis and investment strategy design, quickly and accurately retrieving stock pool data is critical. With the tools provided by TQuant Lab, we can conveniently use the <\/strong><strong>get_universe function to create custom stock pools based on different screening criteria, laying the groundwork for subsequent analysis.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>The <\/strong><strong>get_universe function is primarily used to screen and return a list of stock symbols that meet specific conditions. It allows users to filter stocks within a particular time range based on criteria such as market type, industry, and security type. The resulting stock list can seamlessly integrate with quantitative strategies and backtesting tools.<\/strong><\/p>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>Key Features of <\/strong><strong>get_universe<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>\u2705 Stock Pool Creation \u2013 Automatically filters stocks that meet the specified criteria, eliminating the need for manual selection.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Conditional Filtering \u2013 Supports various screening conditions such as market type, sector, industry, index inclusion, etc.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Dynamic Range Selection \u2013 Returns stocks that meet the criteria within a specified date range.<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>get_universe(start,\nend = datetime.datetime.now().date().strftime(%Y-%m-%d),\ntrading_calender = get_calender('TEJ_XTAI'),\n**kwargs)\n\n\n<\/code><\/pre>\n<p class=\"wp-block-paragraph\"><strong>Leveraging the get_universe function can significantly enhance your stock screening process, ensuring your investment analysis is based on structured and high-quality data.<\/strong><\/p>\n<figure class=\"wp-block-image size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"tejtoolapi\" class=\"wp-image-31924\" height=\"516\" src=\"https:\/\/www.tejwin.com\/en\/wp-content\/uploads\/2026\/08\/image-643.png\" style=\"object-fit:cover\" width=\"1339\"\/><figcaption class=\"wp-element-caption\">The integration of the stock pool content relationships.<\/figcaption><\/figure>\n<h3 class=\"wp-block-heading\"><strong>Parameters for Defining Screening Time Range and Trading Calendar<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>The following parameters are responsible for setting the time range and trading calendar when filtering the stock pool:<\/strong><\/p>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>1. <\/strong><strong>start<\/strong><strong> (datetime or str)<\/strong><\/h4>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Specify the start date for stock pool filtering.<\/strong><\/li>\n<li><strong>Meaning: Returns stocks that meet the conditions from <\/strong><strong>start to <\/strong><strong>end.<\/strong><\/li>\n<\/ul>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>2. <\/strong><strong>end<\/strong><strong> (datetime or str, optional, defaults to today\u2019s date)<\/strong><\/h4>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Specify the end date for stock pool filtering.<\/strong><\/li>\n<li><strong>Description: If not provided, the system will use the execution date as the default end date.<\/strong><\/li>\n<\/ul>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>3. <\/strong><strong>trading_calendar<\/strong><strong> (TradingCalendar, optional, defaults to <\/strong><strong>TEJ_XTAI<\/strong><strong>)<\/strong><\/h4>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Defines the trading calendar, ensuring that only valid trading days within the specified date range are considered.<\/strong><\/li>\n<li><strong>Default Value: <\/strong><strong>TEJ_XTAI (The Taiwan Stock Exchange trading calendar).<\/strong><\/li>\n<\/ul>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>Available <\/strong><strong>kwargs<\/strong><strong> Properties (At Least One Must Be Specified)<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>The function will return all available stocks if no filtering criteria are specified.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>These parameters determine the content of the returned stock pool, including:<\/strong><\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Market Type<\/strong><\/li>\n<li><strong>Sector (Chinese &amp; English)<\/strong><\/li>\n<li><strong>Security Type (Chinese &amp; English)<\/strong><\/li>\n<li><strong>Primary Industry (Chinese &amp; English)<\/strong><\/li>\n<li><strong>Sub-industry (Chinese &amp; English)<\/strong><\/li>\n<li><strong>Index Name<\/strong><\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>These criteria can be customized flexibly based on your specific needs. For more details, please refer to the relevant documentation link.<\/strong><\/p>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>Code Examples<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>We will walk through nine examples to help you better understand how to utilize the <\/strong><strong>get_universe function.<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><strong>1. Import Libraries and Set Up<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>First, we need to import the necessary libraries and set up the API configuration:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>import pandas as pd\nimport datetime\nimport tejapi\nimport os\nimport numpy as np\n\n# Set TEJ API Key and Base URL\nos.environ['TEJAPI_KEY'] = \"your key\" \nos.environ['TEJAPI_BASE'] = \"https:\/\/api.tej.com.tw\"\n\n# Define Start and End Dates for Screening\nstart = '2024-01-01'\nend = '2025-01-01'\n\n# Import get_universe function\nfrom zipline.sources.TEJ_Api_Data import get_universe\n<\/code><\/pre>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><strong>2. Nine Stock Pool Screening Examples Using <\/strong><strong>get_universe<\/strong><\/h3>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 1: Retrieve Securities Previously Listed on TWSE General Board &amp; OTC General Board<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, mkt_bd_e=['TSE', 'OTC'])<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 2: Retrieve Securities Previously Listed on the Taiwan OTC Market<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, mkt=['OTC'])<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 3: Retrieve Common Stocks Previously Listed on TWSE &amp; OTC<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, mkt=['TWSE', 'OTC'], stktp_c=['\u666e\u901a\u80a1'])<\/strong>\n<\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 4: Retrieve Securities Previously Classified as \u201cM2324 <\/strong><strong>\u534a\u5c0e\u9ad4\u696d<\/strong><strong>\u201d (Semiconductor Industry)<\/strong><strong><\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, sub_ind_c=['M2324 \u534a\u5c0e\u9ad4\u696d'])<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 5: Retrieve Securities Previously Classified as \u201cM2324 Semiconductor\u201d &amp; \u201cM2325 Computer and Peripheral Equipment\u201d<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code>get_universe(start, end, sub_ind_e=['M2324 Semiconductor',\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 'M2325 Computer and Peripheral Equipment'])<\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 6: Retrieve Securities of Type \u201cETF\u201d and \u201c<\/strong><strong>\u666e\u901a\u80a1<\/strong><strong>\u201d (Common Stocks) Listed on TWSE<\/strong><strong><\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, stktp_c=['ETF', '\u666e\u901a\u80a1'], mkt=['TWSE'])<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 7: Retrieve Securities Previously Included in \u201cIX0002\u201d (Taiwan 50 Index)<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, idx_id='IX0002')<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 8: Retrieve Securities Previously in the \u201cM1100 <\/strong><strong>\u6c34\u6ce5\u5de5\u696d<\/strong><strong>\u201d (Cement Industry) and Part of \u201cIX0006\u201d (Taiwan High Dividend Index)<\/strong><strong><\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, main_ind_c='M1100 \u6c34\u6ce5\u5de5\u696d', idx_id='IX0006')<\/strong><\/code><\/pre>\n<h4 class=\"wp-block-heading\"><a><\/a><strong>Case 9: Retrieve Common Stocks in Non-Financial Industries<\/strong><\/h4>\n<pre class=\"wp-block-code\"><code><strong>get_universe(start, end, main_ind_c=['\u4e00\u822c\u7522\u696d'], stktp_c='\u666e\u901a\u80a1')<\/strong><\/code><\/pre>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\"><strong>TEJToolAPI<\/strong><\/h2>\n<p class=\"wp-block-paragraph\"><strong>We now have a filtered target list after successfully creating a stock pool that meets our criteria. However, the stock pool is the starting point for investment data analysis. We need additional detailed financial data to perform in-depth analysis or strategy development.<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>This is where TejToolAPI comes into play. With TejToolAPI, we can efficiently retrieve historical stock-related data, including financial information such as:<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Earnings per Share (EPS)<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Growth Rate<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Dividends<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>\u00a0\u2705 Other key financial indicators<\/strong><\/p>\n<p class=\"wp-block-paragraph\"><strong>By integrating TejToolAPI, we enhance the analytical value of every stock in our stock pool.<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>TejToolAPI.get_history_data<\/strong><strong> Function<\/strong><\/h3>\n<p class=\"wp-block-paragraph\"><strong>The <\/strong><strong>get_history_data function allows users to retrieve historical data related to securities and transactions. Below are its key parameters:<\/strong><\/p>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>1. <\/strong><strong>ticker<\/strong><strong> (iterable[str])<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Specifies the stock ticker(s) to query.<\/strong><\/li>\n<li><strong>Example: Supports multiple tickers, e.g., <\/strong><strong>[\u201c2330\u201d, \u201c1101\u201d, \u201c3711\u201d].<\/strong><\/li>\n<li><strong>Tip: You can combine it with <\/strong><strong>get_universe to dynamically select stocks.<\/strong><\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>2. <\/strong><strong>columns<\/strong><strong> (iterable[str])<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Specifies the data fields to retrieve.<\/strong><\/li>\n<li><strong>Reference: The TEJ API documentation provides the list of available columns.<\/strong><\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>3. <\/strong><strong>transfer_to_chinese<\/strong><strong> (boolean, default: <\/strong><strong>False<\/strong><strong>)<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Determines whether to translate column names into Chinese.<\/strong><\/li>\n<li><strong>Options:<\/strong>\n<ul>\n<li><strong>True<\/strong><strong> \u2192 Convert column names to Chinese<\/strong><\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>False<\/strong><strong> \u2192 Keep column names in English<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>4. <\/strong><strong>start<\/strong><strong> (pd.Timestamp or str)<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Set the start date for data retrieval.<\/strong><\/li>\n<li><strong>Format: <\/strong><strong>\u201cYYYY-MM-DD\u201d or <\/strong><strong>pd.Timestamp(\u201cYYYY-MM-DD\u201d)<\/strong><\/li>\n<li><strong>Meaning: Returns data from the specified start date to the end date.<\/strong><\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>5. <\/strong><strong>end<\/strong><strong> (pd.Timestamp or str, optional, defaults to execution date)<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Set the end date for data retrieval.<\/strong><\/li>\n<li><strong>Format: <\/strong><strong>\u201cYYYY-MM-DD\u201d or <\/strong><strong>pd.Timestamp(\u201cYYYY-MM-DD\u201d)<\/strong><\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>6. <\/strong><strong>fin_type<\/strong><strong> (iterable[str])<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Specify the financial data type.<\/strong><\/li>\n<li><strong>Valid Options:<\/strong>\n<ul>\n<li><strong>\u2018A\u2019<\/strong><strong> \u2192 Cumulative Data<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>\u2018F\u2019<\/strong><strong> \u2192 Single Quarter Data<\/strong><\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>\u2018TTM\u2019<\/strong><strong> \u2192 Trailing Twelve Months Data<\/strong><\/li>\n<\/ul>\n<\/li>\n<li><strong>Example: Supports multiple types, e.g., <\/strong><strong>[\u201cA\u201d, \u201cTTM\u201d].<\/strong><\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>7. <\/strong><strong>include_self_acc<\/strong><strong> (str, default: <\/strong><strong>\u2018N\u2019<\/strong><strong>)<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Purpose: Determines whether to include self-reported and board-approved financial data.<\/strong><\/li>\n<li><strong>Valid Options:<\/strong>\n<ul>\n<li><strong>\u2018Y\u2019<\/strong><strong> \u2192 Include self-reported and board-approved financial data.<\/strong><\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>\u2018N\u2019<\/strong><strong> \u2192 Include only official investment financial data.<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><strong>Example: Retrieve Historical EPS Data for Selected Stocks<\/strong><\/h3>\n<pre class=\"wp-block-code\"><code>ticker = [\"2330\", \"1101\", \"3711\"]  # Define Stock Codes\ncolumns = [\"eps\"]  # Specify Data Fields\n\nTejToolAPI.get_history_data(\n    ticker = ticker,\n    columns = columns,\n    transfer_to_chinese = True,  # Convert column names to Chinese\n    start = pd.Timestamp(\"2021-07-02\"),  # Set Start Date\n    end = pd.Timestamp(\"2022-07-02\"),  # Set End Date\n    fin_type = [\"A\", \"F\", \"TTM\"],  # Retrieve multiple financial data types\n    include_self_acc = \"Y\"  # Include self-reported data\n)\n<\/code><\/pre>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n<p class=\"wp-block-paragraph\"><strong>By combining <\/strong><strong>get_universe for stock screening and <\/strong><strong>TejToolAPI.get_history_data for retrieving financial metrics, we can automate the stock selection and data collection process. This enables efficient quantitative analysis and enhances investment decision-making.<\/strong><\/p>\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"TEJToolAPI\" class=\"wp-image-31975\" height=\"613\" src=\"https:\/\/www.tejwin.com\/en\/wp-content\/uploads\/2026\/08\/image-655.png\" width=\"947\"\/><figcaption class=\"wp-element-caption\">data<\/figcaption><\/figure>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<p class=\"has-text-align-left wp-block-paragraph\"><strong>Unlocking the Power of Data with TejToolAPI<\/strong><\/p>\n<p class=\"wp-block-paragraph\">With <strong>TejToolAPI<\/strong>, we can effortlessly and efficiently extract <strong>rich datasets<\/strong> from the <strong>TEJ database<\/strong>, including:<strong><\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u00a0\u2705 <strong>Financial indicators<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u00a0\u2705 <strong>Growth rates<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u00a0\u2705 <strong>Various multi-dimensional data<\/strong><\/p>\n<p class=\"wp-block-paragraph\">These datasets <strong>deepen our understanding<\/strong> of each stock in the stock pool and <strong>serve as a critical foundation<\/strong> for <strong>investment analysis and strategy design<\/strong>.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Important Reminder<\/strong>: This analysis is for reference only and does not constitute any product or investment advice.<\/p>\n<p class=\"wp-block-paragraph\">We welcome readers interested in various trading strategies to consider purchasing relevant solutions from\u00a0<a class=\"ek-link\" href=\"\/en\/solution\/quantitative-finance-solution\/\"><strong><mark class=\"has-inline-color\" style=\"background-color:#ffdf88\">Quantitative Finance Solution<\/mark><\/strong><\/a>. With our high-quality databases, you can construct a trading strategy that suits your needs.<\/p>\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size\" style=\"font-size:22px\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"\/en\/databank-solution\/financial-data\/\" style=\"border-radius:16px;background:linear-gradient(135deg,rgb(243,224,131) 0%,rgb(102,197,166) 50%,rgb(51,132,181) 100%)\"><strong>Access to Comprehensive Quantitative Data<\/strong><br \/><strong>Start Building Portfolios That Outperform the Market Today!<\/strong><\/a><\/div>\n<\/div>\n<div aria-hidden=\"true\" class=\"wp-block-spacer\" style=\"height:22px\"><\/div>\n<p class=\"has-text-align-center wp-block-paragraph\" style=\"font-size:32px\"><mark class=\"has-inline-color has-vivid-cyan-blue-color\" style=\"background-color:rgba(0, 0, 0, 0)\"><strong><em>\u201cTaiwan stock market data, TEJ collect it all.\u201d<\/em><\/strong><\/mark><\/p>\n<p class=\"wp-block-paragraph\">The characteristics of the Taiwan stock market differ from those of other European and American markets. Especially in the first quarter of 2024, with the <strong><mark class=\"has-inline-color\" style=\"background-color:rgba(0, 0, 0, 0);color:#c05d5d\">Taiwan Stock Exchange reaching a new high of 20,000 points<\/mark><\/strong> due to the rise in TSMC\u2019s stock price, global institutional investors are paying more attention to the performance of the Taiwan stock market.\u00a0<\/p>\n<p class=\"wp-block-paragraph\"><strong><mark class=\"has-inline-color\" style=\"background-color:rgba(0, 0, 0, 0);color:#0978b8\">Taiwan Economical Journal (TEJ)<\/mark><\/strong>, a financial database established in Taiwan for over 30 years, serves local financial institutions and academic institutions, and has long-term cooperation with internationally renowned data providers, providing high-quality financial data for five financial markets in Asia.\u00a0<\/p>\n<ul class=\"wp-block-list\">\n<li><strong><mark class=\"has-inline-color has-black-color\" style=\"background-color:#ebc766\">Complete Coverage<\/mark><\/strong>: Includes all listed companies on stock markets in Taiwan, China, Hong Kong, Japan, Korea, etc.\u00a0<\/li>\n<li><strong><mark class=\"has-inline-color\" style=\"background-color:#ebc766\">Comprehensive Analysis of Enterprises<\/mark><\/strong>: Operational aspects, financial aspects, securities market performance, ESG sustainability, etc.\u00a0<\/li>\n<li><strong><mark class=\"has-inline-color\" style=\"background-color:#ebc766\">High-Quality Database<\/mark><\/strong>: TEJ data is cleaned, checked, enhanced, and integrated to ensure it meets the information needs of financial and market analysis.\u00a0<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">With TEJ\u2019s assistance, you can access relevant information about major stock markets in Asia, such as securities market, financials data, enterprise operations, board of directors, sustainability data, etc., providing investors with timely and high-quality content. Additionally, TEJ offers advisory services to help solve problems in theoretical practice and financial management!<\/p>\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size\" style=\"font-size:21px\"><a class=\"wp-block-button__link has-background has-text-align-center wp-element-button\" href=\"\/en\/contact\/\" style=\"border-radius:16px;background:linear-gradient(135deg,rgb(160,209,216) 0%,rgb(51,145,181) 50%,rgb(50,95,191) 100%)\"><strong>Want to Learn More About Our Databases and Solutions?<br \/>Contact Us and Get the Free Trial Today!<\/strong><\/a><\/div>\n<\/div>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>Why Use TejToolAPI?<\/strong><\/h3>\n<p class=\"wp-block-paragraph\">\ud83d\udd39 <strong>Flexible parameter settings<\/strong> \u2013 Customize data queries to suit different investment needs.<\/p>\n<p class=\"wp-block-paragraph\">\u00a0\ud83d\udd39 <strong>Comprehensive field selection<\/strong> \u2013 Extract precise financial and market data for analysis.<\/p>\n<p class=\"wp-block-paragraph\">\u00a0\ud83d\udd39 <strong>Seamless integration<\/strong> \u2013 Quickly integrate retrieved data into the <strong>quantitative analysis process<\/strong>.<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 class=\"wp-block-heading\"><a><\/a><strong>Next Steps<\/strong><\/h3>\n<p class=\"wp-block-paragraph\">Now that you have a <strong>basic understanding<\/strong> of retrieving the data you need using <strong>TejToolAPI<\/strong>, you can start incorporating these datasets into your investment workflow.<\/p>\n<p class=\"wp-block-paragraph\">For <strong>more advanced insights<\/strong>, check out the links below, where we provide deeper explanations and case studies on using <strong>TejToolAPI<\/strong> to refine your investment strategies.<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<p class=\"has-text-align-left wp-block-paragraph\">\u201cWelcome, investors, to refer to this. We will continue to introduce how to use the TEJ database to construct various indicators and backtest their performance. Therefore, we invite readers who are interested in trading backtests to explore <a href=\"https:\/\/tquant.tejwin.com\/\" rel=\"noopener\" target=\"_blank\">TQuant Lab<\/a>\u2018s related plans, which allow you to build trading strategies that suit you using high-quality databases.<\/p>\n<p class=\"has-text-align-left wp-block-paragraph\">A friendly reminder: This analysis is for reference only and does not constitute any advice on products or investments.\u201d<\/p>\n<h2 class=\"wp-block-heading\"><strong>\u3010TQuant: From 0 to 1 \u2013 Day 3\u3011(Link to be added)<\/strong><\/h2>\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size\" style=\"font-size:21px\"><a class=\"wp-block-button__link has-background has-text-align-center wp-element-button\" href=\"\/en\/contact\/\" style=\"border-radius:16px;background:linear-gradient(135deg,rgb(160,209,216) 0%,rgb(51,145,181) 50%,rgb(50,95,191) 100%)\"><strong>Learn More About Our Databases and Solutions?<br \/>Contact Us and Get the Free Trial Today!<\/strong><\/a><\/div>\n<\/div>\n<h2 class=\"wp-block-heading\">Extended Reading<\/h2>\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"\/en\/insight\/counter-indicator\/\">Counter-Indicator Analysis: Using TEJ API to Examine the Relationship Between Stock Prices and Counter-Indicators Issued By Authority<\/a><\/strong><\/li>\n<li><a href=\"\/en\/insight\/stock-price-and-quarterly-reports\/\"><strong>Revenue Numbers Don\u2019t Lie: How to Gain Insight into Stock Price Movements from Quarterly Reports<\/strong><\/a><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Useful Links<\/h2>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/tejtw\/TQuant-Lab\" rel=\"noopener\" target=\"_blank\">TQuant Lab GitHub<\/a> <\/li>\n<li><a href=\"https:\/\/tquant.tejwin.com\" rel=\"noopener\" target=\"_blank\">TQuant Lab Official Website<\/a><\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">\n","protected":false},"excerpt":{"rendered":"<p>Preface In financial investment, mastering accurate and comprehensive data is an indispensable skill, and effectively managing stock pools and acquiring stock price data is the key to unlocking this skill. With the tools and APIs provided by TQuant Lab, we can easily define screening criteria, quickly establish stock pools that meet specific requirements, and retrieve [\u2026]<\/p>\n","protected":false},"featured_media":1064,"template":"","tags":[50,60,70,97],"insight_category":[16],"class_list":["post-1065","insight","type-insight","status-publish","has-post-thumbnail","hentry","tag-market-data","tag-quant","tag-tej-api","tag-data-analysis","insight_category-quant-data-science"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/1065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight"}],"about":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/types\/insight"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media\/1064"}],"wp:attachment":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media?parent=1065"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/tags?post=1065"},{"taxonomy":"insight_category","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight_category?post=1065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}