This Python script allows you to fetch Exchange-Traded Fund (ETF) data from justETF using their API. It provides a simple and customizable way to gather information about ETFs based on various criteria.
Easy to Use: Just run the script, and it fetches ETF data for you. Customizable Queries: Customize your requests based on strategy, exchange, asset class, region, instrument type, and more. Data in JSON: Results are neatly organized in a JSON file for easy analysis.
Install required dependencies:
pip install -r requirements.txt
python main.py
ETF data is stored in etf_data.json. The script prints the number of ETFs found.
Feel free to modify the build_query function to tailor your queries according to your specific needs.
This script is a simplified version for educational purposes and may require adjustments for production use.