Agent skill · Audited from source
Financial Data Analysis
skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Methods for acquiring, cleaning, and analyzing financial datasets for research
Cite
Cite this page
ModelsAtlas. “Financial Data Analysis (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/financial-data-analysis
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherbrycewang-stanford GitHub userOwner of the repository this skill is read from
- Source folderbrycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/domains/finance/financial-data-analysisThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicte1ba289846fdA new audit runs when the source changes
- Repository statusNot archivedLast push 2 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Methods for acquiring, cleaning, and analyzing financial datasets for research
---
name: financial-data-analysis
description: "Methods for acquiring, cleaning, and analyzing financial datasets for research"
metadata:
openclaw:
emoji: "💸"
category: "domains"
subcategory: "finance"
keywords: ["financial data", "stock analysis", "quantitative finance", "data pipeline", "financial API"]
source: "wentor"
---
# Financial Data Analysis
A practical skill for sourcing, processing, and analyzing financial data in academic research contexts. Covers data acquisition from public APIs, cleaning workflows, and standard analytical techniques used in empirical finance research.
## Data Acquisition
### Public Financial Data Sources
| Source | Data Type | Access | Python Package |
|--------|-----------|--------|---------------|
| Yahoo Finance | Prices, fundamentals | Free | `yfinance` |
| FRED (St. Louis Fed) | Macroeconomic indicators | Free (API key) | `fredapi` |
| SEC EDGAR | Company filings (10-K, 10-Q) | Free | `sec-edgar-downloader` |
| WRDS (Wharton) | CRSP, Compustat, IBES | University subscription | `wrds` |
| Alpha Vantage | Real-time and historical prices | Free tier | `alpha_vantage` |
### Fetching Price Data
```python
import yfinance as yf
import pandas as pd
def fetch_stock_data(tickers: list[str], start: str, end: str) -> pd.DataFrame:
"""
Fetch adjusted close prices for a list of tickers.
Args:
tickers: List of ticker symbols (e.g., ['AAPL', 'MSFT'])
start: Start date (YYYY-MM-DD)
end: End date (YYYY-MM-DD)
Returns:
DataFrame with adjusted close prices
"""
data = yf.download(tickers, start=start, end=end, auto_adjust=True)
prices = data['Close'] if len(tickers) > 1 else data[['Close']]
prices.columns = tickers if len(tickers) > 1 else tickers
return prices
# Fetch 5 years of data
prices = fetch_stock_data(['AAPL', 'MSFT', 'GOOGL'], '2020-01-01', '2025-01-01')
print(prices.head())
```
### Macroeconomic Data from FRED
```python
from fredapi import Fred
fred = Fred(api_key=os.environ["FRED_API_KEY"])
# Common series for finance research
series_ids = {
'GDP': 'GDP',
'CPI': 'CPIAUCSL',
'Fed_Funds_Rate': 'FEDFUNDS',
'Unemployment': 'UNRATE',
'10Y_Treasury': 'DGS10',
'VIX': 'VIXCLS'
}
macro_data = pd.DataFrame()
for name, sid in series_ids.items():
macro_data[name] = fred.get_series(sid, observation_start='2000-01-01')
```
## Data Cleaning Pipeline
Financial data requires careful cleaning before analysis:
```python
def clean_financial_data(df: pd.DataFrame) -> pd.DataFrame:
"""Standard cleaning pipeline for financial time series."""
cleaned = df.copy()
# 1. Handle missing values
missing_pct = cleaned.isnull().sum() / len(cleaned) * 100
print(f"Missing data:\n{missing_pct}")
# 2. Forward-fill for market holidays (max 5 days)
cleaned = cleaned.ffill(limit=5)
# 3. Remove remaining NaN rows
cleaned = cleaned.dropna()
# 4. Detect and flag outliers (>5 sigma daily returns)
returns = cleaned.pct_change()
z_scores = (returns - returns.mean()) / returns.std()
outliers = (z_scores.abs() > 5).any(axis=1)
print(f"Outlier days flagged: {outliers.sum()}")
# 5. Verify data integrity
assert cleaned.index.is_monotonic_increasing, "Index must be sorted"
assert not cleaned.duplicated().any(), "No duplicate rows allowed"
return cleaned
```
## Standard Financial Metrics
### Return Calculations
```python
def compute_returns(prices: pd.DataFrame) -> dict:
"""Compute standard return metrics."""
simple_returns = prices.pct_change().dropna()
log_returns = np.log(prices / prices.shift(1)).dropna()
annualized_return = simple_returns.mean() * 252
annualized_vol = simple_returns.std() * np.sqrt(252)
sharpe_ratio = annualized_return / annualized_vol
# Maximum drawdown
cumulative = (1 + simple_returns).cumprod()
rolling_max = cumulative.cummax()
drawdown = (cumulative - rolling_max) / rolling_max
max_drawdown = drawdown.min()
return {
'annualized_return': annualized_return,
'annualized_volatility': annualized_vol,
'sharpe_ratio': sharpe_ratio,
'max_drawdown': max_drawdown
}
```
## Event Studies
A common methodology in empirical finance research:
1. Define the event window (e.g., [-5, +5] trading days around earnings announcement)
2. Estimate normal returns using the market model over the estimation window (e.g., [-250, -30])
3. Compute abnormal returns: AR = R_actual - R_expected
4. Aggregate cumulative abnormal returns (CAR) across firms
5. Test statistical significance using parametric (Patell test) and non-parametric (sign test) methods
Always report both raw and risk-adjusted results, and perform robustness checks with different estimation windows and benchmark models.
## Reproducibility
Store all data processing steps in version-controlled scripts. Use `pandas.DataFrame.to_parquet()` for efficient storage of intermediate datasets, and document data provenance including download dates, API versions, and any filters applied.Excerpt, first 5,111 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit e1ba289
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills git -C Auto-Empirical-Research-Skills checkout e1ba289846fd
The author documents no install command, so this uses the repository directly. Our verdict covers commit e1ba289846fd only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
e1ba289846fd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/brycewang-stanford/financial-data-analysis/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →brycewang-stanford/Auto-Empirical-Research-Skills
GIS analysis and remote sensing workflows for geospatial research applications
brycewang-stanford/Auto-Empirical-Research-Skills
Run and manage Google Colab notebooks for Python and ML research
brycewang-stanford/Auto-Empirical-Research-Skills
Advanced Google Scholar search techniques for comprehensive literature discovery
brycewang-stanford/Auto-Empirical-Research-Skills
Ethical Google Scholar data collection techniques and best practices
brycewang-stanford/Auto-Empirical-Research-Skills
Autonomous agent for comprehensive deep research on any topic
brycewang-stanford/Auto-Empirical-Research-Skills
Practical advice for thriving in PhD programs and academic research
Add this badge to your README
[](https://modelsatlas.com/skills/brycewang-stanford/financial-data-analysis/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/financial-data-analysis/"><img src="https://modelsatlas.com/skills/brycewang-stanford/financial-data-analysis/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Financial Data Analysis
What does the Financial Data Analysis skill do?
Is Financial Data Analysis safe to install?
What can Financial Data Analysis access on my machine?
Which assistants does Financial Data Analysis work with?
How current is this page?
Sources
- github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tre — the audited source at commit e1ba289846fd and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Financial Data Analysis skill do?
- Is Financial Data Analysis safe to install?
- What can Financial Data Analysis access on my machine?