Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

docs: Add comprehensive documentation for Python scripts library

tilakpatel22d5dd65f387b5
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/README.md b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/README.md
new file mode 100644
index 000000000..c13b6a255
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/README.md
@@ -0,0 +1,199 @@
+# Analytics Modules
+
+> CFA-level financial analytics, portfolio optimization, and quantitative models
+
+## Overview
+
+Comprehensive financial analytics library covering equity valuation, portfolio management, derivatives pricing, economic analysis, and quantitative methods. All modules follow CFA curriculum standards and professional best practices.
+
+## Module Categories
+
+| Category | Modules | Description |
+|----------|---------|-------------|
+| 📈 **Equity Investment** | 9 modules | DCF models, valuation multiples, fundamental analysis |
+| 💼 **Portfolio Management** | 11 modules | Optimization, risk management, ETF analytics |
+| 📉 **Derivatives** | 7 modules | Options pricing, Greeks, forward commitments |
+| 🌍 **Economics** | 11 modules | Macro analysis, trade, currency, policy |
+| 🏢 **Financial Analysis** | 11 modules | Statement analysis, quality metrics, tax analysis |
+| 🎯 **Quantitative Methods** | 4 modules | CFA quant models, rate calculations |
+| 🔄 **Alternative Investments** | 10 modules | Real estate, hedge funds, private capital, crypto |
+| 🤖 **ML for Trading** | 3 modules | Machine learning trading strategies |
+| 📊 **Technical Analysis** | 2 modules | Momentum indicators, chart patterns |
+| 🧪 **Backtesting** | 4 frameworks | LEAN, VectorBT, Backtrading.py, FastTrade |
+
+## Portfolio Optimization Libraries
+
+| Library | File | Description |
+|---------|------|-------------|
+| **PyPortfolioOpt** | `pyportfolioOpt_wrapper.py` | Efficient frontier, mean-variance optimization |
+| **RiskFolioLib** | `riskfoliolib_wrapper.py` | Risk parity, hierarchical clustering |
+| **skfolio** | `skfolio_wrapper.py` + `/python_skfolio_lib/` | Scikit-learn style portfolio optimization |
+
+## Analytics Modules Breakdown
+
+### Equity Investment (`/equityInvestment/`)
+
+| Module | Files | Coverage |
+|--------|-------|----------|
+| **DCF Models** | `dcf_models.py` | Free cash flow, WACC, terminal value |
+| **Dividend Models** | `dividend_models.py` | DDM, Gordon growth, multi-stage |
+| **Multiples Valuation** | `multiples_valuation.py` | P/E, P/B, EV/EBITDA, PEG |
+| **Residual Income** | `residual_income.py` | RI valuation, equity charge |
+| **Private Valuation** | `private_valuation.py` | Pre-money, post-money, VC method |
+| **Fundamental Analysis** | `fundamental_analysis.py` | DuPont, quality metrics |
+| **Industry Analysis** | `industry_analysis.py` | Porter's 5 forces, competitive analysis |
+| **Forecasting** | `forecasting.py` | Revenue, earnings projections |
+| **Market Analysis** | 3 files | Index construction, efficiency, structure |
+
+### Portfolio Management (`/portfolioManagement/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Portfolio Analytics** | `portfolio_analytics.py` | Returns, risk, performance attribution |
+| **Portfolio Management** | `portfolio_management.py` | Asset allocation, rebalancing |
+| **Risk Management** | `risk_management.py` | VaR, CVaR, stress testing |
+| **Active Management** | `active_management.py` | Alpha, tracking error, information ratio |
+| **Portfolio Planning** | `portfolio_planning.py` | IPS, goals-based planning |
+| **ETF Analytics** | `etf_analytics.py` | Tracking difference, premiums |
+| **Behavioral Finance** | `behavioral_finance.py` | Biases, investor behavior |
+| **Economics & Markets** | `economics_markets.py` | Macro factors, market regimes |
+| **Math Engine** | `math_engine.py` | Portfolio math utilities |
+| **Data Manager** | `data_manager.py` | Data handling |
+| **Config** | `config.py` | Configuration |
+
+### Derivatives (`/derivatives/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Options** | `options.py` | Black-Scholes, binomial, Greeks |
+| **Forward Commitments** | `forward_commitments.py` | Forwards, futures, swaps |
+| **Arbitrage** | `arbitrage.py` | Put-call parity, arbitrage strategies |
+| **Analytics** | `analytics.py` | Derivative analytics |
+| **Core** | `core.py` | Core derivative calculations |
+| **Market Data** | `market_data.py` | Market data handling |
+| **Utils** | `utils.py` | Utilities |
+
+### Economics (`/economics/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Growth Analysis** | `growth_analysis.py` | GDP, economic growth models |
+| **Policy Analysis** | `policy_analysis.py` | Monetary, fiscal policy |
+| **Currency Analysis** | `currency_analysis.py` | FX, exchange rate models |
+| **Trade & Geopolitics** | `trade_geopolitics.py` | Trade flows, geopolitical risk |
+| **Capital Flows** | `capital_flows.py` | International capital movements |
+| **Market Cycles** | `market_cycles.py` | Business cycles, indicators |
+| **Exchange Calculations** | `exchange_calculations.py` | FX calculations |
+| **Analytics Engine** | `analytics_engine.py` | Economic analytics |
+| **Core** | `core.py` | Core economics |
+| **Data Handler** | `data_handler.py` | Data management |
+| **Reporting** | `reporting.py` | Report generation |
+
+### Financial Analysis (`/finanicalanalysis/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Balance Sheet** | `balance_sheet.py` | Asset, liability, equity analysis |
+| **Income Statement** | `income_statement.py` | Revenue, profitability analysis |
+| **Cash Flow** | `cash_flow.py` | Operating, investing, financing CF |
+| **Comprehensive Analyzer** | `comprehensive_analyzer.py` | Full financial analysis |
+| **Quality Analysis** | `quality_analysis.py` | Earnings quality, accruals |
+| **Asset Analysis** | `asset_analysis.py` | Asset impairment, valuation |
+| **Inventory Analysis** | `inventory_analysis.py` | FIFO, LIFO, inventory ratios |
+| **Tax Analysis** | `tax_analysis.py` | Deferred tax, effective rates |
+| **Employee Compensation** | `employee_compensation.py` | Pension, stock-based comp |
+| **Financial Institutions** | `financial_institutions.py` | Bank-specific analysis |
+| **Multinational Operations** | `multinational_operations.py` | Currency translation |
+
+### Alternative Investments (`/alternateInvestment/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Real Estate** | `real_estate.py` | REITs, property valuation |
+| **Hedge Funds** | `hedge_funds.py` | Hedge fund strategies, metrics |
+| **Private Capital** | `private_capital.py` | PE, VC performance |
+| **Natural Resources** | `natural_resources.py` | Commodities, timberland |
+| **Digital Assets** | `digital_assets.py` | Cryptocurrency analytics |
+| **Performance Metrics** | `performance_metrics.py` | Alternative asset metrics |
+| **Risk Analyzer** | `risk_analyzer.py` | Alternative risk analysis |
+| **Base Analytics** | `base_analytics.py` | Core analytics |
+| **Data Handler** | `data_handler.py` | Data management |
+| **Config** | `config.py` | Configuration |
+
+### Quantitative Methods (`/quant/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Quant Modules** | `quant_modules_3042.py` | CFA quantitative methods |
+| **Rate Calculations** | `rate_calculations.py` | Interest rates, returns |
+| **Base Calculator** | `base_calculator.py` | Core calculations |
+| **Data Validator** | `data_validator.py` | Input validation |
+
+### ML for Trading (`/ml4Trading/`)
+
+| Module | File | Coverage |
+|--------|------|----------|
+| **Kimik2** | `kimik2.py` | ML trading framework |
+| **Outline** | `outline.py` | Strategy outline |
+| **Test Client** | `test_client.py` | Testing utilities |
+
+### Backtesting (`/backtesting/`)
+
+| Framework | Directory | Description |
+|-----------|-----------|-------------|
+| **LEAN** | `/lean/` | Institutional-grade algorithmic trading engine |
+| **VectorBT** | `/vectorbt/` | High-performance vectorized backtesting |
+| **Backtrading.py** | `/backtestingpy/` | Flexible Python backtesting |
+| **FastTrade** | `/fasttrade/` | Lightweight backtesting library |
+
+Each framework includes:
+- Provider implementation
+- Base abstractions
+- Example strategies
+
+## Usage Examples
+
+```python
+# Equity valuation - DCF
+from Analytics.equityInvestment.equity_valuation.dcf_models import DCFModel
+dcf = DCFModel(fcf=[100, 110, 121], wacc=0.10, growth=0.03)
+value = dcf.calculate_enterprise_value()
+
+# Portfolio optimization
+from Analytics.pyportfolioOpt_wrapper import optimize_portfolio
+weights = optimize_portfolio(returns_data, method='max_sharpe')
+
+# Options pricing
+from Analytics.derivatives.options import black_scholes
+price = black_scholes(S=100, K=105, T=0.5, r=0.05, sigma=0.2, option_type='call')
+
+# Economic analysis
+from Analytics.economics.growth_analysis import analyze_gdp_growth
+growth = analyze_gdp_growth(gdp_data, country='USA')
+
+# Financial statement analysis
+from Analytics.finanicalanalysis.comprehensive_analyzer import analyze_company
+analysis = analyze_company(financial_statements, ticker='AAPL')
+```
+
+## Technical Standards
+
+- **Framework**: CFA curriculum aligned
+- **Language**: Python 3.11+
+- **Dependencies**: NumPy, Pandas, SciPy, scikit-learn
+- **Style**: Type hints, docstrings, PEP 8
+- **Testing**: Unit tests for core calculations
+
+## Key Libraries
+
+- **NumPy/Pandas**: Data structures and numerical computing
+- **SciPy**: Optimization and statistical functions
+- **scikit-learn**: Machine learning models
+- **TA-Lib**: Technical analysis indicators
+- **PyPortfolioOpt**: Modern portfolio theory
+- **RiskFolioLib**: Advanced portfolio optimization
+- **skfolio**: Portfolio optimization toolkit
+
+---
+
+**Total Modules**: 80+ analytics modules | **Frameworks**: 4 backtesting engines | **Libraries**: 3 portfolio optimizers | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/CHINA_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/CHINA_DATA_SOURCES.md
new file mode 100644
index 000000000..9dbc21881
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/CHINA_DATA_SOURCES.md
@@ -0,0 +1,175 @@
+# China Data Sources
+
+> Comprehensive Chinese market and economic data via AkShare ecosystem
+
+## Overview
+
+Access extensive Chinese financial markets, economic indicators, and alternative data through the AkShare library and official Chinese government statistics. AkShare is a comprehensive Python library specifically designed for Chinese market data collection.
+
+**AkShare**: Open-source financial data interface for China - covers stocks, bonds, funds, futures, options, macroeconomic data, and more from 100+ Chinese data sources.
+
+## AkShare Data Modules
+
+| Module | File Name | API Key | Coverage |
+|--------|-----------|---------|----------|
+| 📊 **Core Markets** | `akshare_data.py` | ❌ No | Stocks (A-shares, HK), indices, ETFs, real-time quotes |
+| 📈 **Analysis Tools** | `akshare_analysis.py` | ❌ No | Technical analysis, market sentiment, money flow |
+| 💰 **Bonds** | `akshare_bonds.py` | ❌ No | Government bonds, corporate bonds, convertibles |
+| 📉 **Derivatives** | `akshare_derivatives.py` | ❌ No | Futures, options, warrants |
+| 🇨🇳 **China Economics** | `akshare_economics_china.py` | ❌ No | GDP, CPI, PMI, trade, industrial production |
+| 🌍 **Global Economics** | `akshare_economics_global.py` | ❌ No | International economic data via Chinese sources |
+| 🏦 **Funds** | `akshare_funds_expanded.py` | ❌ No | Mutual funds, ETFs, fund rankings, managers |
+| 🔄 **Alternative Data** | `akshare_alternative.py` | ❌ No | News sentiment, social media, alternative indicators |
+
+## Official Chinese Statistics
+
+| Source | File Name | API Key | Coverage |
+|--------|-----------|---------|----------|
+| 📊 **National Bureau of Statistics** | `cnstats_data.py` | ❌ No | Official Chinese government economic statistics |
+
+## Data Categories
+
+| Category | Sources | Examples |
+|----------|---------|----------|
+| **A-Share Stocks** | akshare_data, akshare_analysis | SSE, SZSE quotes, fundamentals, technicals |
+| **Hong Kong** | akshare_data | HSI constituents, HK-listed stocks |
+| **Fixed Income** | akshare_bonds | Government bonds, corporate bonds, yields |
+| **Derivatives** | akshare_derivatives | Commodity futures, index futures, options |
+| **Funds** | akshare_funds | Mutual funds, ETF data, fund performance |
+| **Macroeconomic** | akshare_economics_china, cnstats | GDP, inflation, trade, monetary policy |
+| **Alternative** | akshare_alternative | Sentiment, news, social media trends |
+
+## Usage Examples
+
+```python
+# Stock data - A-shares
+from akshare_data import get_stock_data
+sh600000 = get_stock_data('600000', market='sh') # Shanghai stock
+
+# Technical analysis
+from akshare_analysis import get_technical_indicators
+indicators = get_technical_indicators('000001', indicator='MACD')
+
+# Bond yields
+from akshare_bonds import get_bond_yields
+yields = get_bond_yields(bond_type='china_treasury')
+
+# Futures data
+from akshare_derivatives import get_futures_data
+futures = get_futures_data(exchange='SHFE', symbol='AU') # Gold futures
+
+# Chinese macroeconomic data
+from akshare_economics_china import get_gdp_data
+gdp = get_gdp_data()
+
+# Fund data
+from akshare_funds_expanded import get_fund_rankings
+top_funds = get_fund_rankings(category='equity', period='1y')
+
+# Official statistics
+from cnstats_data import get_economic_indicator
+cpi = get_economic_indicator('CPI', start_date='2020-01-01')
+```
+
+## Key Features by Module
+
+### akshare_data.py (Core Markets)
+- A-share stocks (Shanghai, Shenzhen)
+- Hong Kong stocks
+- Real-time quotes
+- Historical OHLCV
+- Index data (SSE, SZSE, CSI)
+
+### akshare_analysis.py (Analysis)
+- Technical indicators
+- Market sentiment
+- Money flow analysis
+- Dragon-Tiger List (major trades)
+- Margin trading data
+
+### akshare_bonds.py (Fixed Income)
+- Government bonds
+- Corporate bonds
+- Convertible bonds
+- Bond yields and ratings
+- Issuance data
+
+### akshare_derivatives.py (Derivatives)
+- Commodity futures (SHFE, DCE, CZCE)
+- Financial futures (CFFEX)
+- Options (SSE, SZSE)
+- Warrants
+
+### akshare_economics_china.py (China Economics)
+- GDP (national, provincial)
+- CPI, PPI inflation
+- PMI (manufacturing, services)
+- Trade balance
+- Industrial production
+- Fixed asset investment
+
+### akshare_economics_global.py (Global Economics)
+- International economic data
+- Global market indices
+- Commodity prices
+- FX rates
+
+### akshare_funds_expanded.py (Funds)
+- Mutual fund data
+- ETF information
+- Fund rankings
+- Manager performance
+- Net asset value (NAV)
+
+### akshare_alternative.py (Alternative Data)
+- News sentiment
+- Social media trends
+- Search trends
+- Alternative economic indicators
+
+### cnstats_data.py (Official Statistics)
+- National Bureau of Statistics data
+- Official government releases
+- Authoritative source for policy analysis
+
+## Chinese Market Structure
+
+| Exchange | Code | Markets |
+|----------|------|---------|
+| **Shanghai Stock Exchange** | SSE/SH | A-shares, B-shares, bonds, funds |
+| **Shenzhen Stock Exchange** | SZSE/SZ | A-shares, ChiNext, SME board |
+| **Hong Kong Exchange** | HKEX/HK | Main board, GEM |
+| **Shanghai Futures Exchange** | SHFE | Metals, energy |
+| **Dalian Commodity Exchange** | DCE | Agriculture, chemicals |
+| **Zhengzhou Commodity Exchange** | CZCE | Agriculture, energy |
+| **China Financial Futures Exchange** | CFFEX | Index futures, bonds |
+
+## Data Access
+
+**No API Keys Required**: AkShare scrapes public data sources - all modules are free and open-source.
+
+**Update Frequency**:
+- Intraday: Real-time to 3-minute delay
+- Daily: End-of-day updates
+- Economic: Monthly/quarterly releases
+
+**Language**: Data returned in Chinese (some modules support English)
+
+## Technical Details
+
+- **Library**: AkShare Python package
+- **Protocol**: Web scraping + API aggregation
+- **Format**: Pandas DataFrames (Python), JSON export available
+- **Sources**: 100+ Chinese financial websites and APIs
+- **Rate Limits**: None (respectful scraping)
+- **Historical Data**: Varies by source (typically 5+ years)
+
+## Installation
+
+```bash
+pip install akshare
+```
+
+---
+
+**Total Modules**: 9 (8 AkShare + 1 official stats) | **Free Access**: All sources | **Markets**: A-shares, HK, Futures, Bonds | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/ECONOMIC_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/ECONOMIC_DATA_SOURCES.md
new file mode 100644
index 000000000..c2fd86239
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/ECONOMIC_DATA_SOURCES.md
@@ -0,0 +1,132 @@
+# Economic Data Sources
+
+> International economic organizations and central banks providing macroeconomic indicators
+
+## Overview
+
+Access comprehensive economic data from world-leading organizations including central banks, development institutions, and international agencies. All sources provide free access to macroeconomic indicators, trade statistics, and policy data.
+
+## Global Economic Organizations
+
+| Organization | File Name | API Key | Coverage |
+|--------------|-----------|---------|----------|
+| 🏦 **FRED** | `fred_data.py` | 🔑 Required | US Federal Reserve Economic Data - 800K+ series |
+| 🌍 **World Bank** | `worldbank_data.py` | ❌ No | Global development indicators, 200+ countries |
+| 💰 **IMF** | `imf_data.py` | ❌ No | International finance, GDP, inflation, balance of payments |
+| 📊 **OECD** | `oecd_data.py` | ❌ No | Developed economies, 38 member countries |
+| 🇺🇸 **BEA** | `bea_data.py` | 🔑 Required | US Bureau of Economic Analysis - GDP, trade, industries |
+| 📈 **BLS** | `bls_data.py` | 🔑 Optional | US Bureau of Labor Statistics - employment, CPI, wages |
+| 🇪🇺 **ECB** | `ecb_data.py` | ❌ No | European Central Bank - Eurozone monetary data |
+| 🌐 **WTO** | `wto_data.py` | ❌ No | World Trade Organization - international trade stats |
+| 📦 **WITS** | `wits_trade_data.py` | ❌ No | World Integrated Trade Solution - tariffs, trade flows |
+| 🎓 **UNESCO** | `unesco_data.py` | ❌ No | Education, science, culture statistics |
+| 🆘 **HDX** | `hdx_data.py` | ❌ No | Humanitarian Data Exchange - crisis data |
+
+## Data Categories
+
+| Category | Sources | Examples |
+|----------|---------|----------|
+| **Macroeconomic** | FRED, World Bank, IMF, OECD | GDP, inflation, unemployment, interest rates |
+| **Trade & Commerce** | WTO, WITS, BEA | Import/export, tariffs, trade balance |
+| **Labor & Employment** | BLS, OECD | Employment rates, wages, CPI, productivity |
+| **Monetary Policy** | FRED, ECB, IMF | Money supply, exchange rates, central bank rates |
+| **Development** | World Bank, UNESCO, HDX | Poverty, education, health, infrastructure |
+
+## API Key Setup
+
+```bash
+# Required
+export FRED_API_KEY="your_key_here" # Get from: https://fred.stlouisfed.org/docs/api/api_key.html
+export BEA_API_KEY="your_key_here" # Get from: https://apps.bea.gov/API/signup/
+
+# Optional (improves limits)
+export BLS_API_KEY="your_key_here" # Get from: https://www.bls.gov/developers/
+```
+
+## Usage Examples
+
+```python
+# FRED - US economic data
+from fred_data import get_series
+gdp = get_series('GDP', observation_start='2020-01-01')
+
+# World Bank - Global indicators
+from worldbank_data import get_indicator
+poverty = get_indicator('SI.POV.DDAY', country='all', date='2010:2020')
+
+# IMF - International finance
+from imf_data import get_data
+balance = get_data(database='BOP', indicator='BCA', country='USA')
+
+# OECD - Developed economies
+from oecd_data import get_dataset
+unemployment = get_dataset('UNEMP', country='USA+GBR+DEU')
+```
+
+## Key Features by Source
+
+### FRED (Federal Reserve Economic Data)
+- 800,000+ time series
+- US-focused economic indicators
+- Real-time updates
+- Historical data back to 1776
+
+### World Bank
+- 200+ countries and regions
+- 1,400+ indicators
+- Development and poverty metrics
+- Project-level data
+
+### IMF (International Monetary Fund)
+- Balance of payments
+- International financial statistics
+- Exchange rates
+- Government finance
+
+### OECD
+- 38 member countries (developed economies)
+- Standardized economic indicators
+- Comparative country data
+- Policy analysis
+
+### BEA (Bureau of Economic Analysis)
+- US GDP by industry
+- International trade statistics
+- Regional economic data
+- Input-output tables
+
+### BLS (Bureau of Labor Statistics)
+- Employment and unemployment
+- Consumer Price Index (CPI)
+- Producer Price Index (PPI)
+- Wage and productivity data
+
+### ECB (European Central Bank)
+- Eurozone monetary statistics
+- Interest rates
+- Exchange rates
+- Banking sector data
+
+### WTO (World Trade Organization)
+- International trade flows
+- Tariff data
+- Trade agreements
+- Dispute resolution
+
+### WITS (World Integrated Trade Solution)
+- Detailed trade statistics
+- Tariff and non-tariff measures
+- 266 countries/territories
+- Product-level data (HS codes)
+
+## Technical Details
+
+- **Protocol**: REST API (all sources)
+- **Format**: JSON (primary), CSV/XML (some)
+- **Rate Limits**: Varies by source (generally generous)
+- **Historical Data**: Most sources provide 10+ years
+- **Update Frequency**: Daily to monthly depending on indicator
+
+---
+
+**Total Sources**: 11 organizations | **Free Access**: 8 sources | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/GOVERNMENT_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/GOVERNMENT_DATA_SOURCES.md
new file mode 100644
index 000000000..61b31e30a
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/GOVERNMENT_DATA_SOURCES.md
@@ -0,0 +1,72 @@
+# Government Open Data Sources
+
+> Official government data portals for economic statistics, company data, and public datasets
+
+## Overview
+
+Fincept Terminal integrates with official government data portals worldwide providing authoritative, free, and regularly updated data including economic indicators, trade statistics, company registrations, and geographic data.
+
+**Universal CKAN Wrapper**: Use `universal_ckan_api.py` for unified access to 8+ CKAN portals with a single interface. See `universal_ckan_api.md` for documentation.
+
+## Individual Country Scripts
+
+| Country/Region | File Name | API Key | CKAN | Portal |
+|----------------|-----------|---------|------|--------|
+| 🇺🇸 **US Treasury** | `government_us_data.py` | ❌ No | ❌ | [TreasuryDirect.gov](https://www.treasurydirect.gov) |
+| 🇺🇸 **US Congress** | `congress_gov_data.py` | ❌ No | ❌ | [Congress.gov](https://www.congress.gov) |
+| 🇺🇸 **Federal Reserve** | `federal_reserve_data.py` | ❌ No | ❌ | [FederalReserve.gov](https://www.federalreserve.gov) |
+| 🇨🇦 **Canada** | `canada_gov_api.py` | 🔑 Optional | ✅ | [open.canada.ca](https://open.canada.ca) |
+| 🇬🇧 **United Kingdom** | `datagovuk_api.py` | 🔑 Optional | ✅ | [data.gov.uk](https://data.gov.uk) |
+| 🇫🇷 **France** | `french_gov_api.py` | 🔑 Partial* | ❌ | [data.gouv.fr](https://data.gouv.fr) |
+| 🇨🇭 **Switzerland** | `swiss_gov_api.py` | 🔑 Optional | ✅ | [opendata.swiss](https://opendata.swiss) |
+| 🇩🇪 **Germany** | `govdata_de_api_complete.py` | 🔑 Optional | ✅ | [govdata.de](https://www.govdata.de) |
+| 🇸🇬 **Singapore** | `datagovsg_data.py` | 🔑 Optional | ❌ | [data.gov.sg](https://data.gov.sg) |
+| 🇭🇰 **Hong Kong** | `data_gov_hk_api.py` | ❌ No | ❌ | [data.gov.hk](https://data.gov.hk) |
+| 🇦🇺 **Australia** | `datagov_au_api.py` | 🔑 Optional | ✅ | [data.gov.au](https://data.gov.au) |
+
+*France: API Entreprise (company data) requires authentication; other endpoints are open.
+
+## Universal CKAN Portal Access
+
+Single interface via `universal_ckan_api.py` - no API keys needed:
+
+| Country | Code | Portal URL |
+|---------|------|------------|
+| 🇺🇸 United States | `us` | [catalog.data.gov](https://catalog.data.gov) |
+| 🇬🇧 United Kingdom | `uk` | [data.gov.uk](https://data.gov.uk) |
+| 🇦🇺 Australia | `au` | [data.gov.au](https://data.gov.au) |
+| 🇮🇹 Italy | `it` | [dati.gov.it](https://www.dati.gov.it) |
+| 🇧🇷 Brazil | `br` | [dados.gov.br](https://dados.gov.br) |
+| 🇱🇻 Latvia | `lv` | [data.gov.lv](https://data.gov.lv) |
+| 🇸🇮 Slovenia | `si` | [podatki.gov.si](https://podatki.gov.si) |
+| 🇺🇾 Uruguay | `uy` | [catalogodatos.gub.uy](https://catalogodatos.gub.uy) |
+
+## Data Categories
+
+| Category | Examples |
+|----------|----------|
+| **Economic & Financial** | GDP, inflation, employment, trade balance, treasury operations, currency rates |
+| **Geographic** | Administrative boundaries, population data, postal codes, coordinates |
+| **Company & Business** | Registrations, filings, business statistics, corporate governance |
+| **Legislative & Policy** | Bills, voting records (US Congress), regulations, parliamentary data |
+
+## Usage
+
+```python
+# Individual portal
+from canada_gov_api import search_datasets
+results = search_datasets(query="GDP", organization="statistics-canada", limit=10)
+
+# Universal CKAN
+from universal_ckan_api import search_datasets
+results = search_datasets('us', query='climate', rows=10)
+```
+
+```bash
+# CLI
+python universal_ckan_api.py --country us --action search_datasets --query "climate"
+```
+
+---
+
+**Total Sources**: 19 countries/portals | **CKAN Portals**: 8 via universal wrapper | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/MARKET_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/MARKET_DATA_SOURCES.md
new file mode 100644
index 000000000..af0da0265
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/MARKET_DATA_SOURCES.md
@@ -0,0 +1,163 @@
+# Market Data Sources
+
+> Real-time and historical financial market data providers
+
+## Overview
+
+Access comprehensive market data from leading financial data providers covering equities, options, crypto, commodities, and forex. Sources provide real-time quotes, historical prices, fundamentals, and market sentiment.
+
+## Market Data Providers
+
+| Provider | File Name | API Key | Markets Covered |
+|----------|-----------|---------|-----------------|
+| 📊 **Yahoo Finance** | `yfinance_data.py` | ❌ No | Global stocks, ETFs, indices, forex, crypto, commodities |
+| 📈 **Alpha Vantage** | `alphavantage_data.py` | 🔑 Required | Stocks, forex, crypto, technical indicators |
+| 🔷 **Polygon.io** | `polygon_data.py` | 🔑 Required | US stocks, options, forex, crypto - real-time & historical |
+| 🏛️ **NASDAQ** | `nasdaq_data.py` | ❌ No | NASDAQ-listed stocks, market statistics |
+| 💼 **FMP** | `fmp_data.py` | 🔑 Required | Financial Modeling Prep - fundamentals, financials |
+| 📉 **Trading Economics** | `trading_economics_data.py` | 🔑 Required | Global economic indicators, market forecasts |
+| ₿ **CoinGecko** | `coingecko.py` | ❌ No | Cryptocurrency prices, market cap, volume |
+| 📊 **CBOE** | `cboe_data.py` | ❌ No | Options data, VIX, volatility indices |
+| 📋 **CFTC** | `cftc_data.py` | ❌ No | Commitments of Traders (COT) reports |
+
+## Data Categories
+
+| Category | Sources | Data Types |
+|----------|---------|------------|
+| **Equities** | Yahoo Finance, Polygon, NASDAQ, FMP | Quotes, OHLCV, fundamentals, financials |
+| **Options** | Polygon, CBOE | Chains, Greeks, implied volatility, open interest |
+| **Crypto** | CoinGecko, Yahoo Finance, Alpha Vantage | Prices, market cap, volume, exchanges |
+| **Forex** | Yahoo Finance, Alpha Vantage, Polygon | Exchange rates, historical FX data |
+| **Commodities** | Yahoo Finance, Trading Economics | Metals, energy, agriculture |
+| **Derivatives** | CFTC, CBOE | COT reports, futures positioning, volatility |
+
+## API Key Setup
+
+```bash
+# Required for premium features
+export ALPHA_VANTAGE_API_KEY="your_key_here" # Get from: https://www.alphavantage.co/support/#api-key
+export POLYGON_API_KEY="your_key_here" # Get from: https://polygon.io/
+export FMP_API_KEY="your_key_here" # Get from: https://financialmodelingprep.com/
+export TRADING_ECONOMICS_KEY="your_key_here" # Get from: https://tradingeconomics.com/api/
+```
+
+## Usage Examples
+
+```python
+# Yahoo Finance - Most versatile, no API key
+from yfinance_data import get_historical_data
+aapl = get_historical_data('AAPL', period='1y', interval='1d')
+
+# Alpha Vantage - Technical indicators
+from alphavantage_data import get_technical_indicator
+rsi = get_technical_indicator('AAPL', 'RSI', interval='daily')
+
+# Polygon.io - Real-time quotes
+from polygon_data import get_quote
+quote = get_quote('AAPL')
+
+# CoinGecko - Crypto data
+from coingecko import get_coin_data
+btc = get_coin_data('bitcoin', vs_currency='usd', days=30)
+
+# CBOE - Options volatility
+from cboe_data import get_vix_data
+vix = get_vix_data()
+
+# CFTC - Futures positioning
+from cftc_data import get_cot_report
+cot = get_cot_report(commodity='gold')
+```
+
+## Key Features by Source
+
+### Yahoo Finance
+- **Free, unlimited access**
+- Global coverage: stocks, ETFs, indices, forex, crypto
+- Historical data (decades)
+- Real-time quotes (15-min delay)
+- Dividends, splits, fundamentals
+
+### Alpha Vantage
+- Technical indicators (50+ built-in)
+- Intraday data (1min, 5min, 15min, 30min, 60min)
+- Forex and crypto support
+- Fundamental data
+- 500 calls/day (free tier)
+
+### Polygon.io
+- Real-time market data
+- Tick-level historical data
+- Options chains
+- Aggregates (OHLCV)
+- News and sentiment
+- WebSocket support
+
+### NASDAQ
+- NASDAQ-listed securities
+- Market statistics
+- IPO calendar
+- Analyst ratings
+- No API key needed
+
+### FMP (Financial Modeling Prep)
+- Company fundamentals
+- Financial statements
+- Valuation metrics
+- Analyst estimates
+- Historical financials (10+ years)
+
+### Trading Economics
+- 300,000+ economic indicators
+- Market forecasts
+- Historical data (70+ years)
+- 196 countries
+- Credit ratings
+
+### CoinGecko
+- 10,000+ cryptocurrencies
+- Exchange data
+- Market cap rankings
+- DeFi metrics
+- NFT data
+- Free tier available
+
+### CBOE
+- VIX (volatility index)
+- Options volume
+- Put/call ratios
+- Volatility indices
+- Historical volatility
+
+### CFTC
+- Commitments of Traders (COT) reports
+- Futures positioning
+- Commercial vs speculative
+- Weekly updates
+- Historical data since 1986
+
+## Data Quality & Coverage
+
+| Provider | Update Frequency | Historical Depth | Rate Limits |
+|----------|------------------|------------------|-------------|
+| Yahoo Finance | Real-time (15min delay) | Decades | None (unofficial API) |
+| Alpha Vantage | Real-time | 20+ years | 500/day (free), unlimited (paid) |
+| Polygon.io | Real-time | 2+ years (tick-level) | Based on plan |
+| NASDAQ | Real-time | Varies | Generous |
+| FMP | Daily | 10+ years | 250/day (free), more (paid) |
+| Trading Economics | Varies | 70+ years | Based on plan |
+| CoinGecko | Real-time | Varies | 50 calls/min (free) |
+| CBOE | Real-time | Years | Generous |
+| CFTC | Weekly | 1986+ | None |
+
+## Technical Details
+
+- **Protocol**: REST API (all), WebSocket (Polygon)
+- **Format**: JSON (primary), CSV (some)
+- **Authentication**: API keys via headers or query params
+- **Rate Limiting**: Varies by provider
+- **Data Delivery**: Real-time, delayed, end-of-day
+
+---
+
+**Total Sources**: 9 providers | **Free Access**: 4 sources | **Real-time Data**: 5 sources | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/README.md b/fincept-terminal-desktop/src-tauri/resources/scripts/README.md
new file mode 100644
index 000000000..4dd28bf8d
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/README.md
@@ -0,0 +1,151 @@
+# Python Scripts Library
+
+> Comprehensive collection of data sources, analytics, and AI agents for Fincept Terminal
+
+## Overview
+
+This directory contains Python scripts powering the backend analytics, data integrations, and AI capabilities of Fincept Terminal. All scripts are executed through Tauri's Rust backend via IPC commands.
+
+## Directory Structure
+
+```
+scripts/
+├── agents/ # AI agents for trading and geopolitical analysis
+├── agno_trading/ # Agno trading system framework
+├── ai_quant_lab/ # Quantitative research lab (Qlib, RDAgent)
+├── Analytics/ # Financial analytics modules
+├── *.py # Data source integrations (60+ providers)
+└── README.md # This file
+```
+
+## Quick Links
+
+### Data Sources Documentation
+
+| Category | Description | Link |
+|----------|-------------|------|
+| 🏛️ **Government Data** | 19 countries/portals - official statistics | [GOVERNMENT_DATA_SOURCES.md](./GOVERNMENT_DATA_SOURCES.md) |
+| 🌍 **Economic Data** | 11 organizations - FRED, World Bank, IMF, OECD | [ECONOMIC_DATA_SOURCES.md](./ECONOMIC_DATA_SOURCES.md) |
+| 📊 **Market Data** | 9 providers - stocks, options, crypto, forex | [MARKET_DATA_SOURCES.md](./MARKET_DATA_SOURCES.md) |
+| 🇨🇳 **China Data** | 9 modules - AkShare ecosystem, Chinese markets | [CHINA_DATA_SOURCES.md](./CHINA_DATA_SOURCES.md) |
+| 🌏 **Regional Data** | 5 sources - Japan, Sweden, Spain, Africa, Asia | [REGIONAL_DATA_SOURCES.md](./REGIONAL_DATA_SOURCES.md) |
+| 🇺🇸 **US Financial** | 4 agencies - SEC, Treasury, Energy | [US_FINANCIAL_DATA_SOURCES.md](./US_FINANCIAL_DATA_SOURCES.md) |
+| 🔧 **Specialty Data** | 7 tools - EconDB, technicals, reports, news | [SPECIALTY_DATA_SOURCES.md](./SPECIALTY_DATA_SOURCES.md) |
+| 🛰️ **Satellite & Geo** | 4 providers - NASA, ESA, ocean data, tracking | [SATELLITE_GEO_DATA_SOURCES.md](./SATELLITE_GEO_DATA_SOURCES.md) |
+
+### Module Documentation
+
+| Category | Description | Link |
+|----------|-------------|------|
+| 📊 **Analytics** | 80+ modules - equity, portfolio, derivatives, economics | [Analytics/README.md](./Analytics/README.md) |
+| 🤖 **AI Agents** | 30+ agents - hedge funds, investors, geopolitics | [agents/README.md](./agents/README.md) |
+| 🔬 **AI Quant Lab** | Qlib + RDAgent - automated strategy research | [ai_quant_lab/README.md](./ai_quant_lab/README.md) |
+| 🚀 **Agno Trading** | Multi-agent trading system with debates | [agno_trading/README.md](./agno_trading/README.md) |
+
+## Key Features
+
+### Data Integration (60+ Sources)
+- **Market Data**: Yahoo Finance, Polygon.io, Alpha Vantage, TradingView, Databento
+- **Economic Data**: FRED, World Bank, IMF, OECD, ECB, BEA, BLS
+- **Crypto**: CoinGecko, Kraken, Binance
+- **Government**: SEC Edgar, Congress.gov, Federal Reserve
+- **International**: AkShare (China), Eurostat (EU), data.gov variants
+
+### Analytics Modules
+- **Equity Investment**: DCF, DDM, multiples valuation, fundamental analysis
+- **Portfolio Management**: Optimization, risk management, ETF analytics
+- **Derivatives**: Options pricing, Greeks, forward commitments
+- **Economics**: Growth analysis, policy analysis, trade & geopolitics
+- **Alternative Investments**: Real estate, hedge funds, private capital, crypto
+- **Quantitative**: CFA quant models, rate calculations
+- **Financial Analysis**: Statement analysis, quality metrics, tax analysis
+
+### AI & Machine Learning
+- **Agno Trading**: Multi-agent trading system with debate orchestration
+- **Geopolitical Agents**: Grand Chessboard, Prisoners of Geography frameworks
+- **Investor Personas**: Warren Buffett, Benjamin Graham strategies
+- **Hedge Fund Agents**: Bridgewater, Citadel, Renaissance, Two Sigma
+- **Quant Lab**: Qlib integration, RDAgent for hypothesis generation
+
+### Backtesting Frameworks
+- **LEAN Engine**: Institutional-grade algorithmic trading
+- **Backtrading.py**: Flexible Python backtesting
+- **VectorBT**: High-performance vectorized backtesting
+- **FastTrade**: Lightweight backtesting library
+
+## Usage Pattern
+
+Scripts are invoked from the frontend via Tauri commands:
+
+```typescript
+import { invoke } from '@tauri-apps/api/core';
+
+// Example: Fetch market data
+const data = await invoke('execute_python_command', {
+ script: 'yfinance_tools',
+ method: 'get_historical_data',
+ params: { ticker: 'AAPL', period: '1y' }
+});
+```
+
+## Development Guidelines
+
+### Adding New Data Sources
+1. Create `{source}_data.py` in scripts root
+2. Implement standardized response format
+3. Add Rust command in `src-tauri/src/commands/`
+4. Update [DATA_SOURCES.md](./DATA_SOURCES.md)
+
+### Adding Analytics Modules
+1. Place in appropriate `Analytics/` subdirectory
+2. Follow CFA curriculum structure
+3. Include docstrings and type hints
+4. Update [ANALYTICS.md](./ANALYTICS.md)
+
+### Adding AI Agents
+1. Add to `agents/` with appropriate subdirectory
+2. Use FinAgent core framework
+3. Define persona and strategy
+4. Update [AGENTS.md](./AGENTS.md)
+
+## Technical Requirements
+
+- **Python Version**: 3.11+
+- **Execution**: Embedded Python runtime bundled with app
+- **IPC**: Tauri command bridge (Rust ↔ Python)
+- **Output Format**: JSON responses
+- **Error Handling**: Structured error objects
+
+## Project Context
+
+Part of **Fincept Terminal** - a Bloomberg-like financial intelligence platform built with:
+- **Frontend**: React 19 + TypeScript + Tauri
+- **Backend**: Rust (Tauri 2.x)
+- **Analytics**: Python (embedded runtime)
+- **AI**: Ollama (local LLM), Langchain
+
+## Documentation
+
+- **Root CLAUDE.md**: `../../CLAUDE.md`
+- **App CLAUDE.md**: `../../../CLAUDE.md`
+- **Architecture**: `../../../../docs/ARCHITECTURE.md`
+- **Python Contributor Guide**: `../../../../docs/PYTHON_CONTRIBUTOR_GUIDE.md`
+
+## Performance Notes
+
+- Scripts execute synchronously via Rust `std::process::Command`
+- Large datasets should stream or paginate results
+- Cache frequently accessed data when possible
+- Use async/await patterns in frontend for better UX
+
+## License
+
+MIT License - Part of Fincept Terminal
+
+---
+
+**Last Updated**: 2025-12-28
+**Python Scripts**: 250+
+**Data Sources**: 60+
+**Analytics Modules**: 15+
+**AI Agents**: 30+
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/REGIONAL_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/REGIONAL_DATA_SOURCES.md
new file mode 100644
index 000000000..147363df8
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/REGIONAL_DATA_SOURCES.md
@@ -0,0 +1,166 @@
+# Regional Data Sources
+
+> Country and region-specific economic statistics and development data
+
+## Overview
+
+Access official statistics and data from specific countries and regional development organizations. These sources provide localized economic indicators, demographic data, and development statistics not available in global databases.
+
+## Country-Specific Statistics
+
+| Country/Region | File Name | API Key | Agency |
+|----------------|-----------|---------|--------|
+| 🇯🇵 **Japan** | `estat_japan_api.py` | 🔑 Required | e-Stat - Statistics Bureau of Japan |
+| 🇸🇪 **Sweden** | `scb_data.py` | ❌ No | Statistics Sweden (SCB) |
+| 🇪🇸 **Spain** | `spain_data.py` | ❌ No | National Statistics Institute (INE) |
+
+## Regional Development Organizations
+
+| Organization | File Name | API Key | Coverage |
+|--------------|-----------|---------|----------|
+| 🌍 **Open Africa** | `openafrica_api.py` | ❌ No | African open data portal - 54 countries |
+| 🏦 **Asian Development Bank** | `adb_data.py` | ❌ No | Asian economic development data |
+
+## Data Categories
+
+| Category | Sources | Examples |
+|----------|---------|----------|
+| **Demographics** | All sources | Population, age distribution, migration |
+| **Economic** | Japan, Sweden, Spain, ADB | GDP, inflation, employment, wages |
+| **Social** | All sources | Education, health, welfare |
+| **Development** | Open Africa, ADB | Infrastructure, poverty, aid |
+| **Trade** | Japan, ADB | Import/export, trade balance |
+
+## API Key Setup
+
+```bash
+# Japan e-Stat (required)
+export ESTAT_JAPAN_API_KEY="your_key_here" # Get from: https://www.e-stat.go.jp/api/
+```
+
+## Usage Examples
+
+```python
+# Japan statistics
+from estat_japan_api import get_statistics
+population = get_statistics(stats_code='00200521', category='population')
+
+# Sweden statistics
+from scb_data import get_data
+gdp = get_data(table='BE0101', variables={'Region': 'SE', 'Year': '2020'})
+
+# Spain statistics
+from spain_data import get_indicator
+unemployment = get_indicator('unemployment_rate', start_date='2020-01-01')
+
+# Open Africa data
+from openafrica_api import search_datasets
+kenya_data = search_datasets(query='Kenya GDP', limit=10)
+
+# Asian Development Bank
+from adb_data import get_key_indicators
+asia_gdp = get_key_indicators(country='CHN', indicator='GDP_GROWTH')
+```
+
+## Key Features by Source
+
+### e-Stat Japan
+- **Official government statistics portal**
+- 800+ statistical surveys
+- Census data (population, housing)
+- Economic indicators (GDP, trade)
+- Social statistics (labor, education)
+- Regional breakdowns (prefectures, cities)
+- API access with registration
+
+### Statistics Sweden (SCB)
+- **Nordic statistical authority**
+- Population and demographics
+- Labor market statistics
+- National accounts
+- Price indices
+- Trade statistics
+- Open API (no key needed)
+
+### Spain INE
+- **National Statistics Institute**
+- Population census
+- Economic indicators
+- Consumer Price Index (CPI)
+- Labor force survey
+- Regional statistics (autonomous communities)
+
+### Open Africa
+- **Largest open data portal for Africa**
+- 54 African countries
+- Government datasets
+- NGO and UN data
+- Development indicators
+- CKAN-based platform
+
+### Asian Development Bank (ADB)
+- **Development finance institution**
+- 46 member countries (Asia-Pacific)
+- Key economic indicators
+- Development effectiveness
+- Project data
+- Poverty statistics
+
+## Data Quality & Coverage
+
+| Source | Countries | Update Frequency | Historical Depth |
+|--------|-----------|------------------|------------------|
+| e-Stat Japan | Japan | Monthly/Quarterly | Decades |
+| SCB Sweden | Sweden | Monthly | 50+ years |
+| Spain INE | Spain | Monthly/Quarterly | 20+ years |
+| Open Africa | 54 African | Varies | Varies |
+| ADB | 46 Asia-Pacific | Annual/Quarterly | 20+ years |
+
+## Regional Focus Areas
+
+### Japan (e-Stat)
+- Population aging and demographics
+- Industrial production
+- International trade
+- Regional economic disparities
+- Technology and innovation
+
+### Sweden (SCB)
+- Welfare statistics
+- Environmental data
+- Gender equality metrics
+- Innovation indicators
+- Quality of life measures
+
+### Spain (INE)
+- Tourism statistics
+- Real estate market
+- Regional GDP
+- Migration data
+- Agricultural production
+
+### Africa (Open Africa)
+- Development goals (SDGs)
+- Agricultural data
+- Health indicators
+- Infrastructure
+- Governance
+
+### Asia (ADB)
+- Economic growth
+- Poverty reduction
+- Infrastructure development
+- Financial sector
+- Climate and environment
+
+## Technical Details
+
+- **Protocol**: REST API (all sources)
+- **Format**: JSON, CSV, XML
+- **Authentication**: API key (Japan only), others open
+- **Rate Limits**: Generous (Japan: 1000/day, others unlimited)
+- **Language**: English + native languages
+
+---
+
+**Total Sources**: 5 (3 countries + 2 regional orgs) | **Free Access**: 4 sources | **Coverage**: 100+ countries | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/SATELLITE_GEO_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/SATELLITE_GEO_DATA_SOURCES.md
new file mode 100644
index 000000000..136b164be
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/SATELLITE_GEO_DATA_SOURCES.md
@@ -0,0 +1,199 @@
+# Satellite & Geospatial Data Sources
+
+> Earth observation, satellite tracking, and geospatial intelligence data
+
+## Overview
+
+Access satellite imagery, tracking data, and geospatial intelligence from NASA, ESA, and specialized providers. These sources enable environmental monitoring, maritime tracking, climate analysis, and satellite position tracking.
+
+## Satellite & Geospatial Providers
+
+| Provider | File Name | API Key | Coverage |
+|----------|-----------|---------|----------|
+| 🛰️ **N2YO** | `n2yo_satellite_data.py` | 🔑 Required | Real-time satellite tracking - 20K+ satellites |
+| 🌍 **NASA GIBS** | `nasa_gibs_api.py` | ❌ No | Global Imagery Browse Services - Earth imagery |
+| 🛰️ **Sentinel Hub** | `sentinelhub_data.py` | 🔑 Required | Sentinel satellite imagery (ESA) |
+| 🌊 **OSCAR** | `oscar_data.py` | ❌ No | Ocean Surface Current Analysis Real-time |
+
+## Data Categories
+
+| Category | Sources | Applications |
+|----------|---------|--------------|
+| **Satellite Tracking** | N2YO | ISS tracking, satellite positions, TLE data |
+| **Earth Imagery** | NASA GIBS, Sentinel Hub | Land use, vegetation, climate monitoring |
+| **Oceanographic** | OSCAR | Ocean currents, maritime navigation, climate |
+| **Environmental** | All sources | Climate research, disaster monitoring |
+
+## API Key Setup
+
+```bash
+# N2YO satellite tracking (required)
+export N2YO_API_KEY="your_key_here" # Get from: https://www.n2yo.com/api/
+
+# Sentinel Hub (required)
+export SENTINELHUB_CLIENT_ID="your_client_id"
+export SENTINELHUB_CLIENT_SECRET="your_client_secret"
+# Get from: https://apps.sentinel-hub.com/dashboard/
+```
+
+## Usage Examples
+
+```python
+# N2YO - Track satellites
+from n2yo_satellite_data import get_satellite_positions
+iss = get_satellite_positions(satellite_id=25544) # ISS
+
+# NASA GIBS - Earth imagery
+from nasa_gibs_api import get_imagery
+imagery = get_imagery(
+ product='MODIS_Terra_CorrectedReflectance_TrueColor',
+ date='2024-01-15',
+ bbox=[-180, -90, 180, 90]
+)
+
+# Sentinel Hub - Satellite imagery
+from sentinelhub_data import get_sentinel_image
+image = get_sentinel_image(
+ bbox=[13.0, 45.0, 13.5, 45.5], # Venice, Italy
+ time_range=('2024-01-01', '2024-01-31'),
+ layer='TRUE-COLOR'
+)
+
+# OSCAR - Ocean currents
+from oscar_data import get_ocean_currents
+currents = get_ocean_currents(
+ lat_min=20, lat_max=50,
+ lon_min=-80, lon_max=-40,
+ date='2024-01-15'
+)
+```
+
+## Key Features by Source
+
+### N2YO (Satellite Tracking)
+- **Real-time satellite positions**
+- 20,000+ tracked objects
+- ISS tracking
+- Satellite passes predictions
+- Two-Line Element (TLE) data
+- Radio amateur satellites
+- Visual passes calculation
+- Satellite categories (weather, communications, military)
+
+### NASA GIBS (Global Imagery)
+- **Daily global imagery**
+- 1000+ imagery products
+- Multiple satellites (MODIS, VIIRS, Landsat)
+- Near real-time (3-hour delay)
+- Historical archive (2000+)
+- True color imagery
+- Scientific products (NDVI, temperature, snow cover)
+- Free, unlimited access
+
+### Sentinel Hub (ESA)
+- **Sentinel satellite constellation**
+- Sentinel-1 (radar)
+- Sentinel-2 (optical - 10m resolution)
+- Sentinel-3 (ocean/land monitoring)
+- Sentinel-5P (atmospheric monitoring)
+- Custom processing
+- Cloud detection
+- Time-series analysis
+
+### OSCAR (Ocean Currents)
+- **Near-surface ocean currents**
+- 1/3 degree resolution
+- 5-day temporal resolution
+- Global coverage (60°S to 60°N)
+- Velocity components (u, v)
+- Historical data (1993+)
+- Climate research quality
+- Free NetCDF data
+
+## Satellite Products
+
+### NASA GIBS Products
+
+| Product | Description | Resolution |
+|---------|-------------|------------|
+| **MODIS_Terra_TrueColor** | True color composite | 250m |
+| **VIIRS_SNPP_CorrectedReflectance** | VIIRS true color | 375m |
+| **MODIS_Aqua_Chlorophyll_A** | Ocean chlorophyll | 4km |
+| **ASTER_GDEM_Color** | Digital elevation model | 30m |
+
+### Sentinel Bands
+
+| Sentinel-2 Band | Description | Resolution |
+|-----------------|-------------|------------|
+| **B02** | Blue | 10m |
+| **B03** | Green | 10m |
+| **B04** | Red | 10m |
+| **B08** | NIR | 10m |
+| **B11** | SWIR | 20m |
+
+## Use Cases
+
+### Climate Monitoring
+- **Track vegetation changes** (NDVI from NASA GIBS)
+- **Ice sheet monitoring** (Sentinel-1 radar)
+- **Ocean temperature** (MODIS sea surface temp)
+- **Deforestation tracking** (Sentinel-2 time series)
+
+### Maritime Intelligence
+- **Ocean current forecasting** (OSCAR)
+- **Ship routing optimization** (combine currents + satellite tracking)
+- **Fishing grounds identification** (chlorophyll maps)
+
+### Satellite Operations
+- **ISS visibility** (N2YO passes)
+- **Communication satellite tracking** (geostationary satellites)
+- **Collision avoidance** (TLE data)
+
+### Disaster Response
+- **Flood mapping** (Sentinel-1 before/after)
+- **Fire monitoring** (MODIS thermal anomalies)
+- **Hurricane tracking** (visible imagery)
+
+## Data Quality & Coverage
+
+| Source | Update Frequency | Spatial Resolution | Temporal Coverage |
+|--------|------------------|-------------------|-------------------|
+| N2YO | Real-time (seconds) | N/A (position data) | Current |
+| NASA GIBS | 3 hours - daily | 250m - 5km | 2000 - present |
+| Sentinel Hub | 5 days | 10m - 60m | 2015 - present |
+| OSCAR | 5 days | 1/3 degree (~37km) | 1993 - present |
+
+## Technical Details
+
+- **Protocol**: REST API (all)
+- **Format**: JSON (metadata), GeoTIFF/PNG (imagery), NetCDF (OSCAR)
+- **Authentication**: API keys (N2YO, Sentinel Hub)
+- **Rate Limits**: Varies by provider
+- **Data Size**: Imagery can be large (MB to GB per request)
+
+## Advanced Features
+
+### N2YO Categories
+```python
+# Get satellites by category
+from n2yo_satellite_data import get_category_satellites
+weather_sats = get_category_satellites(category='weather')
+```
+
+### Sentinel Processing
+```python
+# Custom band combinations
+from sentinelhub_data import custom_script
+ndvi = custom_script(bands=['B08', 'B04'], formula='(B08-B04)/(B08+B04)')
+```
+
+### OSCAR Time Series
+```python
+# Get current trends
+from oscar_data import get_current_trends
+trends = get_current_trends(region='gulf_stream', years=10)
+```
+
+---
+
+**Total Sources**: 4 providers | **Free Access**: 2 sources | **Coverage**: Global | **Applications**: Climate, Maritime, Disaster Response | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/SPECIALTY_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/SPECIALTY_DATA_SOURCES.md
new file mode 100644
index 000000000..b4e1a4edf
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/SPECIALTY_DATA_SOURCES.md
@@ -0,0 +1,215 @@
+# Specialty Data Sources
+
+> Specialized financial utilities, analytics tools, and alternative data
+
+## Overview
+
+Specialized data sources and tools for specific financial tasks including economic databases, technical analysis, news aggregation, report generation, and financial modeling utilities.
+
+## Specialty Data Providers
+
+| Provider | File Name | API Key | Specialty |
+|----------|-----------|---------|-----------|
+| 📊 **EconDB** | `econdb_data.py` | 🔑 Required | Economic database aggregator - global macro data |
+| 📈 **Multpl** | `multpl_data.py` | ❌ No | Historical market valuation multiples |
+| 📅 **Economic Calendar** | `economic_calendar.py` | ❌ No | Economic events and release calendar |
+| 📰 **Company News** | `fetch_company_news.py` | ❌ No | Company-specific news aggregation |
+
+## Financial Analysis Tools
+
+| Tool | File Name | API Key | Purpose |
+|------|-----------|---------|---------|
+| 🔧 **Technical Indicators** | `compute_technicals.py` | ❌ No | Compute technical indicators from OHLCV data |
+| 📄 **Report Generator** | `financial_report_generator.py` | ❌ No | Generate financial analysis reports |
+| 💼 **FinancePy** | `financepy_wrapper.py` | ❌ No | Financial calculations library wrapper |
+
+## Data Categories
+
+| Category | Tools | Use Cases |
+|----------|-------|-----------|
+| **Economic Data** | EconDB, Economic Calendar | Macro research, event tracking |
+| **Market Valuation** | Multpl | P/E ratios, yields, historical context |
+| **News & Events** | Company News, Economic Calendar | Sentiment, event-driven trading |
+| **Technical Analysis** | Compute Technicals | Chart analysis, indicators |
+| **Financial Modeling** | FinancePy, Report Generator | Valuations, bond pricing, derivatives |
+
+## Usage Examples
+
+```python
+# EconDB - Global economic data
+from econdb_data import get_indicator
+gdp_data = get_indicator('RGDP', countries=['USA', 'CHN'], start_date='2020-01-01')
+
+# Multpl - Historical market multiples
+from multpl_data import get_pe_ratio
+sp500_pe = get_pe_ratio(index='sp500', metric='pe_ratio')
+
+# Economic calendar
+from economic_calendar import get_events
+upcoming = get_events(country='US', start_date='2024-01-01', end_date='2024-01-31')
+
+# Company news
+from fetch_company_news import get_news
+aapl_news = get_news(ticker='AAPL', days=7)
+
+# Technical indicators
+from compute_technicals import calculate_indicators
+indicators = calculate_indicators(ohlcv_data, indicators=['RSI', 'MACD', 'BB'])
+
+# Financial report generation
+from financial_report_generator import generate_report
+report = generate_report(ticker='AAPL', report_type='comprehensive')
+
+# FinancePy - Financial calculations
+from financepy_wrapper import price_bond
+bond_price = price_bond(coupon=5.0, maturity=10, ytm=4.5)
+```
+
+## Key Features by Source
+
+### EconDB
+- **Economic data aggregator**
+- 200+ countries
+- 200,000+ economic indicators
+- Standardized data format
+- Historical data (decades)
+- API access with key
+
+### Multpl
+- **Historical market metrics**
+- S&P 500 P/E ratio (Shiller, trailing)
+- Dividend yields
+- Market cap to GDP
+- 10-year treasury yields
+- Historical valuation context
+- Free data source
+
+### Economic Calendar
+- **Global economic events**
+- Central bank meetings
+- Economic data releases (GDP, CPI, employment)
+- Earnings calendars
+- Political events
+- Real-time updates
+
+### Company News
+- **News aggregation**
+- Company-specific news
+- Multiple news sources
+- Sentiment analysis ready
+- Historical news archives
+- RSS/API feeds
+
+### Compute Technicals
+- **Technical indicator library**
+- 50+ indicators (RSI, MACD, Bollinger Bands, etc.)
+- Custom indicator support
+- Vectorized calculations
+- Works with any OHLCV data
+- Pandas DataFrame output
+
+### Financial Report Generator
+- **Automated report creation**
+- Company analysis reports
+- Valuation models
+- Financial statement analysis
+- Charts and visualizations
+- PDF/HTML export
+
+### FinancePy
+- **Financial calculations library**
+- Bond pricing and yields
+- Option pricing (Black-Scholes, binomial)
+- Interest rate models
+- Credit risk calculations
+- Portfolio analytics
+
+## EconDB Indicators
+
+| Indicator | Description |
+|-----------|-------------|
+| **RGDP** | Real GDP |
+| **CPI** | Consumer Price Index |
+| **URATE** | Unemployment Rate |
+| **POLICY** | Central Bank Policy Rate |
+| **TB** | Trade Balance |
+| **GDEBT** | Government Debt |
+| **IP** | Industrial Production |
+
+## Technical Indicators Available
+
+| Indicator | Type | Description |
+|-----------|------|-------------|
+| **RSI** | Momentum | Relative Strength Index |
+| **MACD** | Momentum | Moving Average Convergence Divergence |
+| **BB** | Volatility | Bollinger Bands |
+| **SMA/EMA** | Trend | Simple/Exponential Moving Averages |
+| **ATR** | Volatility | Average True Range |
+| **Stochastic** | Momentum | Stochastic Oscillator |
+| **ADX** | Trend | Average Directional Index |
+
+## FinancePy Capabilities
+
+| Module | Functions |
+|--------|-----------|
+| **Bonds** | Price, yield, duration, convexity |
+| **Options** | Black-Scholes, Greeks, implied volatility |
+| **Swaps** | Interest rate swaps, valuation |
+| **Credit** | CDS pricing, credit spreads |
+| **Calendars** | Business day calculations |
+
+## API Key Setup
+
+```bash
+# EconDB (required)
+export ECONDB_API_KEY="your_key_here" # Get from: https://www.econdb.com/
+```
+
+## Data Quality & Coverage
+
+| Source | Update Frequency | Historical Depth | Rate Limits |
+|--------|------------------|------------------|-------------|
+| EconDB | Daily/Monthly | Decades | Based on plan |
+| Multpl | Daily | 100+ years | Unlimited |
+| Economic Calendar | Real-time | Current + future events | Unlimited |
+| Company News | Real-time | Varies | Varies by source |
+| Compute Technicals | On-demand | N/A (calculates) | None |
+| Report Generator | On-demand | N/A (generates) | None |
+| FinancePy | On-demand | N/A (calculates) | None |
+
+## Technical Details
+
+- **Protocol**: REST API (data sources), Python libraries (tools)
+- **Format**: JSON (APIs), Pandas DataFrames (tools)
+- **Authentication**: API keys where required
+- **Dependencies**: NumPy, Pandas, TA-Lib (for technicals)
+- **Performance**: Optimized for large datasets
+
+## Use Case Examples
+
+### Macro Research
+```python
+# Combine EconDB + Economic Calendar
+indicators = get_indicator('CPI', countries=['USA'])
+events = get_events(country='US', event_type='inflation')
+```
+
+### Technical Analysis
+```python
+# Full technical analysis suite
+from compute_technicals import full_analysis
+analysis = full_analysis(ticker='AAPL', period='6m')
+# Returns: RSI, MACD, Bollinger Bands, SMA, EMA, Volume analysis
+```
+
+### Valuation Research
+```python
+# Historical context for valuations
+current_pe = get_current_pe('AAPL')
+historical_pe = get_pe_ratio(index='sp500')
+# Compare current vs historical
+```
+
+---
+
+**Total Sources**: 7 (4 data + 3 tools) | **Free Access**: 6 sources | **Unique Features**: Technicals, Reports, Financial math | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/US_FINANCIAL_DATA_SOURCES.md b/fincept-terminal-desktop/src-tauri/resources/scripts/US_FINANCIAL_DATA_SOURCES.md
new file mode 100644
index 000000000..51c49da4c
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/US_FINANCIAL_DATA_SOURCES.md
@@ -0,0 +1,181 @@
+# US Financial Data Sources
+
+> Specialized US government financial and regulatory data
+
+## Overview
+
+Access specialized financial and regulatory data from US government agencies. These sources provide SEC filings, treasury data, energy statistics, and corporate disclosures not available in general market data feeds.
+
+## US Government Financial Agencies
+
+| Agency | File Name | API Key | Coverage |
+|--------|-----------|---------|----------|
+| 💵 **US Treasury** | `fiscaldata_data.py` | ❌ No | Fiscal Data Treasury - debt, revenue, spending |
+| 📋 **SEC** | `sec_data.py` | ❌ No | Securities filings, company data |
+| 📄 **SEC Edgar** | `edgar_tools.py` | ❌ No | Edgar filings parser and analyzer |
+| ⚡ **EIA** | `eia_data.py` | 🔑 Required | Energy Information Administration |
+
+## Data Categories
+
+| Category | Sources | Examples |
+|----------|---------|----------|
+| **Corporate Filings** | SEC, Edgar | 10-K, 10-Q, 8-K, proxy statements |
+| **Fiscal Policy** | Fiscal Data | Government debt, deficits, spending |
+| **Energy** | EIA | Oil, gas, electricity, renewables |
+| **Treasury** | Fiscal Data | Bond yields, auctions, cash flow |
+
+## API Key Setup
+
+```bash
+# Energy Information Administration (required)
+export EIA_API_KEY="your_key_here" # Get from: https://www.eia.gov/opendata/register.php
+```
+
+## Usage Examples
+
+```python
+# US Treasury fiscal data
+from fiscaldata_data import get_debt_data
+debt = get_debt_data(start_date='2020-01-01', end_date='2023-12-31')
+
+# SEC company filings
+from sec_data import get_company_filings
+filings = get_company_filings(cik='0000320193', filing_type='10-K') # Apple
+
+# Edgar tools - parse filings
+from edgar_tools import parse_10k
+financial_data = parse_10k(cik='0000320193', year=2023)
+
+# EIA energy data
+from eia_data import get_petroleum_data
+oil_prices = get_petroleum_data(series='PET.RWTC.D') # WTI crude
+```
+
+## Key Features by Source
+
+### Fiscal Data (US Treasury)
+- **Treasury.gov official data**
+- Federal debt outstanding
+- Government revenue and spending
+- Treasury auctions
+- Interest rates and yields
+- SOMA holdings (Fed balance sheet)
+- Daily Treasury Statement
+- Free, unlimited access
+
+### SEC (Securities and Exchange Commission)
+- **EDGAR database access**
+- Company filings (10-K, 10-Q, 8-K, S-1)
+- Insider transactions
+- Institutional holdings (13-F)
+- Mutual fund holdings
+- Company CIK lookup
+- Real-time filing updates
+
+### Edgar Tools
+- **Advanced SEC filing parser**
+- Extract financial statements
+- Parse XBRL data
+- Company fundamentals
+- Historical filings
+- Bulk download capabilities
+- Python library integration
+
+### EIA (Energy Information Administration)
+- **Official US energy statistics**
+- Petroleum (crude oil, gasoline, diesel)
+- Natural gas
+- Electricity generation and consumption
+- Coal production
+- Renewable energy
+- International energy data
+- 4+ million time series
+
+## Data Quality & Coverage
+
+| Source | Update Frequency | Historical Depth | Rate Limits |
+|--------|------------------|------------------|-------------|
+| Fiscal Data | Daily | 1998+ | Unlimited |
+| SEC | Real-time | 1994+ | 10 requests/second |
+| Edgar Tools | Real-time | 1994+ | 10 requests/second |
+| EIA | Daily/Weekly/Monthly | Varies (10+ years) | 5000/hour |
+
+## Specialized Use Cases
+
+### Fiscal Data
+- **Treasury yield curve analysis**
+- Debt ceiling monitoring
+- Government cash flow
+- Federal budget analysis
+- Deficit tracking
+
+### SEC & Edgar
+- **Fundamental analysis**
+- Due diligence research
+- Insider trading analysis
+- Institutional investor tracking
+- Corporate governance research
+- M&A activity monitoring
+
+### EIA
+- **Energy market analysis**
+- Oil price forecasting
+- Natural gas supply/demand
+- Electricity market trends
+- Renewable energy adoption
+- Energy policy analysis
+
+## Filing Types (SEC)
+
+| Filing Type | Description | Frequency |
+|-------------|-------------|-----------|
+| **10-K** | Annual report | Yearly |
+| **10-Q** | Quarterly report | Quarterly |
+| **8-K** | Current events | As needed |
+| **S-1** | IPO registration | One-time |
+| **13-F** | Institutional holdings | Quarterly |
+| **4** | Insider transactions | As needed |
+| **DEF 14A** | Proxy statement | Yearly |
+
+## EIA Data Series Examples
+
+| Series | Description |
+|--------|-------------|
+| **PET.RWTC.D** | WTI crude oil spot price |
+| **NG.RNGWHHD.D** | Henry Hub natural gas price |
+| **ELEC.GEN.ALL-US-99.M** | Total US electricity generation |
+| **COAL.PROD.TOT-US-TOT.M** | Total US coal production |
+| **TOTAL.SODEPR.M** | Solar energy production |
+
+## Technical Details
+
+- **Protocol**: REST API (all), Web scraping (SEC)
+- **Format**: JSON (primary), XML/XBRL (SEC filings), CSV
+- **Authentication**: API key (EIA only)
+- **Rate Limits**: Varies by source
+- **Data Delivery**: Real-time (SEC), Daily/Monthly (others)
+
+## Advanced Features
+
+### Edgar Tools
+```python
+# Get all financials for a company
+from edgar_tools import Company
+apple = Company('AAPL')
+financials = apple.financials
+
+# Search filings
+filings = apple.get_filings(form='10-K')
+latest_10k = filings[0]
+```
+
+### EIA Bulk Downloads
+```python
+# Bulk data access
+from eia_data import get_bulk_data
+petroleum_data = get_bulk_data(category='petroleum', series='all')
+```
+
+---
+
+**Total Sources**: 4 agencies | **Free Access**: 3 sources | **Unique Coverage**: SEC filings, Treasury data, Energy stats | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/agents/README.md b/fincept-terminal-desktop/src-tauri/resources/scripts/agents/README.md
new file mode 100644
index 000000000..61800f36f
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/agents/README.md
@@ -0,0 +1,208 @@
+# AI Agents
+
+> Multi-agent systems for trading, geopolitical analysis, and investment strategies
+
+## Overview
+
+Collection of 30+ AI agents powered by local LLMs (Ollama) and Langchain. Agents simulate investment strategies from legendary investors, hedge funds, and provide geopolitical intelligence analysis.
+
+**Framework**: FinAgent Core - custom agent framework with LLM execution, tool registry, and database management.
+
+## Agent Categories
+
+| Category | Agents | Description |
+|----------|--------|-------------|
+| 🌍 **Geopolitics** | 19 agents | Grand Chessboard, Prisoners of Geography, World Order |
+| 💰 **Hedge Funds** | 8 agents | Top hedge fund strategies (Bridgewater, Citadel, Renaissance, etc.) |
+| 📊 **Legendary Investors** | 2 agents | Warren Buffett, Benjamin Graham value investing |
+| 🤖 **Economic Analysis** | 1 agent | Economic policy and indicators |
+
+## FinAgent Core Framework (`/finagent_core/`)
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| **Base Agent** | `base_agent.py` | Abstract agent class, lifecycle management |
+| **LLM Executor** | `llm_executor.py` | Ollama integration, prompt execution |
+| **Tool Registry** | `tools/tool_registry.py` | Tool management and discovery |
+| **Database Manager** | `database/db_manager.py` | SQLite persistence, agent memory |
+| **LLM Providers** | `config/llm_providers.py` | Model configurations (Llama, Mistral, etc.) |
+| **Logger** | `utils/logger.py` | Structured logging |
+| **Path Resolver** | `utils/path_resolver.py` | File path management |
+
+## Geopolitical Agents (`/GeopoliticsAgents/`)
+
+### Grand Chessboard Framework (5 agents)
+
+Based on Zbigniew Brzezinski's geopolitical strategy:
+
+| Agent | File | Focus |
+|-------|------|-------|
+| **American Primacy** | `american_primacy_agent.py` | US global leadership strategy |
+| **Eurasian Balkans** | `eurasian_balkans_agent.py` | Central Asian geopolitics |
+| **Heartland Theory** | `heartland_agent.py` | Mackinder's heartland control |
+| **Pivots** | `pivots_agent.py` | Critical geopolitical pivot states |
+| **Players** | `players_agent.py` | Major global power players |
+
+### Prisoners of Geography Framework (10 agents)
+
+Based on Tim Marshall's geographic constraints:
+
+| Agent | File | Region Coverage |
+|-------|------|-----------------|
+| **Russia** | `russia_geography_agent.py` | Russian geographic constraints |
+| **China** | `china_geography_agent.py` | Chinese territorial strategy |
+| **USA** | `usa_geography_agent.py` | American geographic advantages |
+| **Europe** | `europe_geography_agent.py` | European geographic challenges |
+| **Middle East** | `middle_east_geography_agent.py` | Middle Eastern geography |
+| **Africa** | `africa_geography_agent.py` | African development constraints |
+| **India & Pakistan** | `india_pakistan_geography_agent.py` | South Asian geography |
+| **Japan & Korea** | `japan_korea_geography_agent.py` | East Asian island nations |
+| **Latin America** | `latin_america_geography_agent.py` | Latin American geography |
+| **Arctic** | `arctic_geography_agent.py` | Arctic strategic importance |
+
+### World Order Framework (4 agents)
+
+Based on Henry Kissinger's world order analysis:
+
+| Agent | File | Order Type |
+|-------|------|------------|
+| **American Order** | `american_order_agent.py` | Liberal international order |
+| **Chinese Order** | `chinese_order_agent.py` | Confucian harmony concept |
+| **European Order** | `european_order_agent.py` | Balance of power system |
+| **Islamic Order** | `islamic_order_agent.py` | Islamic governance principles |
+| **Multipolar Order** | `multipolar_order_agent.py` | Multiple power centers |
+
+## Hedge Fund Agents (`/hedgeFundAgents/`)
+
+Simulate strategies from world's top hedge funds:
+
+| Hedge Fund | File/Directory | Strategy Style | AUM |
+|------------|----------------|----------------|-----|
+| **Bridgewater Associates** | `bridgewater_associates_hedge_fund_agent/` | Global macro, risk parity | $124B |
+| **Citadel** | `citadel_hedge_fund_agent/` | Multi-strategy, quant | $62B |
+| **Renaissance Technologies** | `renaissance_technologies_hedge_fund_agent/` | Quantitative, mathematical models | $55B |
+| **Two Sigma** | `two_sigma_hedge_fund_agent/` | AI/ML, systematic trading | $60B |
+| **D.E. Shaw** | | `de_shaw_hedge_fund_agent/` | Computational finance | $60B |
+| **Elliott Management** | `elliott_management_hedge_fund_agent/` | Activist, distressed debt | $56B |
+| **Pershing Square** | `pershing_square_hedge_fund_agent/` | Activist value investing | $16B |
+| **AQR Capital** | `arq_capital_hedge_fund_agent/` | Factor investing, quant | $90B |
+
+**Fincept Hedge Fund**: Custom multi-agent hedge fund system (`fincept_hedge_fund/main.py`)
+
+## Legendary Investor Agents (`/TraderInvestorsAgent/`)
+
+| Investor | File | Investment Philosophy |
+|----------|------|----------------------|
+| **Warren Buffett** | `warren_buffett_agent.py` | Value investing, moats, long-term holding |
+| **Benjamin Graham** | `benjamin_graham_agent.py` | Deep value, margin of safety, Mr. Market |
+
+## Economic Agents (`/EconomicAgents/`)
+
+| Agent | Purpose |
+|-------|---------|
+| **Economic Analysis Agent** | Macroeconomic analysis, policy interpretation, indicator forecasting |
+
+## Agent Capabilities
+
+### All Agents Provide:
+- **Analysis**: Market/geopolitical situation assessment
+- **Recommendations**: Actionable investment or strategic advice
+- **Risk Assessment**: Potential risks and mitigation strategies
+- **Reasoning**: Transparent decision-making process
+- **Memory**: Persistent state across conversations
+
+### Geopolitical Agents:
+- Regional conflict analysis
+- Trade route vulnerabilities
+- Resource competition assessment
+- Strategic alliance evaluation
+- Risk mapping for investments
+
+### Hedge Fund Agents:
+- Strategy-specific recommendations
+- Portfolio construction
+- Risk management approaches
+- Market regime analysis
+- Factor exposure analysis
+
+### Investor Agents:
+- Stock screening criteria
+- Valuation analysis
+- Quality assessment
+- Entry/exit timing
+- Position sizing
+
+## Usage Examples
+
+```python
+# Geopolitical agent
+from agents.GeopoliticsAgents.PrisonersOfGeographyAgents.region_agents.china_geography_agent import ChinaGeographyAgent
+agent = ChinaGeographyAgent()
+analysis = agent.analyze("Impact of Taiwan situation on semiconductor supply chain")
+
+# Hedge fund agent
+from agents.hedgeFundAgents.bridgewater_associates_hedge_fund_agent.bridgewater_associates_agent import BridgewaterAgent
+agent = BridgewaterAgent()
+recommendation = agent.analyze_market("US bond market outlook")
+
+# Investor agent
+from agents.TraderInvestorsAgent.warren_buffett_agent import WarrenBuffettAgent
+agent = WarrenBuffettAgent()
+evaluation = agent.evaluate_stock("AAPL")
+```
+
+## Agent Manager
+
+**Central orchestration**: `agent_manager.py` - Manages agent lifecycle, routing, and coordination
+
+```python
+from agents.agent_manager import AgentManager
+
+manager = AgentManager()
+manager.register_agent('buffett', WarrenBuffettAgent())
+response = manager.query('buffett', 'Should I invest in Apple?')
+```
+
+## LLM Models Supported
+
+Via Ollama (local inference):
+
+| Model | Size | Best For |
+|-------|------|----------|
+| **Llama 3.1** | 8B-70B | General reasoning, analysis |
+| **Mistral** | 7B-22B | Financial analysis |
+| **Mixtral** | 8x7B | Complex multi-step reasoning |
+| **Phi-3** | 3.8B | Fast responses |
+| **CodeLlama** | 7B-34B | Code generation, quant strategies |
+
+## Configuration
+
+Each agent category has `/configs/` directory with:
+- LLM model selection
+- Temperature/sampling parameters
+- System prompts
+- Tool configurations
+- Memory settings
+
+## Technical Details
+
+- **Framework**: Custom FinAgent Core
+- **LLM**: Ollama (local), Langchain integration
+- **Database**: SQLite (agent memory, state)
+- **Tools**: Extensible tool system
+- **Language**: Python 3.11+
+- **Dependencies**: langchain, ollama, sqlite3
+
+## Agent Debate System
+
+Agents can participate in multi-agent debates:
+- Consensus building
+- Contrarian analysis
+- Risk devil's advocate
+- Crowd wisdom aggregation
+
+See `agno_trading/core/debate_orchestrator.py` for debate framework.
+
+---
+
+**Total Agents**: 30+ agents | **Categories**: 4 (Geopolitics, Hedge Funds, Investors, Economic) | **Framework**: FinAgent Core | **LLM**: Ollama (local) | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/ai_quant_lab/README.md b/fincept-terminal-desktop/src-tauri/resources/scripts/ai_quant_lab/README.md
new file mode 100644
index 000000000..bc57cde4c
--- /dev/null
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/ai_quant_lab/README.md
@@ -0,0 +1,252 @@
+# AI Quant Lab
+
+> Quantitative research lab powered by Qlib and RDAgent for automated strategy development
+
+## Overview
+
+AI Quant Lab combines Microsoft's Qlib quantitative investment platform with RDAgent (Research & Development Agent) for automated hypothesis generation, backtesting, and strategy optimization.
+
+**Key Technologies**: Qlib (quant framework), RDAgent (AI research agent), automated strategy evolution
+
+## System Components
+
+| Component | Modules | Purpose |
+|-----------|---------|---------|
+| **Qlib Integration** | 8 modules | Backtesting, portfolio optimization, ML models |
+| **RDAgent System** | 4 modules | Hypothesis generation, knowledge base, research automation |
+
+## Qlib Modules
+
+| Module | File | Purpose |
+|--------|------|---------|
+| **Advanced Backtest** | `qlib_advanced_backtest.py` | Multi-factor backtesting engine |
+| **Data Processors** | `qlib_data_processors.py` | Data cleaning, normalization, feature extraction |
+| **Evaluation** | `qlib_evaluation.py` | Strategy performance evaluation, metrics |
+| **Feature Engineering** | `qlib_feature_engineering.py` | Alpha factor creation, feature selection |
+| **Portfolio Optimization** | `qlib_portfolio_opt.py` | Portfolio construction, risk management |
+| **Reporting** | `qlib_reporting.py` | Performance reports, visualizations |
+| **Strategy** | `qlib_strategy.py` | Trading strategy implementation |
+| **Service** | `qlib_service.py` | Main service interface for Tauri integration |
+
+## RDAgent System (`/rdagent/`)
+
+| Module | File | Purpose |
+|--------|------|---------|
+| **Hypothesis Generation** | `core/hypothesis_gen.py` | AI-generated trading hypotheses |
+| **Knowledge Base** | `core/knowledge_base.py` | Research knowledge storage, retrieval |
+| **Proposal System** | `core/proposal_system.py` | Strategy proposal and ranking |
+| **Service** | `rd_agent_service.py` | RDAgent main service |
+
+## Qlib Features
+
+### Data Processing
+- **Data normalization**: Z-score, min-max, robust scaling
+- **Missing data handling**: Forward fill, interpolation
+- **Outlier detection**: Statistical methods, isolation forest
+- **Feature extraction**: Price-volume features, technical indicators
+
+### Feature Engineering
+- **Alpha factors**: 158+ built-in alpha factors
+- **Technical indicators**: MACD, RSI, Bollinger Bands, ATR
+- **Market microstructure**: VWAP, spread, liquidity
+- **Custom factors**: User-defined alpha expressions
+
+### Backtesting
+- **Realistic simulation**: Slippage, transaction costs, market impact
+- **Multiple frequencies**: Daily, hourly, minute-level
+- **Position limits**: Long/short constraints, leverage limits
+- **Risk management**: Stop loss, take profit, drawdown limits
+
+### Portfolio Optimization
+- **Mean-variance optimization**: Markowitz efficient frontier
+- **Risk parity**: Equal risk contribution
+- **Minimum variance**: Minimum risk portfolio
+- **Maximum Sharpe**: Optimal risk-adjusted returns
+- **Custom objectives**: User-defined optimization goals
+
+### Model Library
+- **Linear models**: Ridge, Lasso, ElasticNet
+- **Tree models**: XGBoost, LightGBM, CatBoost
+- **Neural networks**: MLP, LSTM, Transformer
+- **Ensemble methods**: Stacking, blending
+
+### Evaluation Metrics
+- **Returns**: Annualized, cumulative, daily
+- **Risk**: Volatility, max drawdown, VaR, CVaR
+- **Risk-adjusted**: Sharpe, Sortino, Calmar ratios
+- **Trading**: Win rate, profit factor, turnover
+
+## RDAgent Features
+
+### Hypothesis Generation
+- **AI-powered**: LLM generates trading hypotheses
+- **Market regime analysis**: Identifies market conditions
+- **Factor discovery**: Discovers new alpha factors
+- **Strategy templates**: Pre-built strategy patterns
+
+### Knowledge Base
+- **Research repository**: Stores successful strategies
+- **Factor library**: Proven alpha factors
+- **Failure analysis**: Learns from failed strategies
+- **Best practices**: Accumulated trading wisdom
+
+### Proposal System
+- **Strategy ranking**: Ranks strategies by potential
+- **Backtesting automation**: Automated strategy testing
+- **Hyperparameter tuning**: Automated optimization
+- **Ensemble creation**: Combines multiple strategies
+
+## Workflow
+
+```
+┌─────────────────┐
+│ Market Data │ ← Stock prices, fundamentals
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Data Processing │ ← Clean, normalize, extract features
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ RDAgent │ ← Generate hypotheses
+│ Hypothesis Gen │
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Feature Eng │ ← Create alpha factors
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Model Training │ ← Train ML models
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Strategy │ ← Trading signals
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Backtest │ ← Historical simulation
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Portfolio Opt │ ← Optimal weights
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Evaluation │ ← Performance metrics
+└────────┬────────┘
+ │
+ ▼
+┌─────────────────┐
+│ Knowledge Base │ ← Store results
+└─────────────────┘
+```
+
+## Usage Examples
+
+### Qlib Backtesting
+```python
+from ai_quant_lab.qlib_service import run_backtest
+
+# Run backtest
+results = run_backtest(
+ strategy='top_k',
+ universe='csi300',
+ start_date='2020-01-01',
+ end_date='2023-12-31',
+ top_k=30
+)
+
+print(f"Sharpe Ratio: {results['sharpe']}")
+print(f"Annual Return: {results['annual_return']}")
+```
+
+### Feature Engineering
+```python
+from ai_quant_lab.qlib_feature_engineering import create_alpha_factors
+
+# Create custom alpha factors
+factors = create_alpha_factors(
+ data=stock_data,
+ factors=['momentum', 'value', 'quality']
+)
+```
+
+### RDAgent Hypothesis Generation
+```python
+from ai_quant_lab.rd_agent_service import generate_hypothesis
+
+# AI generates trading hypothesis
+hypothesis = generate_hypothesis(
+ market_regime='bull_market',
+ asset_class='equities',
+ timeframe='daily'
+)
+
+print(f"Hypothesis: {hypothesis['description']}")
+print(f"Factors: {hypothesis['factors']}")
+```
+
+### Portfolio Optimization
+```python
+from ai_quant_lab.qlib_portfolio_opt import optimize_portfolio
+
+# Optimize portfolio
+weights = optimize_portfolio(
+ returns=expected_returns,
+ covariance=cov_matrix,
+ method='max_sharpe',
+ constraints={'long_only': True}
+)
+```
+
+## Configuration
+
+### Qlib Configuration
+- **Data source**: Yahoo Finance, CSV, database
+- **Universe**: Stock pools (CSI300, S&P500, custom)
+- **Frequency**: 1min, 5min, 1day
+- **Benchmark**: Index for comparison
+
+### RDAgent Configuration
+- **LLM model**: GPT-4, Claude, Llama (via Ollama)
+- **Knowledge base**: SQLite, vector DB
+- **Hypothesis count**: Number of hypotheses per run
+- **Evaluation criteria**: Sharpe, returns, drawdown
+
+## Technical Details
+
+- **Framework**: Qlib (Microsoft Research)
+- **ML Libraries**: XGBoost, LightGBM, PyTorch
+- **Data**: Pandas, NumPy
+- **Optimization**: SciPy, cvxpy
+- **LLM**: Ollama (local), OpenAI API
+- **Database**: SQLite (knowledge base)
+- **Language**: Python 3.11+
+
+## Performance Optimization
+
+- **Data caching**: Pickle, HDF5 for fast loading
+- **Parallel processing**: Multi-core backtesting
+- **GPU acceleration**: PyTorch for neural networks
+- **Vectorization**: NumPy/Pandas operations
+
+## Integration with Fincept Terminal
+
+Services exposed via Tauri commands:
+- `qlib_service.py`: Main Qlib interface
+- `rd_agent_service.py`: RDAgent interface
+
+Called from Rust backend for frontend integration.
+
+---
+
+**Total Modules**: 12 (8 Qlib + 4 RDAgent) | **Frameworks**: Qlib, RDAgent | **ML Models**: 10+ algorithms | **Last Updated**: 2025-12-28
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/universal_ckan_api.md b/fincept-terminal-desktop/src-tauri/resources/scripts/universal_ckan_api.md
deleted file mode 100644
index b6c4dd0de..000000000
--- a/fincept-terminal-desktop/src-tauri/resources/scripts/universal_ckan_api.md
+++ /dev/null
@@ -1,351 +0,0 @@
-# Universal CKAN Data Portals API Wrapper
-
-A comprehensive Python wrapper for accessing multiple CKAN-based data portals worldwide. This wrapper supports 8 major CKAN portals with a unified interface, making it easy to access open government data from different countries.
-
-## Supported Portals
-
-| Country | Code | Portal Name | Base URL |
-|---------|------|-------------|----------|
-| United States | `us` | Data.gov | `https://catalog.data.gov/api/3/action` |
-| United Kingdom | `uk` | data.gov.uk | `https://data.gov.uk/api/3/action` |
-| Australia | `au` | data.gov.au | `https://data.gov.au/api/3/action` |
-| Italy | `it` | dati.gov.it | `https://www.dati.gov.it/api/3/action` |
-| Brazil | `br` | dados.gov.br | `https://dados.gov.br/api/3/action` |
-| Latvia | `lv` | data.gov.lv | `https://data.gov.lv/api/3/action` |
-| Slovenia | `si` | podatki.gov.si | `https://podatki.gov.si/api/3/action` |
-| Uruguay | `uy` | catalogodatos.gub.uy | `https://catalogodatos.gub.uy/api/3/action` |
-
-## Features
-
-- **Multi-country Support**: Access data from 8 different CKAN portals with a single interface
-- **Hierarchical Data Access**: Navigate from organizations → datasets → resources
-- **Comprehensive Error Handling**: Graceful degradation with detailed error messages
-- **Modular Design**: Each endpoint works independently
-- **Enhanced Metadata**: Additional computed fields for better data understanding
-- **CLI Interface**: Command-line access to all functionality
-- **Connection Testing**: Verify portal availability before making requests
-
-## Installation
-
-No external dependencies required beyond the Python standard library and `requests`.
-
-```bash
-pip install requests
-```
-
-## Quick Start
-
-### Command Line Usage
-
-```bash
-# List all datasets from US portal
-python universal_ckan_api.py --country us --action list_datasets
-
-# Search for climate data in Australia
-python universal_ckan_api.py --country au --action search_datasets --query "climate"
-
-# Get dataset details from UK portal
-python universal_ckan_api.py --country uk --action dataset_details --id "dataset-name"
-
-# Test connection to a portal
-python universal_ckan_api.py --country it --action test_connection
-
-# List supported countries
-python universal_ckan_api.py --country us --action supported_countries
-```
-
-### Python Usage
-
-```python
-from universal_ckan_api import (
- search_datasets,
- get_dataset_details,
- get_dataset_resources,
- list_organizations
-)
-
-# Search for datasets in the US portal
-result = search_datasets('us', query='climate', rows=10)
-if not result['error']:
- print(f"Found {result['metadata']['count']} datasets")
- for dataset in result['data']:
- print(f"- {dataset['title']}")
-
-# Get detailed information about a dataset
-dataset_info = get_dataset_details('us', 'consumer-complaint-database')
-if not dataset_info['error']:
- print(f"Dataset: {dataset_info['data']['title']}")
- print(f"Resources: {dataset_info['data']['num_resources']}")
-
-# Get all resources for a dataset
-resources = get_dataset_resources('us', 'consumer-complaint-database')
-if not resources['error']:
- for resource in resources['data']:
- print(f"- {resource['name']} ({resource['format']})")
-
-# List organizations
-orgs = list_organizations('au', limit=20)
-if not orgs['error']:
- for org in orgs['data']:
- print(f"- {org['display_name']}")
-```
-
-## API Reference
-
-### Organization Functions
-
-#### `list_organizations(country_code, limit=None)`
-List all organizations in the specified portal.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code (us, uk, au, etc.)
-- `limit` (int, optional): Maximum number of organizations to return
-
-**Returns:** Dictionary with `data`, `metadata`, and `error` fields
-
-#### `get_organization_details(country_code, organization_id)`
-Get detailed information about a specific organization.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `organization_id` (str): ID or name of the organization
-
-**Returns:** Dictionary with organization details
-
-### Dataset Functions
-
-#### `list_datasets(country_code, limit=50)`
-List all datasets in the specified portal.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `limit` (int): Maximum number of datasets to return
-
-**Returns:** Dictionary with list of datasets
-
-#### `search_datasets(country_code, query="", rows=50, organization=None, tags=None)`
-Search for datasets in the specified portal.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `query` (str): Search query string
-- `rows` (int): Number of results to return
-- `organization` (str, optional): Filter by organization name
-- `tags` (list, optional): Filter by tags
-
-**Returns:** Dictionary with search results
-
-#### `get_dataset_details(country_code, dataset_id)`
-Get detailed information about a specific dataset.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `dataset_id` (str): ID or name of the dataset
-
-**Returns:** Dictionary with dataset details
-
-#### `get_datasets_by_organization(country_code, organization_id, limit=None)`
-Get all datasets belonging to a specific organization.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `organization_id` (str): ID or name of the organization
-- `limit` (int, optional): Maximum number of datasets to return
-
-**Returns:** Dictionary with organization datasets
-
-### Resource Functions
-
-#### `get_dataset_resources(country_code, dataset_id)`
-Get all resources (data files) for a specific dataset.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `dataset_id` (str): ID or name of the dataset
-
-**Returns:** Dictionary with dataset resources
-
-#### `get_resource_details(country_code, resource_id)`
-Get detailed information about a specific resource.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-- `resource_id` (str): ID of the resource
-
-**Returns:** Dictionary with resource details
-
-### Utility Functions
-
-#### `get_supported_countries()`
-Get list of supported countries and their portal information.
-
-**Returns:** Dictionary with supported countries
-
-#### `test_portal_connection(country_code)`
-Test connection to a specific CKAN portal.
-
-**Parameters:**
-- `country_code` (str): Two-letter country code
-
-**Returns:** Dictionary with connection test results
-
-## Response Format
-
-All API functions return a consistent dictionary format:
-
-```python
-{
- "data": [...], # Actual API response data
- "metadata": { # Additional context information
- "source": "Portal Name",
- "country": "US",
- "action": "package_search",
- "last_updated": "2024-01-01T12:00:00",
- "count": 10,
- "url": "https://...",
- # ... other metadata fields
- },
- "error": None # Error message if failed, None if successful
-}
-```
-
-## Error Handling
-
-The wrapper includes comprehensive error handling:
-
-- **Connection Errors**: Network issues, timeouts
-- **HTTP Errors**: Invalid responses, status codes
-- **API Errors**: CKAN-specific errors
-- **Validation Errors**: Invalid parameters, unsupported countries
-
-All errors are returned in the `error` field with descriptive messages, allowing the application to continue functioning even when individual endpoints fail.
-
-## Data Enhancement
-
-The wrapper automatically enhances raw CKAN data with additional computed fields:
-
-### Dataset Enhancements
-- `num_resources`: Number of resources in the dataset
-- `has_tags`: Whether the dataset has tags
-- `organization_name`: Human-readable organization name
-- `resource_types`: List of unique resource formats
-- `metadata_created`: Dataset creation timestamp
-- `metadata_modified`: Dataset modification timestamp
-
-### Organization Enhancements
-- `package_count`: Number of datasets/packages
-- `country`: Country code
-
-## CLI Reference
-
-### Basic Syntax
-
-```bash
-python universal_ckan_api.py --country <CODE> --action <ACTION> [OPTIONS]
-```
-
-### Options
-
-- `--country <code>`: Two-letter country code (required)
-- `--action <action>`: Action to perform (required)
-- `--id <id>`: Dataset or resource ID (for specific actions)
-- `--org <org>`: Organization ID or name
-- `--query <query>`: Search query string
-- `--limit <number>`: Maximum results to return
-
-### Available Actions
-
-- `list_organizations`: List all organizations
-- `get_organization_details`: Get organization details
-- `list_datasets`: List all datasets
-- `search_datasets`: Search datasets
-- `get_dataset_details`: Get dataset details
-- `get_datasets_by_organization`: Get datasets by organization
-- `get_dataset_resources`: Get dataset resources
-- `get_resource_details`: Get resource details
-- `test_connection`: Test portal connection
-- `supported_countries`: List supported countries
-
-## Examples
-
-### Example 1: Climate Data Research
-
-```python
-# Search for climate data across multiple countries
-countries = ['us', 'uk', 'au', 'ca']
-climate_datasets = []
-
-for country in countries:
- result = search_datasets(country, query='climate change', rows=20)
- if not result['error']:
- for dataset in result['data']:
- climate_datasets.append({
- 'title': dataset['title'],
- 'country': country.upper(),
- 'organization': dataset['organization_name'],
- 'resources': dataset['num_resources']
- })
-
-print(f"Found {len(climate_datasets)} climate datasets")
-```
-
-### Example 2: Bulk Dataset Analysis
-
-```python
-# Analyze datasets from a specific organization
-org_datasets = get_datasets_by_organization('us', 'census-bureau')
-
-if not org_datasets['error']:
- total_resources = 0
- formats = {}
-
- for dataset in org_datasets['data']:
- total_resources += dataset.get('num_resources', 0)
-
- for resource in dataset.get('resources', []):
- format_type = resource.get('format', 'unknown').lower()
- formats[format_type] = formats.get(format_type, 0) + 1
-
- print(f"Total datasets: {len(org_datasets['data'])}")
- print(f"Total resources: {total_resources}")
- print("Resource formats:", formats)
-```
-
-### Example 3: Portal Health Check
-
-```python
-# Test all supported portals
-health_status = {}
-
-for country in CKAN_PORTALS.keys():
- result = test_portal_connection(country)
- health_status[country] = {
- 'status': result['data']['status'],
- 'portal': result['data']['portal']
- }
-
-print("Portal Health Status:")
-for country, status in health_status.items():
- print(f"{country.upper()}: {status['status']} - {status['portal']}")
-```
-
-## Rate Limiting
-
-While this wrapper doesn't implement rate limiting internally, it's important to be mindful of the individual portal's rate limits when making multiple requests. Consider implementing delays between requests for bulk operations.
-
-## Contributing
-
-To add support for additional CKAN portals:
-
-1. Add the portal configuration to the `CKAN_PORTALS` dictionary
-2. Update the documentation with the new portal
-3. Test the implementation with the new portal
-
-## License
-
-This wrapper is provided as-is for educational and research purposes. Please respect the terms of service of the individual data portals when using this tool.
-
-## Official Documentation
-
-- [CKAN API Documentation](https://docs.ckan.org/en/2.9/api/)
-- [CKAN User Guide](https://docs.ckan.org/en/2.9/user-guide.html)
\ No newline at end of file
diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/wto_test_results.txt b/fincept-terminal-desktop/src-tauri/resources/scripts/wto_test_results.txt
deleted file mode 100644
index 94e9647c5..000000000
--- a/fincept-terminal-desktop/src-tauri/resources/scripts/wto_test_results.txt
+++ /dev/null
@@ -1,114 +0,0 @@
-WTO API Testing Results
-========================
-Tested: 2025-11-28
-API Key: d7a9d5f751404d189deb99efcb855d12
-
-ISSUES FOUND AND FIXED
------------------------
-
-1. API Key Not Being Passed ❌ → ✅ FIXED
- - Problem: WTODataWrapper() initialized without subscription key
- - Fix: Updated main() to extract API key from last CLI argument and pass to wrapper
- - Implementation: Checks if last arg is 32-char string (API key format)
-
-2. Timeseries JSON Parsing Issue ❌ → ✅ FIXED
- - Problem: Timeseries API returns JSON string that wasn't being parsed
- - Fix: Updated fetch_data() to detect and parse JSON strings
- - Code added: json.loads() check for string responses
-
-COMPREHENSIVE TEST RESULTS
----------------------------
-
-Module 1: QR (Quantitative Restrictions) API ✅
-- get_qr_members(): ✅ WORKING (66 members)
-- get_qr_products(): ✅ WORKING (HS versions: 1992, 1996, 2002, 2007, 2012, 2017, 2022)
-- get_qr_notifications(): ✅ WORKING (53 notifications)
-- get_qr_details(): ✅ WORKING (detailed QR data)
-- get_qr_list(): ✅ WORKING (filtered QR lists)
-- get_qr_hs_versions(): ✅ WORKING (7 HS versions)
-
-Module 2: ePing (SPS/TBT Notifications) API ✅
-- get_eping_members(): ✅ WORKING (164 members)
-- search_eping_notifications(): ✅ WORKING (searchable notifications)
- - Filters: language, domainIds, dates, countries, HS/ICS codes
- - 10,000+ notifications available
-
-Module 3: Timeseries API ✅
-- get_timeseries_topics(): ✅ WORKING (47 topics including tariffs, trade flows)
-- get_timeseries_indicators(): ⚠️ PARTIAL (HTTP 204 for some queries, requires valid codes)
-- get_timeseries_data(): ✅ WORKING (with valid indicator codes)
- - Example: TP_A_0010 (MFN tariff rates)
- - Reporters: Use 3-digit numeric codes (840 = USA, not "US")
- - Returns time series data with values, years, units
-- get_timeseries_reporters(): ✅ WORKING (reporter economy lists)
-- get_timeseries_partners(): ✅ WORKING (partner economy lists)
-- get_timeseries_data_count(): ✅ WORKING (data point counts)
-
-Module 4: TFAD (Trade Facilitation Agreement Database) API ✅
-- get_tfad_data(): ✅ WORKING (procedures, contacts, single window data)
-
-WORKING CLI EXAMPLES
----------------------
-
-# QR API
-python wto_data.py qr_members d7a9d5f751404d189deb99efcb855d12
-python wto_data.py qr_products --hs_version 2022 d7a9d5f751404d189deb99efcb855d12
-python wto_data.py qr_notifications d7a9d5f751404d189deb99efcb855d12
-
-# ePing API
-python wto_data.py eping_members d7a9d5f751404d189deb99efcb855d12
-python wto_data.py eping_search --domainIds 1 --page 1 --page_size 10 d7a9d5f751404d189deb99efcb855d12
-
-# Timeseries API
-python wto_data.py timeseries_topics d7a9d5f751404d189deb99efcb855d12
-python wto_data.py timeseries_data --i TP_A_0010 --reporters 840 --periods 2020-2023 d7a9d5f751404d189deb99efcb855d12
-python wto_data.py timeseries_reporters d7a9d5f751404d189deb99efcb855d12
-
-# TFAD API
-python wto_data.py tfad_data --countries 840,124 d7a9d5f751404d189deb99efcb855d12
-
-# Analysis Commands
-python wto_data.py overview d7a9d5f751404d189deb99efcb855d12
-python wto_data.py trade_restrictions_analysis d7a9d5f751404d189deb99efcb855d12
-python wto_data.py notifications_analysis d7a9d5f751404d189deb99efcb855d12
-python wto_data.py trade_statistics_analysis --reporter 840 d7a9d5f751404d189deb99efcb855d12
-
-KEY NOTES
----------
-
-1. API Key Format: 32-character alphanumeric string
-2. Pass API key as LAST argument (script auto-detects it)
-3. Timeseries reporters must use 3-digit numeric codes (see WITS country mapping)
-4. Valid indicator codes required (get from timeseries_topics first)
-5. All 4 API modules fully functional
-
-AVAILABLE DATA TYPES
---------------------
-
-1. Trade Restrictions
- - Quantitative restrictions by country/product
- - Export/import prohibitions and bans
- - Licensing requirements
- - Quota systems
-
-2. Regulatory Notifications
- - SPS (Sanitary and Phytosanitary) measures
- - TBT (Technical Barriers to Trade) notifications
- - Emergency measures
- - Product standards and regulations
-
-3. Trade Statistics
- - MFN applied tariffs (by country/product/year)
- - Trade flows (imports/exports)
- - Tariff profiles
- - Trade indicators
-
-4. Trade Facilitation
- - Single window procedures
- - Border agency contacts
- - Publication and notification procedures
- - Trade facilitation commitments
-
-INTEGRATION READY
------------------
-All endpoints tested and working. Script ready for frontend integration.