### Installing Isyatirimhisse Library (Latest Version) - Bash Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This command installs the latest stable version of the `isyatirimhisse` Python package using pip. It's the standard way to get the library set up on your system. ```Bash pip install isyatirimhisse ``` -------------------------------- ### Installing isyatirimhisse Python Library Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This command installs the `isyatirimhisse` Python library using pip, the standard package installer for Python. It fetches the latest stable version of the library from PyPI. ```bash pip install isyatirimhisse ``` -------------------------------- ### Retrieving Single Stock Daily Data (THYAO) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example demonstrates how to fetch daily closing prices for a single stock symbol ('THYAO') from a specified start date ('02-01-2023') up to the latest trading day. It initializes the `StockData` class and uses its `get_data` method, printing the resulting pandas DataFrame. ```python stock_data = StockData() df = stock_data.get_data( symbols='THYAO', start_date='02-01-2023' ) print(df) ``` -------------------------------- ### Checking Installed Isyatirimhisse Package Version - Bash Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md Use this command to display information about the installed `isyatirimhisse` package, including its version number, location, and dependencies. This helps verify successful installation and version. ```Bash pip show isyatirimhisse ``` -------------------------------- ### Retrieving Multiple Stock Financial Statements with Financials (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example demonstrates how to retrieve financial statements for multiple stocks (e.g., 'THYAO', 'AKBNK') within a specified start and end year range. It fetches data in Turkish Lira, using financial group '1', and saves the output to an Excel file. ```python financials = Financials() df = financials.get_data( symbols=['THYAO','AKBNK'], start_year='2019', end_year='2023', exchange='TRY', financial_group='1', save_to_excel=True ) ``` -------------------------------- ### Checking isyatirimhisse Library Version Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This command displays detailed information about the installed `isyatirimhisse` package, including its version, location, and dependencies. It's useful for verifying successful installation and version. ```bash pip show isyatirimhisse ``` -------------------------------- ### Retrieving Single Stock Financial Statements with Financials (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example demonstrates how to retrieve financial statements for a single stock symbol (e.g., 'THYAO') using the `Financials` class. It fetches data starting from a specified `start_year`. The `get_data` method returns a dictionary where keys are symbols and values are financial data. ```python financials = Financials() df = financials.get_data( symbols='THYAO', start_year='2020' ) print(df) ``` -------------------------------- ### Installing Specific Version of isyatirimhisse Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This command installs a specific version (4.0.0) of the `isyatirimhisse` Python library. This is useful for ensuring compatibility or replicating environments. ```bash pip install isyatirimhisse==4.0.0 ``` -------------------------------- ### Computing Simple Returns for Multiple Stocks Quarterly USD Prices with StockData (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example demonstrates how to compute simple returns for multiple stocks (e.g., 'THYAO', 'PGSUS') using quarterly USD prices. It defines a specific `start_date` and `end_date`, sets the exchange to USD, frequency to quarterly, and `return_type` to simple return. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','PGSUS'], start_date='01-01-2023', end_date='29-09-2023', exchange='1', frequency='3mo', return_type='2' ) print(df) ``` -------------------------------- ### Installing Specific Version of Isyatirimhisse Library - Bash Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This command allows users to install a particular version of the `isyatirimhisse` library, such as version 4.0.0, which can be useful for compatibility or specific feature requirements. ```Bash pip install isyatirimhisse==4.0.0 ``` -------------------------------- ### Retrieving Multiple Stock Weekly Average Prices in TRY with StockData (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example shows how to retrieve weekly average closing prices in Turkish Lira for multiple stock symbols (e.g., 'THYAO', 'PGSUS'). Data is fetched from a specified `start_date` up to the last trading day, with a weekly frequency and observation set to 'mean'. The data is adjusted with Sunday as the starting point for weekly frequency. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','PGSUS'], start_date = '02-01-2023', exchange='0', frequency='1w', observation='mean' ) print(df) # The data is adjusted with a weekly frequency, considering Sunday as the starting point. ``` -------------------------------- ### Retrieving Multiple Stock Financial Statements and Extracting Data with Financials (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example shows how to retrieve financial statements for multiple stocks (e.g., 'THYAO', 'PGSUS') within a desired start and end year range, saving the result to an Excel file. It also demonstrates how to extract and convert the data for a specific company (e.g., 'THYAO') from the returned dictionary into a pandas DataFrame. ```python financials = Financials() df = financials.get_data( symbols=['THYAO','PGSUS'], start_year='2019', end_year='2023', exchange='TRY', financial_group='1', save_to_excel=True ) import pandas as pd df_thyao = pd.DataFrame(df['THYAO']) ``` -------------------------------- ### Retrieving Multiple Stocks Monthly Log Returns (USD) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example shows how to obtain monthly logarithmic returns for multiple stock symbols ('THYAO', 'PGSUS') within a specified date range. It sets the exchange to USD ('1'), frequency to monthly ('1mo'), and return type to logarithmic ('1'), then displays the resulting DataFrame. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','PGSUS'], start_date='01-01-2023', end_date='29-09-2023', exchange='1', frequency='1mo', return_type='1' ) print(df) ``` -------------------------------- ### Retrieving Single Stock Daily Closing Prices with StockData (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example demonstrates how to retrieve daily closing prices for a single stock symbol (e.g., 'THYAO') using the `StockData` class. It fetches data from a specified `start_date` up to the last trading day. The `get_data` method returns a pandas DataFrame containing the stock information. ```python stock_data = StockData() df = stock_data.get_data( symbols='THYAO', start_date='02-01-2023' ) print(df) ``` -------------------------------- ### Computing Logarithmic Returns for Multiple Stocks Monthly USD Prices with StockData (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example illustrates how to compute logarithmic returns for multiple stocks (e.g., 'THYAO', 'PGSUS') using monthly USD prices. It specifies both `start_date` and `end_date` for the data range, setting the exchange to USD and frequency to monthly, with `return_type` as logarithmic return. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','PGSUS'], start_date='01-01-2023', end_date='29-09-2023', exchange='1', frequency='1mo', return_type='1' ) print(df) ``` -------------------------------- ### Retrieving Multiple Stocks Weekly Mean Data (TL) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This snippet illustrates fetching weekly average closing prices in Turkish Lira for multiple stock symbols ('THYAO', 'PGSUS') from a given start date. It specifies the exchange as TL ('0'), frequency as weekly ('1w'), and observation as mean ('mean'), then prints the DataFrame. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','PGSUS'], start_date = '02-01-2023', exchange='0', frequency='1w', observation='mean' ) print(df) ``` -------------------------------- ### Retrieving Annual Average USD Prices and Saving to Excel with StockData (Python) Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This example shows how to retrieve annual average USD prices for multiple stocks (e.g., 'THYAO', 'EUPWR') within a specified date range and save the result to an Excel file. It sets the exchange to USD, frequency to yearly, and enables `save_to_excel`. Note that data for some stocks might be unavailable for older dates. ```python stock_data = StockData() df = stock_data.get_data( symbols=['THYAO','EUPWR'], start_date='01-01-2012', end_date='06-10-2023', exchange='1', frequency='1y', return_type='1', save_to_excel=True ) print(df) # Note: Data for the EUPWR stock before the year 2023 is unavailable, and therefore, it will not be displayed in the output. ``` -------------------------------- ### Importing StockData and Financials Classes Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This Python snippet imports the `StockData` and `Financials` classes from the `isyatirimhisse` library. These classes are essential for interacting with the İş Yatırım website to retrieve stock data and financial statements, respectively. ```python from isyatirimhisse import StockData, Financials ``` -------------------------------- ### Importing StockData and Financials Classes - Python Source: https://github.com/urazakgul/isyatirimhisse/blob/main/README.md This Python import statement brings the `StockData` and `Financials` classes into the current scope. `StockData` is used for fetching stock and index data, while `Financials` is for retrieving financial statements. ```Python from isyatirimhisse import StockData, Financials ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.