# Claude Code
Source: https://docs.fincept.in/clients/claude-code
Add Fincept MCP to Claude Code and sign in.
```bash theme={"dark"}
claude mcp add --transport http --scope user fincept https://enterprise.fincept.in/mcp
```
`--scope user` makes the server available in every project. Use `--scope project` to share it through the repository's `.mcp.json`, or omit the flag for the current project only.
Start Claude Code, run `/mcp`, select `fincept` and choose **Authenticate**. Approve the connection on fincept.in.
```bash theme={"dark"}
claude mcp list
```
`fincept` shows as connected.
## List more tools up front
The default listing is the core set plus the discovery tools. To list whole toolsets, add them to the URL:
```bash theme={"dark"}
claude mcp add --transport http --scope user fincept "https://enterprise.fincept.in/mcp?toolsets=market,stats_tsa_models"
```
See [finding tools](/guides/finding-tools) for the trade-off.
## Remove
```bash theme={"dark"}
claude mcp remove fincept --scope user
```
Removing the server does not revoke its sign-in on Fincept. See [authentication](/guides/authentication#revoke-access).
# Codex
Source: https://docs.fincept.in/clients/codex
Add Fincept MCP to the Codex CLI and sign in.
```bash theme={"dark"}
codex mcp add fincept --url https://enterprise.fincept.in/mcp
```
Codex detects that the server uses OAuth and opens the browser. Approve the connection on fincept.in.
```bash theme={"dark"}
codex mcp list
```
`fincept` shows as enabled with OAuth.
`mcp add` already signs you in. Running `codex mcp login fincept` right after starts a second sign-in, which is harmless: Codex keeps the newer one.
## Configuration file
`mcp add` writes this to `~/.codex/config.toml`:
```toml theme={"dark"}
[mcp_servers.fincept]
url = "https://enterprise.fincept.in/mcp"
```
To list whole toolsets up front, append them to the URL, for example `https://enterprise.fincept.in/mcp?toolsets=market,data`.
## Sign in again or sign out
```bash theme={"dark"}
codex mcp login fincept
codex mcp logout fincept
```
Windows PowerShell 5.1 does not accept `&&`. Run each command on its own line.
# Cursor
Source: https://docs.fincept.in/clients/cursor
Add Fincept MCP to Cursor and sign in.
Add `fincept` to `~/.cursor/mcp.json` for every project, or to `.cursor/mcp.json` in one repository:
```json theme={"dark"}
{
"mcpServers": {
"fincept": {
"url": "https://enterprise.fincept.in/mcp"
}
}
}
```
Open Cursor's MCP settings. `fincept` shows that it needs a login; start it and approve the connection on fincept.in. Cursor receives the sign-in through its own `cursor://` callback.
Ask in Agent mode, for example: "Using Fincept, compare the 1-year returns of SPY and QQQ."
# Other clients
Source: https://docs.fincept.in/clients/other-clients
What an MCP client needs to connect to Fincept MCP.
Any MCP client works if it supports:
| Requirement | Detail |
| - | - |
| Transport | Streamable HTTP at `https://enterprise.fincept.in/mcp` |
| Authorization | OAuth 2.1 authorization code with PKCE (`S256`) |
| Discovery | Protected resource metadata (RFC 9728) from the `WWW-Authenticate` challenge, then authorization server metadata (RFC 8414) |
| Registration | Dynamic client registration (RFC 7591), public client, no secret |
| Redirect URI | `https://...`, `http://` on a loopback host (any port), or a private-use scheme such as `myapp://callback` |
| Scope | `mcp` |
| Resource | `https://enterprise.fincept.in/mcp` (RFC 8707 `resource` parameter) |
Most clients do all of this automatically when you give them the URL. Endpoints and metadata are listed in the [endpoint reference](/reference/endpoint).
Static API keys and bearer tokens copied from the terminal do not work. The server accepts only tokens issued by its own OAuth flow for this endpoint.
## Clients without OAuth
A client that cannot run a browser sign-in cannot connect directly. Run it next to a client that can, or use a local MCP proxy that performs the OAuth flow and forwards requests.
# VS Code
Source: https://docs.fincept.in/clients/vs-code
Add Fincept MCP to VS Code (GitHub Copilot agent mode) and sign in.
Create `.vscode/mcp.json` in the workspace:
```json theme={"dark"}
{
"servers": {
"fincept": {
"type": "http",
"url": "https://enterprise.fincept.in/mcp"
}
}
}
```
Or add it for your user profile from the command line:
```bash theme={"dark"}
code --add-mcp "{\"name\":\"fincept\",\"type\":\"http\",\"url\":\"https://enterprise.fincept.in/mcp\"}"
```
Start the server from `mcp.json` (or the **MCP: List Servers** command). VS Code asks to sign in; approve the connection on fincept.in.
Open Copilot Chat in **Agent** mode. Fincept tools appear in the tools picker.
# Authentication
Source: https://docs.fincept.in/guides/authentication
How sign-in works, how long it lasts, and how to revoke an agent's access.
Fincept MCP uses OAuth 2.1. Your client never sees your password; it receives tokens that work only on the MCP endpoint.
## Sign-in flow
On first connect the server answers `401` with a pointer to its OAuth metadata. The client registers itself and opens `fincept.in/enterprise/connect`.
Signed out, you sign in to your Fincept account first and land back on the request. The page shows which app is asking and where it will return. Select **Authorize** or **Decline**.
The browser returns to the client (a local port for terminal agents, an app link for editors). The client exchanges the one-time code for tokens and connects.
Approval needs an active Fincept Exclusive plan (Exclusive, Exclusive+ or Exclusive Pro). Without one the connect page explains what is required instead of offering **Authorize**.
## Token lifetimes
| Item | Lifetime |
| - | - |
| Access token | 1 hour. The client refreshes it silently. |
| Refresh token | 30 days, rotated on every use. A refresh token used twice ends the connection. |
| Approval link | 15 minutes from when the client opened it. |
| Connections | Up to 20 per account. A 21st sign-in ends the oldest. |
Every request is also checked live: if your plan lapses or your password changes, the next request is refused.
## Revoke access
| To end | Do this |
| - | - |
| One client | Sign out in the client: `codex mcp logout fincept`, or in Claude Code `/mcp` then **Clear authentication**. |
| Every connection | Change your password (in the terminal, or **Forgot password** at [fincept.in/enterprise/login](https://fincept.in/enterprise/login)). Every session and MCP connection ends at its next request. |
Removing a server from a client's config does not end its sign-in on Fincept; sign out first.
## Tokens are scoped
* An MCP token works only at `https://enterprise.fincept.in/mcp`. It cannot call the Fincept API used by the terminal.
* A terminal or website token is refused at the MCP endpoint.
* The only scope is `mcp`: the agent can do what your plan allows through the tools listed in this documentation, and nothing that moves real money.
# Credits and limits
Source: https://docs.fincept.in/guides/credits-and-limits
What Fincept MCP requires, what it costs, and the limits that apply to every call.
## Plan
Fincept MCP is included in every Fincept Exclusive plan: **Exclusive**, **Exclusive+** and **Exclusive Pro**. Every tool your plan includes in the terminal is available to your agent; quotas (watchlists, portfolios, history depth) are the same.
## Credits
Most tools are free. Tools that cost credits in the terminal cost the same here, from the same balance:
* The price is in each tool's description, so the agent sees it before calling.
* Charges happen on a delivered result. Failed, empty and refused calls cost nothing.
* Daily spend caps and per-action hourly caps apply as in the terminal (`402 spend_cap_reached`).
* Engine tools are free: Fincept Stats, Forecast, Allocation, Portfolio Optimizer, Quant, Volatility, Panel, TS Forecast, Technicals, Change Points, Regimes, Copula, Multi-Period, Portfolio Lab, Pricing, Scanner and Performance.
The [credits reference](/reference/toolsets/credits) lists every tool that can spend credits. Check your balance with `account_get_credits` and your spending with `account_get_usage`.
## Rate limit
| Limit | Value |
| - | - |
| Requests per account | 120 per minute, bursts up to 40 |
| Request body | 1 MB |
Every MCP message counts as one request, including `tools/list` and discovery calls. Past the limit the server answers HTTP `429` with `Retry-After`; clients retry on their own.
Fincept Scanner's requests to the market data source are also paced across the whole server. When that pace is reached, a scanner tool answers `busy` with `details.retry_after_s`, the seconds to wait; retrying sooner gets the same answer.
## Time limits
| Call | Limit |
| - | - |
| Most tools | 30 seconds |
| Analytics, screeners, portfolio reports, AI answers | 60 to 180 seconds |
| `backtest_run` / `backtest_optimize` | 5 / 10 minutes |
| Fincept Stats | 90 seconds, up to 300 seconds for heavy models |
| Fincept Forecast | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Allocation | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Portfolio Optimizer | 90 seconds, up to 180 seconds for heavy tools |
| Fincept Quant | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Volatility | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Panel | 90 seconds, up to 300 seconds for heavy tools |
| Fincept TS Forecast | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Technicals | 90 seconds |
| Fincept Change Points | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Regimes | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Copula | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Multi-Period | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Portfolio Lab | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Pricing | 90 seconds, up to 300 seconds for heavy tools |
| Fincept Scanner | 75 seconds; `scan_history` and `scan_returns` answer within about 45 seconds and continue in the next call |
| Fincept Performance | 30 to 120 seconds; `perf_rolling` and `perf_bootstrap` 180 seconds, `perf_backtest_overfitting` 300 seconds |
A call past its limit returns an error envelope with code `timeout`.
## Result size
| Item | Value |
| - | - |
| Inline result | About 40 KB; larger results are stored and previewed |
| Stored result | Up to 25 MB, kept 24 hours |
See [results](/guides/results#large-results).
# Data references
Source: https://docs.fincept.in/guides/data-references
Feed Fincept data straight into any engine tool with a $fincept reference.
Every tool of the 15 Fincept engines (Stats, Forecast, Allocation, Portfolio Optimizer, Quant, Volatility, Panel, TS Forecast, Technicals, Change Points, Regimes, Copula, Multi-Period, Portfolio Lab and Pricing) computes on numbers that usually come from another Fincept tool. Instead of fetching 2,000 closes and pasting them back (slow, and expensive in context), the agent passes a **reference** and the server fetches the data itself.
```json theme={"dark"}
{
"y": {
"$fincept": {
"tool": "market_get_candles",
"arguments": { "symbol": "AAPL", "interval": "1d", "limit": 1000 },
"path": "candles.close"
}
},
"order": [1, 1, 1],
"steps": 20
}
```
This call to `stats_arima` fits the model on AAPL's last 1,000 daily closes.
## Fields
A Fincept read tool, such as `market_get_candles`, `data_get_observations` or `portfolio_get_performance`. Tools that write to your account are refused.
That tool's arguments, validated against its schema.
A dot path into the tool's `data`. At a list, a number picks one item (`series.0` is the first series); any other segment applies to every item (`candles.close` is every candle's close). Empty means the whole `data`.
## Rules
* A reference can stand in for any argument value: a series, a table column, a whole table.
* Up to **8 references** per call.
* The referenced tool runs as you: its plan checks, quotas and credits apply exactly as if the agent had called it.
* A reference that fails (unknown tool, refused call, missing path) makes the whole call fail with `validation_failed` and a message naming the reference.
## Examples
```json theme={"dark"}
{
"data": {
"stock": { "$fincept": { "tool": "market_get_candles", "arguments": { "symbol": "RELIANCE.NS", "interval": "1d", "limit": 500 }, "path": "candles.close" } },
"index": { "$fincept": { "tool": "market_get_candles", "arguments": { "symbol": "^NSEI", "interval": "1d", "limit": 500 }, "path": "candles.close" } }
},
"formula": "np.log(stock) ~ np.log(index)"
}
```
Tool: `stats_ols`. Both series must have the same length; ask for the same `limit` and `interval`.
```json theme={"dark"}
{
"values": { "$fincept": { "tool": "data_get_observations", "arguments": { "series": ["fred:UNRATE"], "start": "2000-01-01" }, "path": "series.0.observations.value" } }
}
```
Tool: `stats_stationarity_test`. `data_get_observations` answers a list of series; `series.0` picks the first.
# Fincept Allocation
Source: https://docs.fincept.in/guides/fincept-allocation
Portfolio optimisation and risk as MCP tools: 26 risk measures, risk parity, hierarchical portfolios, Black-Litterman and risk analytics.
Fincept Allocation is the portfolio engine behind every `alloc_*` tool: mean-risk optimisation over 26 risk measures (variance, MAD, CVaR, EVaR, drawdown measures and more), risk parity and risk budgeting, worst-case robust and OWA portfolios, efficient frontiers, hierarchical portfolios (HRP, HERC, NCO), Black-Litterman, factor models and entropy pooling, and the risk analytics of any portfolio: risk tables, risk contributions, drawdowns, attribution and share allocation. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Allocation tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `alloc_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Allocation reference](/reference/allocation/overview) lists every module and tool.
`alloc_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Returns or prices | `data`: one column per asset, one row per period, optionally a date column; returns (0.01 = 1%) by default, prices with `data_kind: "prices"` | `{"date": ["2024-01-02", "2024-01-03"], "AAPL": [0.012, -0.004], "MSFT": [0.008, 0.001]}` |
| Weights | Portfolio weights by asset; assets left out weigh 0 | `{"AAPL": 0.4, "MSFT": 0.6}` |
| Factors | Factor returns, one column per factor, same layout as `data` | `{"MKT": [0.004, -0.002], "SMB": [0.001, 0.003]}` |
| Asset classes | One row per asset: the asset name, then one column per classification | `{"Assets": ["AAPL", "XOM"], "Sector": ["Tech", "Energy"]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `alloc_risk_table`; 180 seconds for `alloc_uncertainty_sets`, `alloc_risk_parity`, `alloc_relaxed_risk_parity` and `alloc_factor_risk_budget`; 300 seconds for `alloc_optimize`, `alloc_efficient_frontier`, `alloc_owa`, `alloc_worst_case`, `alloc_mvsk` and `alloc_hierarchical` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Optimisation tools return the weights and the portfolio's expected return and risk; risk parity tools add each asset's or factor's risk contribution against its budget. `alloc_efficient_frontier` returns every point as a series with a line chart and the composition as an area chart. Risk tools return tables, with bar charts for contributions and attribution and line and area charts for drawdowns and value paths; estimation tools return covariance and correlation matrices with heatmaps.
## Example
```text Prompt theme={"dark"}
Using Fincept, build a minimum-CVaR portfolio of AAPL, MSFT, JPM, XOM and GLD from two years of daily prices, with no position above 30%, and show each asset's risk contribution.
```
The agent searches for `CVaR portfolio`, finds `alloc_optimize` and `alloc_risk_contribution`, and passes each asset's closes as a `$fincept` reference to `market_get_candles`, one `data` column per asset with `data_kind: "prices"`.
# Fincept Change Points
Source: https://docs.fincept.in/guides/fincept-change-points
Change-point detection as MCP tools: regime breaks in returns, volatility, trends, betas and mean reversion, with penalty selection and segmentation metrics.
Fincept Change Points is the change-point engine behind every `changepoint_*` tool: offline detection by PELT, binary segmentation, bottom-up merging, window sliding, dynamic programming or kernel search, with segment costs for shifts in mean, median, mean and covariance, distribution (kernel, cosine, rank), Mahalanobis distance, regression coefficients, continuous trends and autoregressive dynamics, stopped by a number of breaks, a penalty or a cost budget. Finance tools find volatility and return regimes, trend changes, beta and hedge-ratio breaks and mean-reversion regime changes in spreads and rates; penalty sweeps, the choice of the number of breaks, segmentation metrics and synthetic teaching signals complete it. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Change Points tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `changepoint_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Change Points reference](/reference/change-points/overview) lists every module and tool.
`changepoint_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Series | `values`: one series in time order (prices, returns, a rate, a spread) | `[472.7, 468.8, 467.3, 470.5]` |
| Table | `data`: several series as columns, optionally with a date column; the columns are segmented jointly | `{"date": ["2024-01-02", "2024-01-03"], "SPY": [472.7, 468.8], "TLT": [97.4, 96.9]}` |
| Dates | Optional ISO dates for `values`, one per observation | `["2024-01-02", "2024-01-03"]` |
| Stopping rule | `n_bkps` for a fixed number of breaks, or `penalty` (a BIC-type penalty by default) | `3` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Prices become returns before the search with `transform`: `pct_change` for simple returns, `log_return` for log returns. `changepoint_return_regimes` takes prices by default and returns with `returns_data: true`.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `changepoint_change_score`; 180 seconds for `changepoint_detect`, `changepoint_return_regimes`, `changepoint_regression_breaks`, `changepoint_ar_breaks` and `changepoint_trend_breaks`; 300 seconds for `changepoint_penalty_sweep` and `changepoint_select_count` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Every search returns the change points with their dates, each segment's span and statistics, and the signal with its segment means or fitted trend and the breaks marked as a series with a chart. `changepoint_return_regimes` adds each regime's annualised return and volatility, Sharpe ratio, cumulative return, maximum drawdown and mean correlation; `changepoint_regression_breaks` and `changepoint_ar_breaks` the coefficients, persistence and half-life per regime. `changepoint_penalty_sweep` and `changepoint_select_count` return the number of breaks at each penalty or by BIC, AIC and the elbow, with the chosen segmentation.
## Example
```text Prompt theme={"dark"}
Using Fincept, split ten years of SPY daily closes into volatility regimes and give each regime's dates, annualised volatility and maximum drawdown.
```
The agent searches for `volatility regimes`, finds `changepoint_return_regimes`, and passes the closes as `values` and their dates as `dates`, both `$fincept` references to `market_get_candles` (`candles.close` and `candles.time`).
# Fincept Copula
Source: https://docs.fincept.in/guides/fincept-copula
Dependence modelling as MCP tools: rank and tail dependence, bivariate and vine copulas, joint distributions, copula VaR and stress scenarios.
Fincept Copula is the dependence engine behind every `copula_*` tool: Kendall's tau, Spearman, Blomqvist, Hoeffding and Chatterjee dependence matrices; tail dependence between every pair; bivariate copulas of every family (Gaussian, Student, Clayton, Gumbel, Frank, Joe, BB1, BB6, BB7, BB8, Tawn and nonparametric) with rotations, fitted or selected by AIC, BIC or mBIC; R-, C- and D-vine copulas with truncation and thresholds, Rosenblatt transforms and conditional simulation; kernel and parametric margins and joint distributions on the return scale; vine quantile regression; and copula-based portfolio VaR, expected shortfall and stress scenarios by simulation. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Copula tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `copula_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Copula reference](/reference/copula/overview) lists every module and tool.
`copula_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| History | `data`: one column per asset, optionally a date column; returns by default, prices with `kind: "prices"` (simple returns, or log returns with `log_returns: true`), values already on the copula scale with `kind: "uniform"` | `{"date": ["2024-01-02", "2024-01-03"], "JPM": [0.012, -0.004], "BAC": [0.015, -0.006]}` |
| Weights | Portfolio weights by asset, for `copula_portfolio_var` and `copula_stress_scenarios` | `{"JPM": 0.4, "BAC": 0.3, "XOM": 0.3}` |
| Stress | `stress`: the shocked assets and their return, or a probability level with `stress_scale: "quantile"` | `{"JPM": -0.08}` |
| Fitted copula | `copula`: the `data.copula` of `copula_pair_fit`; `model`: the `data.model` of `copula_vine_fit`, for the evaluate, simulate, risk and stress tools | The object a fit returns |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 180 seconds for `copula_pair_fit`, `copula_vine_evaluate` and `copula_vine_simulate`; 300 seconds for `copula_tail_dependence`, `copula_joint_density`, `copula_vine_regression`, `copula_portfolio_var`, `copula_stress_scenarios` and `copula_vine_fit` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Dependence tools return matrices with heatmaps and the most dependent pairs. Fit tools return each family, rotation and parameters with standard errors, Kendall's tau, tail dependence and information criteria, and the reusable `data.copula` or `data.model`. `copula_portfolio_var` returns VaR and expected shortfall per confidence as a fraction and in currency, each asset's ES contribution, the worst scenarios and a histogram, beside Gaussian-copula and historical figures; `copula_stress_scenarios` returns each asset's conditional mean, quantiles and probability of a loss and the portfolio's conditional VaR and ES.
## Example
```text Prompt theme={"dark"}
Using Fincept, estimate the one-day 99% VaR and expected shortfall of 40% JPM, 30% BAC and 30% XOM from three years of daily prices with a vine copula, and show how the other two move if JPM falls 8%.
```
The agent searches for `copula portfolio VaR`, finds `copula_portfolio_var` and `copula_stress_scenarios`, and passes each stock's closes as a `$fincept` reference to `market_get_candles`, one `data` column per stock with `kind: "prices"`.
# Fincept Forecast
Source: https://docs.fincept.in/guides/fincept-forecast
Machine-learning forecasting as MCP tools: one series or a panel, conformal intervals, backtests and automatic model search.
Fincept Forecast is the machine-learning forecasting engine behind every `forecast_*` tool: LightGBM, XGBoost, CatBoost, random forests, ridge, lasso and 40 other regressors trained on lags, rolling, seasonal, expanding and EWM statistics, calendar features and exogenous columns; recursive or direct multi-step forecasts with conformal prediction intervals; rolling-origin backtests; automatic hyperparameter and feature search; model update and transfer to new series; and forecast accuracy metrics. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Forecast tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `forecast_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Forecast reference](/reference/forecast/overview) lists every module and tool.
`forecast_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Series | `y`: one series of numbers, oldest first | `[101.2, 102.8, 101.9, 103.1]` |
| Dates | Optional ISO dates for `y`, one per observation | `["2024-01-31", "2024-02-29"]` |
| Panel | `data`: a long table, one row per series and period, with id, time and target columns plus any exogenous columns | `{"unique_id": ["AAPL", "MSFT"], "ds": ["2024-01-02", "2024-01-02"], "y": [185.6, 370.9]}` |
| Future exogenous | `future_exog`: the values of every dynamic exogenous column over the horizon | `{"unique_id": ["AAPL"], "ds": ["2024-01-03"], "rate": [5.33]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
The id, time and target columns are `unique_id`, `ds` and `y` unless `id_col`, `time_col` and `target_col` name others. Columns listed in `static_features` are constant within each series; every other extra column is dynamic and needs future values.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 180 seconds for `forecast_feature_importance`, `forecast_prepare_panel`, `forecast_evaluate`, `forecast_rectify` and `forecast_feature_matrix`; 300 seconds for `forecast_ml_forecast`, `forecast_fitted_values`, `forecast_cross_validation`, `forecast_lightgbm_cv`, `forecast_update`, `forecast_transfer` and `forecast_auto_ml` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Forecasting tools return the forecast of every series and model with `-lo-` and `-hi-` interval bands, charts and feature importances. Backtests return every window's forecasts and the chosen metrics per model, window and series; `forecast_auto_ml` adds each model's best hyperparameters, features and trial losses. `forecast_evaluate` returns scores per series and per model, the Pareto-optimal models and errors by step ahead.
## Example
```text Prompt theme={"dark"}
Using Fincept, backtest a LightGBM and a ridge model on Nifty 50 daily closes over the last 5 windows of 20 days, then forecast the next 20 sessions with 80% and 95% intervals.
```
The agent searches for `machine learning forecast`, finds `forecast_cross_validation` and `forecast_ml_forecast`, and passes the closes as a `$fincept` reference to `market_get_candles`.
# Fincept Multi-Period
Source: https://docs.fincept.in/guides/fincept-multi-period
Trading over time as MCP tools: optimisation and rule-based policies back-tested with costs, today's optimal trades, pre-trade checks and aversion tuning.
Fincept Multi-Period is the trading-policy engine behind every `mpo_*` tool: single- and multi-period optimisation policies (expected return against full, diagonal, factor or worst-case risk, transaction and holding costs) with a planning horizon and about thirty constraint types (long-only, leverage, weight, trade and holding limits, turnover, participation rate, market, dollar and factor neutrality, cash, volatility target, soft constraints); rule-based policies (hold, cash, equal weight, fixed weights, periodic, proportional and adaptive rebalancing, rank long-short, volume-weighted market portfolio); a market simulator charging spreads, market impact, per-share fees, borrow and holding costs, with whole-share rounding and liquidity caps; today's optimal trades and planned trajectory; pre-trade cost, risk and constraint checks; return, risk, factor and volume forecasts; and risk and trade-aversion sweeps and searches. It never fetches market data itself: pass a table or a `$fincept` reference. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Multi-Period tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `mpo_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Multi-Period reference](/reference/multi-period/overview) lists every module and tool.
`mpo_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| History | `prices`: a date column and one column per asset, in time order; prices by default, periodic returns with `returns_data: true` | `{"date": ["2024-01-02", "2024-01-03"], "AAPL": [185.6, 184.3], "MSFT": [370.9, 370.6]}` |
| Volumes | `volumes`: traded value per date and asset, same columns, for market impact, participation limits and the market portfolio; share counts with `volume_in_shares: true` | `{"date": ["2024-01-02", "2024-01-03"], "AAPL": [15.3e9, 10.8e9], "MSFT": [9.2e9, 7.9e9]}` |
| Objective | `objective`: the risk, trade and holding aversions and the risk model; by default the historical mean minus 5 times full-covariance risk minus costs | `{"risk_aversion": 10, "trade_aversion": 1}` |
| Constraints | `constraints`: a list of constraint objects | `[{"kind": "long_only"}, {"kind": "leverage_limit", "value": 1}]` |
| Costs | `costs`: spreads, market impact, fees and borrow costs; none by default | `{"spread": 0.0005, "short_fee": 1.0}` |
| Holdings | `holdings`: current positions in value per asset plus `cash`; all in cash by default | `{"AAPL": 50000, "MSFT": 30000, "cash": 20000}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 60 seconds for `mpo_market_data`; 120 seconds for `mpo_forecast` and `mpo_optimize`; 300 seconds for `mpo_backtest`, `mpo_backtest_rules`, `mpo_gamma_sweep` and `mpo_hyperparameter_search` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Back-tests return every metric (return, volatility, excess and active return, Sharpe ratio, information ratio, growth rate, drawdown, turnover, leverage and the cost breakdown), per-period paths and weights over time as series with charts; `mpo_backtest_rules` adds a comparison table and value curves of every policy. `mpo_optimize` and `mpo_rule_trades` return current, target and trade weights and trades in value and in whole shares; `mpo_evaluate_trade` returns each objective term and whether every constraint holds. `mpo_gamma_sweep` returns the realized risk-return frontier and the best aversions by Sharpe ratio.
## Example
```text Prompt theme={"dark"}
Using Fincept, back-test a long-only multi-period policy over AAPL, MSFT, JPM, XOM and PFE since 2020 with 5 bp spreads beside equal weight, then give me today's optimal trades for a $1M portfolio.
```
The agent searches for `multi-period backtest`, finds `mpo_backtest` and `mpo_optimize`, and passes each stock's closes as a `$fincept` reference to `market_get_candles`, one `prices` column per stock, with the dates from `candles.time` as the `date` column.
# Fincept Panel
Source: https://docs.fincept.in/guides/fincept-panel
Panel and cross-section econometrics as MCP tools: fixed and random effects, Fama-MacBeth, instrumental variables, systems of equations and factor asset pricing.
Fincept Panel is the econometrics engine behind every `panel_*` tool: fixed effects (entity, time and other effects), random effects, between, first-difference, pooled and Fama-MacBeth regressions with robust, one- or two-way clustered, Driscoll-Kraay and autocorrelation-robust standard errors; estimator comparison with a Hausman test; regression absorbing high-dimensional fixed effects; instrumental variables (2SLS, LIML, k-class, GMM, CUE-GMM) with first-stage, over-identification and endogeneity tests; SUR, 3SLS and system GMM with cross-equation constraints; and linear factor asset-pricing models with risk premia, alphas and the J test. Classic econometrics datasets are bundled to try every model. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Panel tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `panel_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Panel reference](/reference/panel/overview) lists every module and tool.
`panel_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Panel | `data`: a long table, one row per entity and period, columns by name; `entity` and `time` name the panel columns | `{"firm": ["AAPL", "AAPL", "MSFT"], "year": [2022, 2023, 2022], "roa": [0.28, 0.27, 0.19], "lev": [0.31, 0.29, 0.22]}` |
| Table | `data` without `entity` and `time` for instrumental-variables, absorbing and system regressions: one row per observation | `{"JPM": [196.4, 195.1], "SPY": [472.7, 468.8]}` |
| Model | `dependent` and `exog` column names, or a `formula` with `EntityEffects` and `TimeEffects` terms where they apply | `"roa ~ 1 + lev + EntityEffects"` |
| Instruments | `endog` and `instruments` column names, or a formula with `[endogenous ~ instruments]` | `"lwage ~ 1 + exper + [educ ~ fatheduc + motheduc]"` |
| Factor model | `data`: one row per period with test-asset and factor returns; `portfolios` and `factors` name the columns | `{"portfolios": ["P1", "P2", "P3"], "factors": ["MKT", "SMB", "HML"]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Formulas take the columns of `data` and the transforms `log`, `exp`, `sqrt`, `C()`, `center()`, `scale()` and `poly()`; write `1 +` for an intercept. `panel_dataset` returns a bundled dataset whose `data.table` can be passed straight to a model tool as `data`.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 180 seconds for `panel_iv_regression`, `panel_iv_compare`, `panel_fixed_effects`, `panel_absorbing_regression`, `panel_compare` and `panel_system_regression`; 300 seconds for `panel_factor_model` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Regressions return coefficients with standard errors, t statistics, p-values and intervals, R² (within, between and overall for panels), F tests and optional Wald tests, predictions and per-row fitted values and residuals. `panel_fixed_effects` and `panel_random_effects` add the estimated effects and the variance share due to them; IV tools add first-stage strength, over-identification and endogeneity tests; `panel_compare` and `panel_iv_compare` set estimators side by side, with the Hausman test when fixed and random effects are both fitted. `panel_factor_model` returns risk premia, each asset's alpha and betas and the J test, with charts of premia and alphas.
## Example
```text Prompt theme={"dark"}
Using Fincept, estimate the hedge ratios of JPM, BAC and WFC log closes on SPY jointly by SUR over two years of daily data, and test whether the residual covariance is diagonal.
```
The agent searches for `seemingly unrelated regression`, finds `panel_system_regression`, and passes each symbol's closes as a `$fincept` reference to `market_get_candles`, one `data` column per symbol, with one equation per bank such as `log(JPM) ~ 1 + log(SPY)`.
# Fincept Performance
Source: https://docs.fincept.in/guides/fincept-performance
Performance reports, monthly returns, drawdowns and ratios of any price series; return transforms and rolling statistics; risk-parity and mean-variance weights; deflated Sharpe ratio, backtest overfitting and bootstrap checks.
Fincept Performance is the performance-analysis engine behind every `perf_*` tool. `perf_stats` gives the full performance report of one or many price series side by side: total return, CAGR, maximum drawdown and Calmar ratio; MTD, 3- and 6-month, YTD, 1-, 3-, 5- and 10-year and since-inception returns; Sharpe and Sortino ratios, mean, volatility, skew, kurtosis and the best and worst period at daily, monthly and yearly frequency; average drawdown, average up and down month and win rates. The other tools give monthly return tables, drawdown episodes, single ratios against a benchmark, return transforms, resampling, annualisation, rolling statistics, portfolio weights, clustering, and the checks of a strategy search. It runs on Fincept's servers; your agent sends prices or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Performance tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in four modules. Each module is a toolset named `perf_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Performance reference](/reference/performance/overview) lists every tool.
| Module | Toolset | Tools |
| - | - | - |
| Performance statistics | `perf_stats` | `perf_stats`, `perf_monthly_returns`, `perf_drawdowns`, `perf_metrics` |
| Return transforms | `perf_returns` | `perf_transform`, `perf_resample`, `perf_annualize`, `perf_frequency`, `perf_rolling` |
| Portfolio weights and clustering | `perf_weights` | `perf_weights`, `perf_limit_weights`, `perf_random_weights`, `perf_clusters` |
| Strategy selection checks | `perf_validation` | `perf_deflated_sharpe`, `perf_backtest_overfitting`, `perf_bootstrap` |
`perf_stats` is listed by default. `perf_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
Every tool except `perf_annualize`, `perf_limit_weights` and `perf_random_weights` reads price series, given either way, or both:
| Input | Shape | Example |
| - | - | - |
| `prices` | A table: one column per series (the column name is the series' name) and a date column (`date`, `datetime`, `time` or `timestamp`; ISO dates or times). Columns by name or row objects. | `{"date": ["2024-01-02", "2024-01-03"], "SPY": [472.6, 468.8], "TLT": [97.2, 96.1]}` |
| `series` | Named series, each its own table, joined on their dates. The value column defaults to `close`, `price`, `value` or `nav`; `column` picks another. | `[{"name": "AAPL", "data": {"$fincept": {...}}}]` |
| `columns` | Use only some of the series. | `["SPY", "TLT"]` |
| `data_kind` | Weights, clustering and the strategy checks also take periodic returns instead of prices: `"returns"`. | `"returns"` |
`series` is how an agent compares instruments it fetches itself: one [data reference](/guides/data-references) per instrument, `market_get_candles` data at path `candles` as is.
```json theme={"dark"}
{
"series": [
{"name": "AAPL", "data": {"$fincept": {"tool": "market_get_candles", "arguments": {"symbol": "AAPL", "interval": "1d", "limit": 1260}, "path": "candles"}}},
{"name": "SPY", "data": {"$fincept": {"tool": "market_get_candles", "arguments": {"symbol": "SPY", "interval": "1d", "limit": 1260}, "path": "candles"}}}
],
"rf": 0.04
}
```
* **Dates are required.** The statistics are calendar-based (month, year and lookback figures), so every table needs a date column. Each series is measured on its own dates.
* **Times with a UTC offset** (`2024-01-02T09:30:00-05:00`) are read at the exchange's own clock: bars at most one a day become that local date, so daylight-saving changes do not shift them; intraday bars become UTC times.
* **Prices must be above zero**; a zero or negative price is refused with the series named.
* **Periods per year.** Annualised figures use `periods_per_year` when given. Otherwise it is inferred from the dates: from their regular frequency when they have one, else from their median spacing (trading days give 252, weekly data 52, monthly 12). The answer says which was used.
## Outputs
Returns, drawdowns, volatility and rates are fractions (`0.12` is 12%); ratios are plain numbers. Dated results come back as rows with ISO dates and a line chart; reports come back as tables (statistics in rows, series in columns) with metrics for the headline figures.
| Tool | Returns |
| - | - |
| `perf_stats` | Every statistic of every series, lookback returns, and with several series their return correlations and growth rebased to 100. `rf` (an annual rate) or `rf_prices` (a risk-free index) sets the risk-free return; `start` and `end` narrow the report. |
| `perf_monthly_returns` | Each series' return by month and year with the year's return (months outside its span left empty), best and worst month, share of positive months, average up and down month. |
| `perf_drawdowns` | The drawdown at every date, the deepest episodes with start, end, length and depth, the maximum and average drawdown, the ulcer index, and the drawdown now with when it began. |
| `perf_metrics` | Total return, CAGR, maximum drawdown, Calmar, Sharpe and Sortino over `rf`, return/risk, ulcer index and ulcer performance index; with `benchmark` (one of the input series), the information ratio and probabilistic momentum. `annualize: false` gives per-period ratios. |
| `perf_transform` | `returns`, `log_returns`, `excess_returns` and `price_index` (both from returns), `rebase`, `drawdown`, `winsorize` and `rescale`, at every date. |
| `perf_resample` | Weekly, monthly, quarterly or yearly observations on their actual last dates (the 29th when the 29th was the month's last trading day). |
| `perf_annualize` | Returns earned over given days as annual rates, annual rates on a per-period basis, or the years between two dates. |
| `perf_frequency` | Each series' frequency, periods per year and span, and with `lookback` whether it has enough observations over that latest window. |
| `perf_rolling` | Total return, CAGR, maximum drawdown, Calmar, ulcer index, Sharpe, Sortino, volatility, mean return, skew or kurtosis over a moving window, with its last, highest and lowest values. |
| `perf_weights` | Inverse-volatility, mean-variance or equal-risk-contribution weights (with optional risk budgets), optionally capped at `limit`, and the resulting portfolio's annualised return and volatility. |
| `perf_limit_weights` | Weights capped at a maximum, the excess redistributed in proportion. |
| `perf_random_weights` | Random portfolios within per-asset bounds that sum to a total, reproducible with `seed`. |
| `perf_clusters` | Groups of assets by the correlation of their returns (k-means or fast threshold clustering), each with its average inner correlation, and the correlation matrix. |
| `perf_deflated_sharpe` | The deflated Sharpe ratio of a search's best strategy and the expected best Sharpe ratio of that many skill-less trials. Give every trial's prices (it picks the best), or the selected strategy with `trial_sharpe_ratios`. |
| `perf_backtest_overfitting` | The probability of backtest overfitting by combinatorially symmetric cross-validation over every trial's returns, the winner's mean out-of-sample rank and the distribution of rank logits. |
| `perf_bootstrap` | The bootstrap distribution of a statistic per series: the value on the actual returns, the mean, a confidence interval and the share of resamples above zero, with a histogram. |
## Limits
| Limit | Value |
| - | - |
| Series per call | 500 |
| Rows per table | 200,000 |
| `perf_rolling` window | 10,000 observations |
| `perf_bootstrap` | 10,000 resamples |
| `perf_backtest_overfitting` | An even number of blocks from 2 to 20 (16 gives 12,870 splits) |
| Time | 30 to 120 seconds; `perf_rolling` and `perf_bootstrap` 180 seconds, `perf_backtest_overfitting` 300 seconds |
Inputs the computation cannot use are refused with the reason: a missing date column, repeated dates or series names, a non-positive price, weight bounds or a cap that cannot sum to 1, a benchmark that is not one of the series.
## Example
```text Prompt theme={"dark"}
Using Fincept, compare AAPL, MSFT and SPY over the last five years: CAGR, max drawdown, Sharpe at a 4% risk-free rate and each one's worst month, then build equal-risk-contribution weights for the three.
```
The agent fetches each instrument with `market_get_candles`, passes them as `series` to `perf_stats` and `perf_monthly_returns`, then calls `perf_weights` with `method: "equal_risk_contribution"`.
More prompts:
| Prompt | Tools the agent uses |
| - | - |
| Show the five deepest drawdowns of the Nifty 50 since 2015 and how long each took to recover. | `market_get_candles`, `perf_drawdowns` |
| Plot NVDA's rolling one-year Sharpe ratio. | `market_get_candles`, `perf_rolling` |
| What is AAPL's information ratio and probability of outperforming SPY? | `market_get_candles`, `perf_metrics` |
| I tested 40 parameter sets; here are their returns. Is the best one real? | `perf_deflated_sharpe`, `perf_backtest_overfitting` |
| How confident can I be in this fund's Sharpe ratio? Bootstrap it. | `market_get_candles`, `perf_bootstrap` |
| Group these 30 stocks by how their returns move together. | `market_get_candles`, `perf_clusters` |
# Fincept Portfolio Lab
Source: https://docs.fincept.in/guides/fincept-portfolio-lab
Portfolio research as MCP tools: optimisation over 15 risk measures on any prior, walk-forward and combinatorial cross-validation, stress tests and cross-sectional factor models.
Fincept Portfolio Lab is the portfolio research engine behind every `pflab_*` tool: it builds portfolios as estimator pipelines and validates them out of sample. Mean-risk optimisation over 15 risk measures on any prior (sample or shrunk moments, Black-Litterman, entropy pooling, opinion pooling, factor models, vine-copula scenarios), efficient frontiers, risk budgeting, maximum diversification, distributionally robust CVaR, benchmark tracking, HRP, HERC, Schur and nested-cluster portfolios and stacking; walk-forward, combinatorial purged and online cross-validation with hyper-parameter search; 13 covariance estimators with forecast evaluation; return distributions, copulas and synthetic stress tests; analytics over 46 return, risk and ratio measures; and characteristics-based cross-sectional factor models with descriptors, alpha models and attribution. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Portfolio Lab tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `pflab_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Portfolio Lab reference](/reference/portfolio-lab/overview) lists every module and tool.
`pflab_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Returns or prices | `data`: one column per asset, one row per period, optionally a date column; returns by default, prices with `data_kind: "prices"` (simple returns, or log returns with `price_returns: "log"`) | `{"date": ["2024-01-02", "2024-01-03"], "AAPL": [0.012, -0.004], "MSFT": [0.008, 0.001]}` |
| Weights | Portfolio weights by asset; assets left out weigh 0 | `{"AAPL": 0.4, "MSFT": 0.6}` |
| Factors and benchmark | `factors`: factor returns, a column per factor; `benchmark`: benchmark returns in one column; both in the same layout and kind as `data` | `{"MKT": [0.004, -0.002], "SMB": [0.001, 0.003]}` |
| Strategy | `strategy`: a pipeline of pre-selection steps, an optimizer, its prior and constraints, for the validation tools | `{"optimizer": "mean_risk", "objective": "max_ratio", "risk_measure": "cvar", "constraints": {"max_weights": 0.25}}` |
| Characteristics panel | `panel`: a long table, one row per date and asset, with a date column, an asset column and one column per field (returns, market\_cap, fundamentals), for the factor-lab tools | `{"date": ["2024-01-02", "2024-01-02"], "asset": ["AAPL", "MSFT"], "returns": [0.012, 0.008], "market_cap": [2.9e12, 2.8e12]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Measures are annualised with `annualization_factor` periods per year: 252 (the default) for daily data.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `pflab_factor_attribution`, `pflab_cs_regression` and `pflab_clustering`; 180 seconds for `pflab_descriptors`, `pflab_factor_exposures`, `pflab_risk_budgeting`, `pflab_max_diversification`, `pflab_benchmark_tracker`, `pflab_hierarchical`, `pflab_covariance`, `pflab_prior`, `pflab_factor_model`, `pflab_uncertainty_set`, `pflab_entropy_pooling` and `pflab_opinion_pooling`; 300 seconds for `pflab_vine_copula`, `pflab_stress_test`, `pflab_alpha_model`, `pflab_characteristics_factor_model`, `pflab_mean_risk`, `pflab_efficient_frontier`, `pflab_stacking`, `pflab_robust_cvar`, `pflab_nested_clusters`, `pflab_covariance_forecast_evaluation`, `pflab_walk_forward`, `pflab_compare_strategies`, `pflab_combinatorial_cv`, `pflab_grid_search` and `pflab_online_backtest` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Optimisers return the weights as a table and bar chart with the solver's expected return and risk, every in-sample measure and the cumulative return and drawdown paths. Validation tools return the out-of-sample measures, paths and the weights at each rebalance; `pflab_combinatorial_cv` returns the distribution of each measure over many backtest paths and `pflab_grid_search` the score of every setting with the best pipeline's weights. Analytics tools return the 46 measures, risk contributions and rolling measures; moment, prior and factor tools return estimates with heatmaps; factor-lab tools return descriptors, exposures, factor returns, information coefficients and attribution.
## Example
```text Prompt theme={"dark"}
Using Fincept, walk-forward test a maximum return-to-CVaR portfolio of AAPL, MSFT, JPM, XOM, JNJ, KO and PG rebalanced monthly on four years of daily prices with at most 25% per stock, and compare it out of sample with HRP and equal weight.
```
The agent searches for `walk-forward portfolio backtest`, finds `pflab_walk_forward` and `pflab_compare_strategies`, and passes each stock's closes as a `$fincept` reference to `market_get_candles`, one `data` column per stock plus a `date` column from `candles.time`, with `data_kind: "prices"`.
# Fincept Portfolio Optimizer
Source: https://docs.fincept.in/guides/fincept-portfolio-optimizer
Portfolio construction as MCP tools: mean-variance, downside risk, critical line, hierarchical risk parity, Black-Litterman and share allocation.
Fincept Portfolio Optimizer is the portfolio construction engine behind every `pfopt_*` tool: expected return and covariance estimates (historical, EMA, CAPM; sample, semi, exponential, robust, Ledoit-Wolf and oracle shrinkage), mean-variance optimisation (max Sharpe, min volatility, target risk or return, quadratic utility) with bounds, shorting, market neutrality, sector and linear constraints and L2, transaction-cost and tracking-error terms, the efficient frontier, semivariance, CVaR and CDaR optimisation, the critical line algorithm, hierarchical risk parity, Black-Litterman with views and whole-share allocation. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Portfolio Optimizer tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `pfopt_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Portfolio Optimizer reference](/reference/portfolio-optimizer/overview) lists every module and tool.
`pfopt_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Price history | `prices`: one column per asset named by its ticker, rows in time order, optionally a date column; periodic returns with `returns_data: true` | `{"date": ["2024-01-02", "2024-01-03"], "AAPL": [185.6, 184.3], "MSFT": [370.9, 370.6]}` |
| Expected returns | `expected_returns`: annual expected return per asset, instead of an estimate | `{"AAPL": 0.12, "MSFT": 0.10}` |
| Covariance | `cov_matrix`: annual covariance, one column per asset and the rows in the same order | The matrix `pfopt_risk_model` returns |
| Weights | Target or current weights by asset | `{"AAPL": 0.6, "MSFT": 0.4}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Estimates are annualised with `frequency` periods per year: 252 (the default) for daily data, 52 weekly, 12 monthly.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `pfopt_mean_variance`, `pfopt_black_litterman`, `pfopt_cla`, `pfopt_semivariance` and `pfopt_cvar`; 150 seconds for `pfopt_cdar`; 180 seconds for `pfopt_nonconvex_objective` and `pfopt_efficient_frontier` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Optimisers return the weights as a table and bar chart with the expected annual return and the risk they optimise (volatility and Sharpe ratio, semideviation and Sortino ratio, CVaR or CDaR). `pfopt_efficient_frontier` and `pfopt_cla` return the frontier as a series with a line chart; `pfopt_hrp` adds the linkage, the dendrogram and the clustered correlation heatmap. `pfopt_expected_returns` and `pfopt_risk_model` return estimates you can pass straight back as `expected_returns` and `cov_matrix`. `pfopt_discrete_allocation` returns the shares per asset, the leftover cash and the error against the targets.
## Example
```text Prompt theme={"dark"}
Using Fincept, find the max-Sharpe portfolio of AAPL, MSFT, NVDA, JPM and XOM from three years of daily prices with Ledoit-Wolf shrinkage, at most 35% in any stock, and turn it into whole shares for $50,000.
```
The agent searches for `max Sharpe portfolio`, finds `pfopt_mean_variance` and `pfopt_discrete_allocation`, and passes each stock's closes as a `$fincept` reference to `market_get_candles`, one `prices` column per stock.
# Fincept Pricing
Source: https://docs.fincept.in/guides/fincept-pricing
Derivatives and fixed-income pricing as MCP tools: yield curves, bonds, swaps, credit, inflation, rate options, equity and FX options, volatility surfaces and calibration.
Fincept Pricing is the derivatives and fixed-income engine behind every `pricing_*` tool, pricing on the market quotes you pass in: business-day calendars, day counts, schedules and rate conventions; bootstrapped, interpolated, fitted (Nelson-Siegel, Svensson, splines) and spreaded yield curves; inflation and default-probability curves; bonds (fixed, floating, amortizing, callable, convertible, inflation-linked) with yield, duration, convexity and z-spread; swaps (vanilla, OIS, basis, cross-currency), FRAs, futures, caps, floors and swaptions; credit default swaps; vanilla and exotic options (barrier, Asian, lookback, basket, digital, compound, cliquet, quanto) under Black-Scholes, Heston, Bates, SABR and other models with Greeks and implied volatility; volatility surfaces, smiles and risk-neutral densities; Heston and short-rate calibration; and distributions, statistics, interpolation, integration, random sequences and Monte Carlo paths. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Pricing tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `pricing_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Pricing reference](/reference/pricing/overview) lists every module and tool.
`pricing_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Valuation date | `valuation_date`: the ISO date prices are computed at | `"2025-12-31"` |
| Market | `market`: one underlying's spot, a flat volatility or `vol_surface`, a rate or `rate_curve`, and a dividend yield or `dividend_curve` (for FX, the domestic and foreign rates) | `{"spot": 6845.5, "volatility": 0.1495, "rate": 0.043}` |
| Curve | A yield curve: flat, zero rates (or discount factors, forwards, par yields) by tenor or date, or the `data.curve` of a curve tool | `{"dates": ["1Y", "5Y", "10Y"], "values": [0.035, 0.037, 0.041]}` |
| Instruments | `instruments`: the market quotes `pricing_yield_curve` bootstraps from | `[{"type": "swap", "tenor": "5Y", "quote": 0.0373}]` |
| Price bars | `data`: prices by date with columns date, open, high, low and close, for `pricing_historical_vol` | `{"date": ["2024-01-02", "2024-01-03"], "open": [187.2, 184.2], "high": [188.4, 185.9], "low": [183.9, 183.4], "close": [185.6, 184.3]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Rates, spreads and volatilities are decimals (0.0425 = 4.25%), dates are ISO (YYYY-MM-DD) and tenors read like `3M` or `10Y`. Calendars, day counts, frequencies and other conventions have defaults on every tool (US Treasury conventions for bonds) and can be set for other markets.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 180 seconds for `pricing_callable_bond`, `pricing_convertible_bond`, `pricing_yield_curve`, `pricing_bond_curve_fit`, `pricing_least_squares_fit`, `pricing_process_paths`, `pricing_vanilla_option`, `pricing_barrier_option`, `pricing_double_barrier_option`, `pricing_compound_option`, `pricing_forward_start_option`, `pricing_implied_vol`, `pricing_option_models`, `pricing_asian_option`, `pricing_swing_option`, `pricing_capfloor`, `pricing_coupon_leg`, `pricing_optionlet_strip`, `pricing_smile` and `pricing_risk_neutral_density`; 240 seconds for `pricing_basket_option`, `pricing_swaption`, `pricing_swaption_vol` and `pricing_vol_surface`; 300 seconds for `pricing_heston_calibration` and `pricing_short_rate_calibration` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Option tools return the price, every Greek the engine provides and, from a market price, the implied volatility. Bond, swap and credit tools return prices, yields, spreads, durations, convexity, BPS or DV01, leg values and the cash-flow table. Curve tools return each instrument's repriced quote, zero, discount and forward rates on a grid as series with a chart, and `data.curve` to pass to any other pricing tool; volatility tools return surfaces and smiles as grid tables with smile and term-structure charts; calibration tools return the parameters and each quote's market and model values.
## Example
```text Prompt theme={"dark"}
Using Fincept, price a 3-month at-the-money call on SPY with a 4.3% rate, using its 21-day close-to-close volatility from daily candles, and give the Greeks.
```
The agent searches for `option price Greeks`, finds `pricing_historical_vol` and `pricing_vanilla_option`, and passes the dates and closes as `$fincept` references to `market_get_candles` (`candles.time` as the `date` column and `candles.close`).
# Fincept Quant
Source: https://docs.fincept.in/guides/fincept-quant
Time-series analytics as MCP tools: returns, volatility, rolling statistics, technical indicators, basket backtests, event studies and date tools.
Fincept Quant is the time-series analytics engine behind every `quant_*` tool: series transforms and algebra, calendar operations, rolling statistics and regression, returns, realized and exponentially weighted volatility, correlation and beta, drawdown, Sharpe ratio, technical indicators (moving averages, Bollinger bands, RSI, MACD, trend and seasonal adjustment), basket and rule backtests with rebalancing and costs, event studies, SIR/SEIR epidemic models and business-day calendars with your own holidays. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Quant tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `quant_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Quant reference](/reference/quant/overview) lists every module and tool.
`quant_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Dated series | Values with `dates`, ISO dates one per value | `[101.2, 102.8, 103.1]` with `["2024-01-02", "2024-01-03", "2024-01-04"]` |
| Table | Columns by name with one date column (`date_column`, default `date`) | `{"date": ["2024-01-02", "2024-01-03"], "SPY": [472.7, 468.8], "TLT": [97.4, 96.9]}` |
| Window | A number of observations, or a tenor: 1 to 9999 then `h`, `d`, `w`, `m` or `y` | `22`, `"1m"`, `"1y"` |
| Holidays | Optional ISO holiday dates, with a week mask of working weekdays | `["2024-12-25"]`, `"1111100"` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 180 seconds for `quant_basket_backtest`, `quant_basket_risk` and `quant_epidemic_fit`; 300 seconds for `quant_rule_backtest` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Series tools return the result as a dated `series` with a line chart (an area chart for drawdowns, a band chart for Bollinger bands). Backtests return the basket level or equity curve with total return, annualized volatility and maximum drawdown, and rule backtests add every order and the trade ledger. Date tools return one row per date as a table.
## Example
```text Prompt theme={"dark"}
Using Fincept, chart SPY's 1-month realized volatility and 1-year rolling Sharpe ratio over the last five years, and its 3-month rolling correlation with TLT.
```
The agent searches for `realized volatility`, finds `quant_volatility`, `quant_sharpe_ratio` and `quant_correlation`, and passes each series' closes and dates as `$fincept` references to `market_get_candles` (`candles.close` and `candles.time`).
# Fincept Regimes
Source: https://docs.fincept.in/guides/fincept-regimes
Hidden Markov regime models as MCP tools: calm and turbulent market regimes, transition probabilities, today's regime, scenarios and the number of regimes.
Fincept Regimes is the hidden Markov model engine behind every `regime_*` tool: Gaussian (diagonal, full, spherical or tied covariance), Gaussian-mixture and variational Gaussian models on a returns series or a feature table, one or several sequences, and categorical, Poisson and multinomial models on symbols and counts. Every fit labels its regimes by volatility or mean (calm/turbulent, bear/bull) and returns the transition matrix, per-regime statistics, expected durations, the state path with regime probabilities, information criteria, the current regime and its forecast, and the fitted model, which decodes new data and draws scenarios without refitting. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Regimes tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `regime_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Regimes reference](/reference/regimes/overview) lists every module and tool.
`regime_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Observations | `data`: one row per period, as columns by name, a list of row objects such as `market_get_candles` candles, or a plain list of numbers | `{"date": ["2024-01-02", "2024-01-03"], "SPY": [472.7, 468.8]}` |
| Features | `features`: the columns to model; default every numeric column except the date | `["close"]` |
| Transform | `transform`: `log_return` or `return` turn prices into returns first | `"log_return"` |
| Regimes | `n_states`: the number of regimes; `regime_select_states` chooses it | `3` |
| Fitted model | `model`: the `data.model` of a fit, for `regime_decode` and `regime_simulate` | The object a fit returns |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `regime_decode`; 180 seconds for `regime_categorical_hmm`, `regime_poisson_hmm`, `regime_multinomial_hmm`, `regime_gaussian_hmm` and `regime_simulate`; 240 seconds for `regime_gmm_hmm` and `regime_variational_gaussian_hmm`; 300 seconds for `regime_select_states` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Fit tools return the regimes ordered and labelled by the key feature's volatility or mean, each regime's means, volatilities and return statistics, the transition matrix, stationary distribution and expected durations, the Viterbi or posterior path with regime probabilities as series with charts, log-likelihood, AIC and BIC, the current regime, an h-step regime forecast and `data.model`. `regime_decode` returns the path and probabilities of new data under a fitted model; `regime_simulate` returns a fan chart of the cumulative key feature, regime occupancy over time and the terminal distribution. `regime_select_states` returns every fit with a chart of the criterion and the chosen model.
## Example
```text Prompt theme={"dark"}
Using Fincept, find three volatility regimes in ten years of Nifty 50 daily returns, show the transition matrix and expected durations, and tell me which regime we are in today.
```
The agent searches for `market regime`, finds `regime_gaussian_hmm`, and passes the candles as a `$fincept` reference to `market_get_candles` at path `candles`, with `features: ["close"]` and `transform: "log_return"`.
# Fincept Scanner
Source: https://docs.fincept.in/guides/fincept-scanner
Live market screens on about 4,000 fields across stocks in 68 countries, ETFs, crypto, forex, futures, bonds and more; custom formula screens over price history; bars and company fundamentals per symbol.
Fincept Scanner is the screening engine behind every `scan_*` tool. `scan_run` screens a whole market live on any of its fields: price and volume on 1-minute to monthly bars, performance, technical indicators and ratings, candlestick patterns, valuation, profitability, growth, balance sheet, cash flow, dividends, earnings and dividend dates and analyst targets. It covers stocks in 68 countries with their ETFs and funds, crypto pairs and coins, forex, futures, CFDs, bonds, options and economic series, and narrows to index universes such as the S\&P 500, Nasdaq 100, Nifty 50, FTSE 100 or Nikkei 225. `scan_history` screens instruments' price history with a formula of your own, for rules no field expresses. `scan_returns` gives many instruments' returns over any calendar month, quarter, year or date range. `scan_ohlcv` and the fundamentals tools return bars, statements, earnings, dividends and revenue segments per symbol. Every tool answers with a [result envelope](/guides/results) with tables and charts.
Fincept Scanner tools are free. They count toward the [rate limit](/guides/credits-and-limits) only. Requests to the market data source are also paced across the server: when that budget is in use the tool answers `busy` with `details.retry_after_s`, the number of seconds to wait.
## Modules
Tools are grouped in three modules. Each module is a toolset named `scan_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Scanner reference](/reference/scanner/overview) lists every tool.
| Module | Toolset | Tools |
| - | - | - |
| Market screener | `scan_screen` | `scan_run`, `scan_fields`, `scan_markets`, `scan_templates` |
| Price history | `scan_bars` | `scan_ohlcv`, `scan_history`, `scan_returns` |
| Company fundamentals | `scan_fundamentals` | `scan_financials`, `scan_earnings`, `scan_dividends`, `scan_segments` |
`scan_run` is listed by default. `scan_catalog` returns the live list of modules and tools from inside your agent.
## Build a screen
A screen is a market, conditions on its fields, and a sort:
```json theme={"dark"}
{
"market": "america",
"filters": [
{"field": "RSI", "op": "<", "value": 35},
{"field": "market_cap_basic", "op": ">", "value": 10000000000},
{"field": "close", "op": ">", "to_field": "SMA200"}
],
"columns": ["description", "close", "RSI", "SMA200", "market_cap_basic"],
"sort_by": "RSI",
"sort_order": "asc",
"limit": 10
}
```
### Where to screen
| Argument | What it does | Example |
| - | - | - |
| `market` | A country market (68, such as `america`, `india`, `uk`, `germany`, `japan`) or an asset class: `crypto` (pairs on every exchange), `coin` (crypto assets across exchanges), `forex`, `futures`, `cfd`, `bond`, `economics`, `options`. A list screens several at once. Default `america`. | `["america", "india"]` |
| `universe` | For country markets: `stocks` (primary listings of common stocks, the default), `etfs`, or `all` (every listed instrument: ETFs, funds, preferreds, depositary receipts, OTC). | `"etfs"` |
| `index` | Only an index's constituents: 73 indexes, including `sp500`, `nasdaq100`, `dow30`, `russell2000`, `nifty50`, `nifty500`, `nifty_bank`, `sensex`, `ftse100`, `dax40`, `cac40`, `euro_stoxx50`, `nikkei225`, `hang_seng`, `csi300`, `asx200`. | `"nifty50"` |
| `symbols` | Only these instruments, as `EXCHANGE:TICKER`, exactly as a screen answers them (a ticker can hold `&`, `-` or `.`). With no conditions it is a live snapshot of any fields for them. | `["NASDAQ:AAPL", "NSE:M&M", "BINANCE:BTCUSDT"]` |
`scan_markets` lists every market by region with its exchanges, every index, the timeframes and the operators.
### Fields
Field names are case-sensitive: `RSI`, `close`, `SMA50`, `market_cap_basic`, `price_earnings_ttm`, `sector`, `earnings_release_next_date`. `scan_fields` searches a market's fields by words (`"dividend yield"`, `"free cash flow"`, `"52 week"`), category or type, and with `include_values` lists the exact values a text field takes, such as every sector or industry.
* **Timeframes.** A bar field (price, volume or a technical) reads another timeframe with a suffix: `RSI|60` is RSI on 1-hour bars. Suffixes are `1`, `5`, `15`, `30`, `60`, `120`, `240` (minutes), `1W` and `1M`; daily is the field without a suffix. The `timeframe` argument applies one to every bar field that names none.
* **Previous bars.** `[1]` and `[2]` read a bar field one or two bars back: `close[1]`, `RSI[1]|60`. On another timeframe the source keeps less: `close[1]|1M` is last month's close, so `close|1M` against it is the month to date, but `change` has no earlier values on a timeframe and is refused. For any older month, quarter or year use [`scan_returns`](#returns-over-calendar-periods).
* **Units.** Percent fields are in percent (`5` is 5%). Date fields take ISO dates (`"2026-01-31"`) and come back as ISO dates.
* **Checked first.** A field the market does not have is refused before anything runs, with the nearest names in `details.did_you_mean`. A text value the field never takes (`"Technology"` for `sector`) adds a warning with the values it does take.
### Conditions
Each condition is `{"field", "op", "value"}`, or `{"field", "op", "to_field"}` to compare with another field. `filters` must all hold.
| Operator | Meaning | Example |
| - | - | - |
| `>` `>=` `<` `<=` `==` `!=` | Compare with a value or another field | `{"field": "close", "op": ">", "to_field": "SMA200"}` |
| `between`, `not_between` | Inside or outside `[low, high]`, inclusive | `{"field": "price_earnings_ttm", "op": "between", "value": [0, 15]}` |
| `in`, `not_in` | One of, or none of, a list | `{"field": "sector", "op": "in", "value": ["Finance", "Utilities"]}` |
| `crosses`, `crosses_above`, `crosses_below` | Crossed a field or value on the latest bar | `{"field": "SMA50", "op": "crosses_above", "to_field": "SMA200"}` |
| `above_pct`, `below_pct` | Above or below a multiple of another field | `{"field": "close", "op": "above_pct", "to_field": "price_52_week_high", "value": 0.95}` |
| `between_pct`, `not_between_pct` | Within or outside `[low, high]` multiples of another field | `{"field": "close", "op": "between_pct", "to_field": "SMA50", "value": [0.98, 1.02]}` |
| `has`, `has_none_of` | A list field holds any, or none, of the values | `{"field": "typespecs", "op": "has", "value": ["reit"]}` |
| `match`, `not_match` | Text contains, or does not contain, a value | `{"field": "description", "op": "match", "value": "bank"}` |
| `empty`, `not_empty` | Has no value, or has one | `{"field": "dividends_yield_current", "op": "not_empty"}` |
| `within_days`, `within_weeks`, `within_months` | A date falls `[from, to]` days, weeks or months from today (negative is past) | `{"field": "earnings_release_next_date", "op": "within_days", "value": [0, 7]}` |
### OR logic
`where` holds an and/or tree three levels deep, and is combined with `filters` by AND. Each level is `{"all": [...]}` or `{"any": [...]}`, whose items are conditions or groups:
```json theme={"dark"}
{
"where": {"any": [
{"field": "RSI", "op": "<", "value": 25},
{"all": [
{"field": "RSI", "op": ">", "value": 80},
{"field": "relative_volume_10d_calc", "op": ">", "value": 2}
]}
]}
}
```
### Sort, columns and pages
* `sort_by` and `sort_order` (`desc` or `asc`) pick the order; the default is market cap for stocks and coins, traded volume for crypto pairs, forex, futures and options, and name for the rest.
* `columns` picks the fields each row carries. Every field a condition or the sort reads is added, so a row shows why it matched.
* `limit` returns up to 1,000 rows (default 50). `offset` skips rows; `data.next_offset` is the offset of the next page, null on the last.
### Templates
`template` starts from a ready-made screen. Your `filters` are added to its conditions; your `sort_by` and `columns` replace its own. `scan_templates` lists all 44, each with its full arguments to copy and adapt.
| Kind | Templates |
| - | - |
| Price and volume | `top_gainers`, `top_losers`, `most_active`, `unusual_volume`, `gap_up`, `gap_down`, `new_52w_high`, `new_52w_low`, `near_all_time_high`, `momentum_leaders`, `high_volatility` |
| Technicals | `oversold_rsi`, `overbought_rsi`, `rsi_recovery`, `golden_cross`, `death_cross`, `uptrend`, `macd_bullish_cross`, `macd_bearish_cross`, `bollinger_breakout`, `bollinger_breakdown`, `strong_trend_adx`, `stochastic_oversold_cross`, `above_cloud`, `bullish_engulfing`, `hammer`, `technical_strong_buy` |
| Fundamentals | `value_low_pe`, `garp`, `high_growth`, `quality_compounders`, `piotroski_strong`, `net_cash`, `high_dividend`, `dividend_growers`, `analyst_upside`, `analyst_strong_buy` |
| Events | `earnings_this_week`, `ex_dividend_soon` |
| Crypto, forex, ETFs | `crypto_top_gainers`, `crypto_largest`, `crypto_oversold`, `forex_movers`, `etf_momentum` |
## Screen price history
`scan_history` evaluates a formula over each instrument's bars, for rules no field expresses: streaks, breakouts over any window, distances from highs, custom indicators and their crosses. It takes up to 500 symbols; narrow a market with `scan_run` first, as each call fetches about 25 new instruments (see [Big lists](#big-lists)). A [data reference](/guides/data-references) passes a screen's symbols in one call:
```json theme={"dark"}
{
"symbols": {"$fincept": {"tool": "scan_run", "arguments": {"index": "nasdaq100", "filters": [{"field": "RSI", "op": "<", "value": 40}], "limit": 40}, "path": "symbols"}},
"condition": "close > highest(high, 20)[1] and volume > 1.5 * sma(volume, 20)",
"values": {"rsi": "rsi(close)", "from_high_pct": "(close / highest(high, 252) - 1) * 100"},
"within": 3,
"sort_by": "rsi"
}
```
A formula is written like a Python expression over the series `open`, `high`, `low`, `close`, `volume`, `hl2`, `hlc3` and `ohlc4`:
* `x[n]` is `x` from `n` bars back; `+ - * / % **`, comparisons, and `and`, `or`, `not` work bar by bar.
* Window lengths and settings are numbers, such as `sma(close, 50)`.
* `condition` decides a match on the latest bar, or on any of the last `within` bars (the row says when it last held). `values` are named formulas reported at the latest bar, and `sort_by` can name one.
| Functions | |
| - | - |
| Averages | `sma`, `ema`, `wma`, `rma`, `hma` (series, window) |
| Ranges and changes | `highest`, `lowest`, `sum`, `stdev`, `zscore`, `percentrank`, `roc` (series, window); `change` (series, bars back, default 1) |
| Oscillators | `rsi` (series, window = 14), `macd`, `macd_signal`, `macd_hist` (series, 12, 26, 9), `stoch_k`, `stoch_d` (14, 3, 3), `cci` (20), `willr` (14), `mfi` (14), `adx`, `plus_di`, `minus_di` (14) |
| Bands and volatility | `bb_upper`, `bb_lower`, `bb_width` (series, 20, 2), `atr`, `natr` (14), `tr` |
| Volume | `obv`, `vwap` (window) |
| Conditions | `crossover`, `crossunder` (a, b); `rising`, `falling` (series, bars); `count` (condition, window); `barssince` (condition); `iff` (condition, a, b) |
| Maths | `abs`, `log`, `sqrt`, `max`, `min`, `nz` (series, value = 0) |
A formula is checked before anything is fetched: an unknown name, a missing window or anything that is not a formula is refused with the reason.
Examples:
| Rule | Formula |
| - | - |
| 20-bar breakout | `close > highest(high, 20)[1]` |
| Five green bars in a row | `count(close > open, 5) == 5` |
| Pullback in an uptrend | `close > sma(close, 200) and rsi(close, 3) < 20` |
| Bollinger squeeze | `bb_width(close, 20) < 5` |
| EMA crossover | `crossover(ema(close, 12), ema(close, 26))` |
| Within 3% of the 52-week high | `close >= 0.97 * highest(high, 252)` |
## Returns over calendar periods
`scan_returns` measures each instrument's return over up to 12 calendar periods at once: a month (`2026-06`), a quarter (`2026-Q2`), a year (`2025`) or a date range (`2026-01-15..2026-03-31`). A return is the last close inside the period over the last close before it began, in percent. Months are the exchange's own calendar months. A period that has not ended is measured to the latest bar, and the answer says so.
```json theme={"dark"}
{
"symbols": {"$fincept": {"tool": "scan_run", "arguments": {"index": "nifty50", "limit": 50}, "path": "symbols"}},
"periods": ["2026-06", "2026-Q2", "2025"],
"sort_by": "2026-06"
}
```
| Argument | What it does |
| - | - |
| `adjustment` | `splits` (default): price return, on split-adjusted closes. `dividends`: total return, with dividends in the closes. |
| `sort_by`, `sort_order` | Rank by one of the periods. |
| `include_closes` | Also give, per period, the close it is measured from and to, with their dates. |
Each row has the symbol and one value per period: `null`, with the reason in `notes`, when there is no close inside the period or none before it. A finished period's return is kept for a day, so asking again costs nothing.
For a whole market, [`market_get_returns`](/reference/toolsets/market) is faster: it measures up to 100 symbols a call by the same rule, with `basis` `price` or `total`, and takes symbols as `scan_run` answers them. A symbol it has no listing for is under `missing`; `scan_returns` covers it.
### Big lists
`scan_history` and `scan_returns` fetch each instrument's bars, two at a time, paced across the server: about 25 new instruments a call. A call answers within about 45 seconds, so a client's timeout never cuts it off. When it could not reach every instrument, it answers `partial` and lists the rest in `data.remaining`: call the tool again with `symbols` set to them to continue. Instruments already fetched are cached and cost nothing the next time. Instruments that could not be fetched are under `data.failed`, grouped by reason. When the server-wide pace pauses requests, the call stops early the same way, and its warning says how long to wait.
## Bars and fundamentals
| Tool | Returns |
| - | - |
| `scan_ohlcv` | One instrument's bars, oldest first, on any interval from 1 minute to monthly: the latest `bars` (up to 5,000) or a `start`/`end` range, split- or dividend-adjusted, each with its time at the exchange's UTC offset. Data at path `candles` feeds the [Fincept Technicals](/guides/fincept-technicals) tools as is. |
| `scan_financials` | Income statement, balance sheet, cash flow or statistics by fiscal year, half, quarter or TTM, every line the company reports; `statement: "all"` returns the four with earnings, dividends and segments. |
| `scan_earnings` | EPS and revenue against the estimate, with the surprise, by quarter or year. |
| `scan_dividends` | Dividend payments with ex, record and payment dates, the recent yield and the payout ratio. |
| `scan_segments` | Annual revenue by business line and by region. |
Amounts are in the reporting currency's own units, not thousands or millions. A date range that would need more than 5,000 bars is refused; ask for the latest bars by count or use a longer interval.
## Limits
| Limit | Value |
| - | - |
| Rows per screen | 1,000 per page |
| Columns per screen | 100 |
| Conditions | 50 in `filters`, plus the `where` tree |
| `scan_history` | 500 symbols, 5,000 bars each, 12 named values, 1,000 characters per formula |
| `scan_returns` | 500 symbols, 12 periods |
| Bars per `scan_ohlcv` call | 5,000 |
| Time | 75 seconds; `scan_history` and `scan_returns` answer within about 45 seconds |
The bar and fundamentals tools share two sessions with the source across the server; [Big lists](#big-lists) explains how the many-instrument tools continue. An identical screen within 30 seconds is answered from cache.
## Outputs
Every screen row carries the instrument's `symbol` as `EXCHANGE:TICKER` and one value per column. `data.symbols` lists the symbols in order, ready for `scan_history`, `scan_returns`, `scan_ohlcv`, the fundamentals tools or any market tool. `data.total_count` is the number of matches overall; `data.fields` gives each column's meaning and type; `data.conditions` restates the screen as it ran. The `results` table block shows the first 50 rows; `data.rows` has every row. Values are as the market data source publishes them: real time for some venues, delayed by the exchange's public delay (up to 15 minutes) for others.
## Example
```text Prompt theme={"dark"}
Using Fincept, find Nasdaq 100 stocks below RSI 40 that just broke out of their 20-day range on above-average volume, and give me each one's last four quarters of revenue.
```
The agent calls `scan_run` with `index: "nasdaq100"` and an RSI filter, passes its symbols to `scan_history` with a breakout formula, then calls `scan_financials` with `period: "FQ"` for each match.
More prompts:
| Prompt | Tools the agent uses |
| - | - |
| Indian stocks trading at 3x their usual volume today, biggest first. | `scan_run` (`template: "unusual_volume"`, `market: "india"`) |
| S\&P 500 stocks within 2% of their 50-day average, RSI under 40 on the 4-hour chart. | `scan_run` (`index`, `between_pct`, `RSI\|240`) |
| Coins over \$1 billion market cap up more than 10% this week. | `scan_run` (`market: "coin"`, `Perf.W`) |
| Dividend growers yielding over 3% with payout under 60%, sorted by yield. | `scan_run` (`template: "dividend_growers"`) |
| Which of these 30 stocks closed green five days in a row? | `scan_history` |
| What did each Nifty 50 stock return in June 2026, best first? | `scan_run` (`index: "nifty50"`), `market_get_returns` or `scan_returns` |
| Who reports earnings this week among large caps in Germany? | `scan_run` (`template: "earnings_this_week"`, `market: "germany"`) |
# Fincept Stats
Source: https://docs.fincept.in/guides/fincept-stats
Statistical and econometric models as MCP tools: regression, time series, tests, forecasting and more.
Fincept Stats is the statistics engine behind every `stats_*` tool: regression and GLMs, discrete choice, ARIMA and state-space forecasting, VAR and cointegration, unit-root and hypothesis tests, model diagnostics, power analysis, multivariate and nonparametric methods, survival analysis and imputation. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Stats tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `stats_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Stats reference](/reference/stats/overview) lists every module and tool.
`stats_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Series | A list of numbers, `null` for a missing value | `[101.2, 102.8, null, 103.1]` |
| Table | Columns by name, or a list of row objects | `{"y": [1, 2, 3], "x": [4, 5, 7]}` |
| Dates | Optional ISO dates, one per observation | `["2024-01-31", "2024-02-29"]` |
| Formula | Model formula over table columns | `"y ~ x1 + np.log(x2) + C(sector)"` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Formulas use the `y ~ a + b` syntax with interactions (`a:b`, `a*b`), `I(...)` for arithmetic, `C(...)` with `Treatment`, `Sum`, `Diff`, `Poly` or `Helmert` contrasts, `center`, `standardize`, `scale`, spline bases (`bs`, `cr`, `cc`, `te`) and `log`, `log1p`, `exp`, `sqrt`, `abs` (also as `np.log`, `np.log10`, `np.square` and similar). Anything else in a formula is refused, and a formula is limited to 600 characters.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 200 |
| Compute time | 90 seconds by default; up to 300 seconds for heavy models (state-space, Markov switching, dynamic factors, MICE) |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Model tools return a coefficient table, fit statistics (AIC, BIC, log-likelihood and model-specific measures) and diagnostics. Forecasting tools add a `series` block with the forecast and its interval, and a line `chart` with a band. Test tools return the statistic, p-value, critical values where they exist, and a one-sentence verdict.
## Example
```text Prompt theme={"dark"}
Using Fincept, test whether the 10-year and 2-year US Treasury yields are cointegrated since 2010, then fit a VECM and forecast 12 months.
```
The agent searches for `cointegration`, finds `stats_johansen_test` and `stats_vecm`, and passes both yields as `$fincept` references to `data_get_observations`.
# Fincept Technicals
Source: https://docs.fincept.in/guides/fincept-technicals
Technical indicators as MCP tools: 201 indicators from moving averages and bands to momentum, volume, volatility and cycle, and all 61 candlestick patterns, on OHLCV bars.
Fincept Technicals is the technical-analysis engine behind every `ta_*` tool: moving averages (SMA, EMA, WMA, DEMA, TEMA, KAMA, MAMA, T3, HMA, ZLEMA, VWMA, variable-period), Bollinger, Keltner, Donchian and acceleration bands, parabolic SAR and SuperTrend, momentum (RSI, MACD, stochastics, KDJ, ADX/DI/DM, Aroon, CCI, MFI, ROC, TRIX, Williams %R, ultimate oscillator and more), volume (OBV, A/D, Chaikin, VWAP and more), volatility (ATR, NATR, true range and more), price transforms and Heikin-Ashi, Hilbert-transform cycle indicators, rolling statistics (beta, correlation, linear regression, percentiles), math transforms and operators, and all 61 candlestick patterns. Every parameter is settable, and results are series aligned to the dates with the warm-up bars reported. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Technicals tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `ta_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Technicals reference](/reference/technicals/overview) lists every module and tool.
`ta_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Bars | `data`: OHLCV bars, oldest first, with columns open, high, low, close and volume (only those the indicator reads) and an optional date column; `market_get_candles` data at path `candles` fits as is | `{"date": ["2024-01-02", "2024-01-03"], "open": [187.2, 184.2], "high": [188.4, 185.9], "low": [183.9, 183.4], "close": [185.6, 184.3], "volume": [82488700, 58414500]}` |
| Series | `values`: one series instead of `data` (closes, a spread, a ratio) for indicators that read one input | `[185.6, 184.3, 181.9, 181.2]` |
| Dates | `dates`: ISO dates, one per bar, when `data` has no date column or `values` is given | `["2024-01-02", "2024-01-03"]` |
| Indicator | `indicator`: the indicator's name, with its parameters as arguments; `ta_indicators` takes a list of `{indicator, params}` | `"RSI"`, `[{"indicator": "SMA", "params": {"timeperiod": 50}}, {"indicator": "MACD"}]` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
`ta_describe` lists every indicator's inputs, parameters with their defaults, outputs and warm-up.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Every indicator tool returns its outputs as series aligned to the dates (null over the warm-up, reported per output), the last values and a line chart, drawn over the price for averages, bands and stops. `ta_oscillator` adds a bar chart of the histogram, and `ta_candlestick` and `ta_candlestick_scan` a candlestick chart with the signals; the scan lists which patterns fired on which dates, newest first. `ta_indicators` returns one aligned table of every output with each indicator's parameters, warm-up and last values.
## Example
```text Prompt theme={"dark"}
Using Fincept, compute the 50- and 200-day SMAs, RSI(14), MACD and 20-day Bollinger bands on a year of RELIANCE.NS daily candles, and list the candlestick patterns that fired in the last month.
```
The agent searches for `technical indicators`, finds `ta_indicators` and `ta_candlestick_scan`, and passes the bars as a `$fincept` reference to `market_get_candles` at path `candles`.
# Fincept TS Forecast
Source: https://docs.fincept.in/guides/fincept-ts-forecast
Statistical time-series forecasting as MCP tools: automatic ARIMA, ETS, Theta, TBATS and MSTL on one series or a panel, with intervals, backtests and simulated paths.
Fincept TS Forecast is the statistical forecasting engine behind every `tsforecast_*` tool: automatic and fixed-order ARIMA, ETS, complex exponential smoothing and Theta; Holt and Holt-Winters; TBATS, MSTL and boosted decomposition for multiple seasonality; unobserved components; Croston, ADIDA, IMAPA and TSB for intermittent demand; GARCH and ARCH volatility; naive, seasonal naive, drift and window-average benchmarks; and regression on exogenous columns, fitted one model per series on one series or a whole panel. Native or conformal prediction intervals, rolling-origin backtests with accuracy metrics, sample-path simulation, fitted-model summaries and transfer of fitted models to new data complete it. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept TS Forecast tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `tsforecast_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept TS Forecast reference](/reference/ts-forecast/overview) lists every module and tool.
`tsforecast_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Series | `y`: one series of numbers, oldest first | `[101.2, 102.8, 101.9, 103.1]` |
| Dates | Optional ISO dates for `y`, one per observation | `["2024-01-31", "2024-02-29"]` |
| Panel | `data`: a long table, one row per series and period, with id, time and target columns plus any numeric exogenous columns | `{"unique_id": ["AAPL", "MSFT"], "ds": ["2024-01-02", "2024-01-02"], "y": [185.6, 370.9]}` |
| Models | `models`: the models to fit, each a model key with optional `params`; `tsforecast_models` lists every key and parameter | `[{"model": "auto_arima"}, {"model": "mstl", "params": {"season_length": [12]}}]` |
| Future exogenous | `future_exog`: the exogenous values over the horizon, `h` rows per series | `{"unique_id": ["AAPL"], "ds": ["2024-01-03"], "rate": [5.33]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
The id, time and target columns are `unique_id`, `ds` and `y` unless `id_col`, `time_col` and `target_col` name others. `h` sets the horizon and `levels` the interval levels in percent (`[80, 95]` by default; `[]` for point forecasts). `tsforecast_garch` takes returns, not prices.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 30 seconds for `tsforecast_models` and `tsforecast_sample_data`; 120 seconds for `tsforecast_evaluate`, `tsforecast_baselines`, `tsforecast_intermittent` and `tsforecast_garch`; 180 seconds for `tsforecast_regression` and `tsforecast_theta`; 300 seconds for `tsforecast_arima`, `tsforecast_forecast`, `tsforecast_forward`, `tsforecast_cross_validation`, `tsforecast_simulate`, `tsforecast_tbats`, `tsforecast_mfles`, `tsforecast_mstl`, `tsforecast_ets` and `tsforecast_ucm` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
Forecasting tools return the forecast of every series and model with `-lo-` and `-hi-` interval bands and charts; the family tools add each fitted model's specification, coefficients and information criteria, and the decomposition tools their trend, seasonal and remainder components. `tsforecast_cross_validation` returns every window's forecasts, the chosen metrics per model, window and series and the best model; `tsforecast_evaluate` scores any forecasts against actuals. `tsforecast_simulate` returns the mean, standard deviation and quantiles of the simulated paths as a fan chart, with a few raw paths.
## Example
```text Prompt theme={"dark"}
Using Fincept, backtest automatic ARIMA, ETS and Theta on two years of Nifty 50 daily closes over 4 windows of 10 days, then forecast the next 10 sessions with the best model and 80% and 95% intervals.
```
The agent searches for `statistical forecast`, finds `tsforecast_cross_validation` and `tsforecast_forecast`, and passes the closes as `y` and their dates as `dates`, both `$fincept` references to `market_get_candles` (`candles.close` and `candles.time`).
# Fincept Volatility
Source: https://docs.fincept.in/guides/fincept-volatility
Volatility modelling as MCP tools: GARCH-family models, VaR and expected-shortfall forecasts and backtests, unit roots, cointegration and bootstrap inference.
Fincept Volatility is the volatility and financial econometrics engine behind every `vol_*` tool: GARCH, GJR, TARCH, EGARCH, APARCH, FIGARCH, HARCH, MIDAS hyperbolic, EWMA and RiskMetrics 2006 variance with constant, zero, AR, HAR, regression and volatility-in-mean mean equations and normal, Student t, skewed t or GED errors; analytic, simulated and bootstrap forecasts with Value-at-Risk and expected shortfall; rolling and expanding re-estimation backtests and scenario forecasts; unit-root, variance-ratio and cointegration tests with cointegrating vectors (DOLS, FMOLS, CCR); bootstrap confidence intervals; forecast comparison (SPA, StepM, model confidence set) and kernel long-run covariances. It runs on Fincept's servers; your agent sends numbers or [data references](/guides/data-references) and gets back a [result envelope](/guides/results) with tables and charts.
Fincept Volatility tools are free. They count toward the [rate limit](/guides/credits-and-limits) only; a `$fincept` reference inside a call is charged like a direct call to that tool.
## Modules
Tools are grouped in modules. Each module is a toolset named `vol_`, so you can [list it](/guides/finding-tools#list-whole-toolsets) or search within it. The [Fincept Volatility reference](/reference/volatility/overview) lists every module and tool.
`vol_catalog` returns the live list of modules and tools from inside your agent.
## Inputs
| Input | Shape | Example |
| - | - | - |
| Returns | `returns`: one series in time order; percent returns by default (1.2 = 1.2%), decimal returns with `units: "fraction"`, prices with `units: "prices_log"` or `"prices_simple"` (turned into log or simple returns) | `[0.42, -1.10, 0.35, 0.87]` |
| Dates | Optional ISO dates for `returns`, one per observation | `["2024-01-02", "2024-01-03"]` |
| Model | `model`: mean equation, volatility process and error distribution; default constant mean, GARCH(1,1), normal errors | `{"volatility": "garch", "p": 1, "o": 1, "q": 1, "distribution": "skewt"}` |
| Return table | `data`: one column per series, for the bootstrap tools and the long-run covariance | `{"SPY": [0.42, -1.10], "TLT": [-0.21, 0.63]}` |
| Losses | `losses`: one column per model and one row per period, for `vol_spa` and `vol_mcs` | `{"garch": [1.21, 0.84], "ewma": [1.37, 0.92]}` |
| Reference | Any of the above fetched from a Fincept tool | `{"$fincept": {...}}` |
Unit-root and cointegration tools take levels in `values` or `data`; `transform: "log"` turns prices into log prices and `"log_diff"` into log returns. Models are fitted on percent returns, and volatility, VaR and expected shortfall come back in percent.
## Limits
| Limit | Value |
| - | - |
| Rows per table or series | 200,000 |
| Columns per table | 500 |
| Compute time | 90 seconds by default; 120 seconds for `vol_simulate` and `vol_unit_root`; 180 seconds for `vol_bootstrap_ci`, `vol_bootstrap_replicates`, `vol_bootstrap_paths`, `vol_spa`, `vol_mcs`, `vol_garch`, `vol_forecast_origins` and `vol_scenario_forecast`; 300 seconds for `vol_rolling_forecast` |
A computation that runs past its time limit answers `timeout`; a busy engine answers `busy` and the call can be retried a few seconds later.
## Outputs
`vol_garch` returns the parameters with robust standard errors, persistence, half-life and unconditional volatility, ARCH-LM, Ljung-Box and Jarque-Bera diagnostics, the conditional volatility and standardized residuals as series with charts, and the forecast of mean and volatility with a fan chart and per-step VaR and expected shortfall. `vol_rolling_forecast` returns every out-of-sample forecast with its VaR hits, the hit rates and squared-error and QLIKE losses that `vol_spa` and `vol_mcs` take as `losses`. Tests return statistics, p-values, critical values and a verdict; bootstrap tools return estimates with their bounds, replicate distributions and fans of cumulative return.
## Example
```text Prompt theme={"dark"}
Using Fincept, fit a GJR-GARCH(1,1) with skewed t errors to five years of SPY daily closes, forecast volatility 10 days ahead with 1% and 5% VaR, and backtest the 1-day VaR over the last 250 days.
```
The agent searches for `GARCH volatility`, finds `vol_garch` and `vol_rolling_forecast`, and passes the closes as a `$fincept` reference to `market_get_candles` (`candles.close`) with `units: "prices_log"`.
# Finding tools
Source: https://docs.fincept.in/guides/finding-tools
How your agent discovers and calls every Fincept tool without loading the whole catalog.
Fincept MCP has hundreds of tools. Listing all of them would fill your agent's context before it starts, so the server lists a **core set** and three discovery tools. Every other tool stays callable by name.
## What is listed by default
* **Core tools**: the most used tool of each area, for example `market_get_quote`, `market_get_candles`, `data_search_series`, `stats_ols`, `stats_arima`.
* **Discovery tools**: `fincept_search_tools`, `fincept_describe_tool`, `fincept_call_tool`.
* **Engine catalogs**: `stats_catalog`, `forecast_catalog`, `alloc_catalog`, `pfopt_catalog`, `quant_catalog`, `vol_catalog`, `panel_catalog`, `tsforecast_catalog`, `ta_catalog`, `changepoint_catalog`, `regime_catalog`, `copula_catalog`, `mpo_catalog`, `pflab_catalog`, `pricing_catalog`, `scan_catalog` and `perf_catalog` list each engine's modules and tools.
* **`fincept_read_result`**: pages through large results. See [results](/guides/results).
## How the agent finds the rest
`fincept_search_tools` takes plain words and returns matching tools with their signature and what they do.
```json theme={"dark"}
{ "query": "option chain greeks", "limit": 5 }
```
`fincept_describe_tool` returns one tool's full description and JSON input schema.
```json theme={"dark"}
{ "name": "market_get_options_chain" }
```
The agent calls the tool by name, exactly like a listed tool. Clients that only call listed tools can use `fincept_call_tool`:
```json theme={"dark"}
{ "name": "market_get_options_chain", "arguments": { "symbol": "AAPL" } }
```
Agents follow this pattern on their own; the server's instructions tell them to. Naming the area in your prompt ("using Fincept's filings tools...") speeds it up.
## List whole toolsets
Add `toolsets` to the endpoint URL to list more tools up front. Use `all` for everything, or a comma-separated list:
```text theme={"dark"}
https://enterprise.fincept.in/mcp?toolsets=market,data,stats_tsa_models
```
| Value | Listed |
| - | - |
| *(none)* | Core tools and discovery tools |
| `market,data` | Core tools plus every tool in `market` and `data` |
| `all` | Every tool |
Unknown names are ignored. Platform toolset names are in the [toolsets reference](/reference/toolsets/overview). Engine toolsets are named `_`, such as `stats_tsa_models`, `forecast_backtest` or `alloc_parity`, and listed in each engine's reference: [Fincept Stats](/reference/stats/overview), [Fincept Forecast](/reference/forecast/overview), [Fincept Allocation](/reference/allocation/overview), [Fincept Portfolio Optimizer](/reference/portfolio-optimizer/overview), [Fincept Quant](/reference/quant/overview), [Fincept Volatility](/reference/volatility/overview), [Fincept Panel](/reference/panel/overview), [Fincept TS Forecast](/reference/ts-forecast/overview), [Fincept Technicals](/reference/technicals/overview), [Fincept Change Points](/reference/change-points/overview), [Fincept Regimes](/reference/regimes/overview), [Fincept Copula](/reference/copula/overview), [Fincept Multi-Period](/reference/multi-period/overview), [Fincept Portfolio Lab](/reference/portfolio-lab/overview) and [Fincept Pricing](/reference/pricing/overview).
`all` lists several hundred tools. Many clients cap or slow down with that many; prefer a short list of the toolsets you use.
## Tool annotations
Each tool declares MCP annotations your client can use for approvals:
| Annotation | Meaning |
| - | - |
| `readOnlyHint: true` | Reads data only. Most tools. |
| `destructiveHint: true` | Deletes or overwrites something in your account. |
| `idempotentHint` | Repeating the call with the same arguments has no further effect. |
Tools that write to your account (saving a watchlist item, placing a paper order) say so in their description and annotations.
# Example prompts
Source: https://docs.fincept.in/guides/prompts
Workflows that combine Fincept data, analytics and statistics.
Start prompts with "Using Fincept" so the agent reaches for these tools instead of the web.
| Prompt | Tools the agent uses |
| - | - |
| Get the quote, 52-week range and key ratios for MSFT. | `market_get_quote`, `market_get_fundamentals` |
| Plot India's CPI inflation since 2015 against the RBI repo rate. | `data_search_series`, `data_get_observations` |
| Fit an ARIMA to Nifty 50 daily closes and forecast 20 days with intervals. | `market_get_candles`, `stats_arima` |
| Is the spread between KO and PEP mean-reverting? Test cointegration and give the hedge ratio. | `market_get_candles`, `stats_engle_granger`, `stats_ols` |
| Regress my portfolio's daily returns on SPY and report beta with HAC errors. | `portfolio_get_performance`, `stats_ols` |
| Backtest a 50/200-day moving-average crossover on AAPL since 2015 and summarise drawdowns. | `backtest_validate_spec`, `backtest_run` |
| Summarise this week's news on semiconductors and its sentiment. | `news_search_articles`, `news_get_sentiment_aggregate` |
| Which institutions hold NVDA, largest first? Where have insiders been buying in clusters? | `filings_get_security_holders`, `filings_find_insider_clusters` |
| Is the US unemployment rate stationary? Run ADF and KPSS. | `data_get_observations`, `stats_stationarity_test` |
| How many observations per group do I need to detect a 0.3 effect size at 80% power? | `stats_power_solve` |
| Backtest LightGBM and ridge forecasts of Nifty 50 daily closes over 5 windows, then forecast 20 sessions with 80% and 95% intervals. | `market_get_candles`, `forecast_cross_validation`, `forecast_ml_forecast` |
| Search models and features automatically for a 12-month forecast of US industrial production. | `data_get_observations`, `forecast_auto_ml` |
| Build a CVaR risk parity portfolio of SPY, TLT, GLD and DBC from three years of daily prices. | `market_get_candles`, `alloc_risk_parity` |
| Give me the full risk report of a 60/40 SPY/AGG portfolio: CVaR, drawdowns and ulcer index. | `market_get_candles`, `alloc_risk_table` |
| Plot the efficient frontier of SPY, EFA, EEM, TLT and GLD with the max-Sharpe and minimum-volatility portfolios. | `market_get_candles`, `pfopt_efficient_frontier` |
| Find the minimum-CVaR portfolio at 95% of SPY, QQQ, TLT and GLD from five years of daily prices. | `market_get_candles`, `pfopt_cvar` |
| Chart SPY's 1-month realized volatility and its 1-year rolling Sharpe ratio since 2020. | `market_get_candles`, `quant_volatility`, `quant_sharpe_ratio` |
| Backtest a 60/40 SPY/TLT basket rebalanced monthly with 5 bp costs since 2015. | `market_get_candles`, `quant_basket_backtest` |
| Fit a GJR-GARCH with skewed t errors to SPY daily returns and forecast 10-day volatility with 1% VaR. | `market_get_candles`, `vol_garch` |
| Backtest a GARCH(1,1) 1-day 99% VaR on Nifty 50 over the last 250 days and report the hit rate. | `market_get_candles`, `vol_rolling_forecast` |
| Estimate JPM, BAC and WFC hedge ratios on SPY jointly by SUR and test for a diagonal residual covariance. | `market_get_candles`, `panel_system_regression` |
| Compare fixed and random effects on the wage panel dataset with a Hausman test. | `panel_dataset`, `panel_compare` |
| Backtest automatic ARIMA, ETS and Theta on US CPI and forecast 12 months with the best model. | `data_get_observations`, `tsforecast_cross_validation`, `tsforecast_forecast` |
| Simulate 500 paths of Nifty 50 closes 20 sessions ahead and give the 5% and 95% quantiles. | `market_get_candles`, `tsforecast_simulate` |
| Compute RSI(14), MACD and 20-day Bollinger bands on a year of RELIANCE.NS daily candles. | `market_get_candles`, `ta_indicators` |
| Which candlestick patterns fired on AAPL in the last month? | `market_get_candles`, `ta_candlestick_scan` |
| When did SPY's volatility regime change over the last ten years? Give each regime's volatility and drawdown. | `market_get_candles`, `changepoint_return_regimes` |
| Has AAPL's beta to QQQ shifted since 2018? Find the breaks. | `market_get_candles`, `changepoint_regression_breaks` |
| Find three volatility regimes in Nifty 50 daily returns and tell me today's regime and its expected duration. | `market_get_candles`, `regime_gaussian_hmm` |
| How many regimes do SPY daily returns support? Choose by BIC. | `market_get_candles`, `regime_select_states` |
| Find S\&P 500 stocks with RSI under 30 that are still above their 200-day average. | `scan_run` |
| Which Nifty 50 stocks had a golden cross today? | `scan_run` (`template: "golden_cross"`) |
| List coins above \$1 billion market cap up more than 10% this week. | `scan_run` |
| Of the Nasdaq 100 names below RSI 40, which broke out of their 20-day range on rising volume? | `scan_run`, `scan_history` |
| What did each Nifty 50 stock return in June 2026, best first? | `scan_run`, `market_get_returns` |
| Show Microsoft's last eight quarters of revenue and EPS against estimates. | `scan_financials`, `scan_earnings` |
| Compare AAPL, MSFT and SPY over five years: CAGR, max drawdown, Sharpe at 4% and worst month. | `market_get_candles`, `perf_stats` |
| Show the five deepest drawdowns of the Nifty 50 since 2015 and how long each lasted. | `market_get_candles`, `perf_drawdowns` |
| Build equal-risk-contribution weights for SPY, TLT, GLD and DBC. | `market_get_candles`, `perf_weights` |
| I tested 40 parameter sets; is the best one real or overfitted? | `perf_deflated_sharpe`, `perf_backtest_overfitting` |
| How strongly do JPM, BAC, C and WFC crash together? Show the lower tail dependence. | `market_get_candles`, `copula_tail_dependence` |
| Copula 99% VaR and expected shortfall of 40% JPM, 30% BAC and 30% XOM, and how BAC and XOM move if JPM falls 8%. | `market_get_candles`, `copula_portfolio_var`, `copula_stress_scenarios` |
| Back-test a long-only multi-period policy on AAPL, MSFT, JPM, XOM and PFE with 5 bp spreads since 2020 beside equal weight. | `market_get_candles`, `mpo_backtest` |
| Give me today's optimal trades for a \$1M portfolio of AAPL, MSFT, JPM, XOM and PFE from my current holdings. | `market_get_candles`, `mpo_optimize` |
| Walk-forward test a minimum-CVaR portfolio of seven US large caps rebalanced monthly against HRP and equal weight. | `market_get_candles`, `pflab_compare_strategies` |
| Stress test a 60/40 SPY/TLT portfolio for a 10% SPY drop with a vine copula. | `market_get_candles`, `pflab_stress_test` |
| Price a 3-month at-the-money SPY call with its 21-day historical volatility and give the Greeks. | `market_get_candles`, `pricing_historical_vol`, `pricing_vanilla_option` |
| Bootstrap a SOFR curve from these swap quotes and price a 5-year payer swap at 3.9%. | `pricing_yield_curve`, `pricing_swap` |
Ask for a chart and the agent gets one: forecasting and analysis tools return `series` and `chart` blocks. Large results include a viewer link at fincept.in with interactive tables and CSV download.
## Writing to your account
Some tools change your account: saving watchlist items and notes, creating alerts and news monitors, placing paper orders, starting backtests. Your client asks before running them if you have approvals enabled. Monitors and alerts carry a daily credit cost while active; the tool description states it.
# Results
Source: https://docs.fincept.in/guides/results
The one result format every Fincept tool returns, and how large results are delivered.
Every Fincept tool answers with the same envelope, the Fincept Result Protocol (`result/v1`). Your agent parses one format whatever the tool, and charts and tables come as data, never as pixels.
```json Example result theme={"dark"}
{
"fincept": "result/v1",
"tool": "stats_arima",
"status": "ok",
"summary": "ARIMA(1,1,1) on 499 obs; AIC 5123.4; 10-step forecast",
"data": { "params": [ ... ], "forecast": [ ... ] },
"blocks": [
{ "type": "metrics", "items": [ { "label": "AIC", "value": 5123.4 } ] },
{ "type": "series", "id": "forecast", "x": { "name": "date", "type": "date" }, "y": [ ... ], "rows": [ ... ] },
{ "type": "chart", "id": "forecast_chart", "kind": "line", "series_ref": "forecast", "x": "date", "y": ["mean"], "band": { "lower": "lower", "upper": "upper" } }
],
"warnings": []
}
```
The envelope arrives as the MCP `structuredContent` of the tool result (tools declare it as their `outputSchema`) and as the same JSON in the text content, for clients that read only text.
## Reading a result
| Field | Use it for |
| - | - |
| `summary` | One sentence the agent can quote. |
| `data` | The machine payload: numbers stay numbers, dates are ISO-8601, missing values are `null`. |
| `blocks` | Presentation, in order: metrics, tables, series, charts, text. |
| `status` | `ok`, `partial` (a preview of a larger stored result) or `error`. |
| `error` | `code`, `message` and `hint` when `status` is `error`. |
| `warnings` | Notes worth passing on, such as a model that did not fully converge. |
Every field is described in the [result envelope reference](/reference/result-envelope).
## Large results
A result larger than about 40 KB is not sent whole. Instead:
It is kept for 24 hours, up to 25 MB, and only your account can read it.
`status` is `partial`. The largest lists are cut to fit, and `truncated.lists` names each cut list with how many items are shown and how many exist.
```json theme={"dark"}
"truncated": {
"reason": "size",
"read_with": "fincept_read_result",
"lists": [ { "path": "data.candles", "shown": 200, "total": 5000 } ]
}
```
`artifacts[0].id` identifies the stored result. Three ways to read it:
* **`fincept_read_result`** pages any list by path: `{ "id": "r_...", "path": "data.candles", "offset": 200, "limit": 500 }`. Free.
* **MCP resource** `fincept://results/{id}` returns the whole envelope, for clients that read resources.
* **Viewer** at `artifacts[0].view_url` (`https://fincept.in/enterprise/results/{id}`): tables, charts and CSV or JSON download in your browser, signed in to the same account.
Ask for exactly what you need. `market_get_candles` with `limit: 250` returns inline; `limit: 5000` goes through a stored result.
## Errors are results too
A refusal or failure is an envelope with `status: "error"` and the MCP `isError` flag, never a protocol error. The agent can read `error.hint`, fix its arguments and retry, or tell you what blocked it. Codes are listed in the [errors reference](/reference/errors).
# Security
Source: https://docs.fincept.in/guides/security
What an agent connected to Fincept MCP can and cannot do with your account.
An agent connected to Fincept MCP acts as you, with your plan, quotas and credits. These rules bound what it can do.
## No real money
* No tool places a live broker order, a live crypto order or a withdrawal.
* Trading tools reach only the **Fincept Paper** account. Strategy deployments are paper deployments.
* Kill switches, live routing and custody actions are not exposed.
## Writes are labelled
Tools that change your account (watchlists, notes, alerts, monitors, portfolios, paper orders, backtest jobs) are marked in their MCP annotations and say so in their descriptions. Keep your client's approval prompts on for write tools if you want to confirm each one.
## Settings and secrets stay out
Account settings, stored secrets and API keys, billing, file uploads and starting server-side agent runs are not available as tools.
## Your data
* Stored large results are readable only by your account and are deleted after 24 hours.
* Tokens are stored by Fincept as hashes; a leaked refresh token is useless after its next legitimate use.
* Every tool call is subject to the same server-side checks as the terminal: plan, quotas, credits and ownership of the item it touches.
## If a token leaks
Change your password. Every session and MCP connection ends at its next request.
## Prompt injection
Tool results can contain third-party text, such as news articles and filings. Treat instructions inside them as data. Agents that follow text from tool results may try write tools you did not ask for; approval prompts on write tools prevent that.
# Troubleshooting
Source: https://docs.fincept.in/guides/troubleshooting
Fixes for common connection, sign-in and tool errors.
Run the client's sign-in: `/mcp` then **Authenticate** in Claude Code, `codex mcp login fincept` in Codex, the login action in Cursor or VS Code MCP settings.
The account you signed in with has no active Fincept Exclusive plan. Check it at [fincept.in/enterprise/account](https://fincept.in/enterprise/account), or sign in with the account that has it.
Your plan changed or lapsed after you connected. Renew or upgrade, then retry; there is no need to sign in again.
The connection was ended: a password change, a refresh token used twice, or more than 20 connections on the account. Sign in again from the client.
`codex mcp add` signs you in already. Running `codex mcp login` straight after starts a second sign-in. Both work; Codex keeps the second.
Windows PowerShell 5.1 does not support `&&`. Run each command on its own line, or use `;`.
Only the core set is listed. Ask the agent to use `fincept_search_tools`, or name the tool. A name the catalog does not have returns `unknown tool`.
The result was too large to send whole. The agent reads the rest with `fincept_read_result`, or open `artifacts[0].view_url` in the browser. See [large results](/guides/results#large-results).
The message names the argument at fault. Common causes: series of different lengths in one table, too few observations for the model, a formula or column name the table lacks, asset weights or bounds that cannot be met, or a `$fincept` path that does not exist in the referenced tool's data.
The account passed 120 requests per minute. Clients back off and retry; agents that loop over many symbols should use batch tools such as `market_get_quotes`.
Error codes are listed in the [errors reference](/reference/errors).
# Fincept MCP
Source: https://docs.fincept.in/index
Fincept Terminal's markets, research, analytics and statistics as tools for your coding agent.
Fincept MCP is a hosted [Model Context Protocol](https://modelcontextprotocol.io) server. Connect Claude Code, Codex, Cursor or any MCP client, sign in once with your Fincept account, and your agent calls Fincept Terminal's services as tools.
```text Endpoint theme={"dark"}
https://enterprise.fincept.in/mcp
```
Fincept MCP is part of every Fincept Exclusive plan: **Exclusive**, **Exclusive+** and **Exclusive Pro**. An account without an active plan can sign in but every request is refused with `upgrade_required`. See [plans](https://fincept.in/pricing).
## What your agent gets
Quotes, OHLCV candles, option chains, fundamentals, funds and symbol search.
Global economic series from every provider, SEC filings, funds and deals.
Portfolio analytics, screeners, option models, rule and strategy backtests.
Your portfolios, ledgers and limits, and the Fincept Paper account.
News, sentiment, monitors, maritime, trade and geopolitical data.
Regression, time-series models, forecasts, hypothesis tests and more, on Fincept data or your own.
Machine-learning forecasts of one series or a panel, with conformal intervals, backtests and model search.
Mean-risk optimisation over 26 risk measures, risk parity, hierarchical portfolios and portfolio risk analytics.
Mean-variance, downside-risk and hierarchical risk parity portfolios, Black-Litterman and whole-share allocation.
Returns, volatility, rolling statistics, technical indicators, basket backtests and business-day calendars.
GARCH-family volatility models, VaR and expected-shortfall forecasts and backtests, unit roots and cointegration.
Fixed and random effects, Fama-MacBeth, instrumental variables, systems of equations and factor asset pricing.
Statistical forecasts of one series or a panel: ARIMA, ETS, Theta, TBATS and MSTL, with backtests and simulated paths.
201 technical indicators and all 61 candlestick patterns on OHLCV bars, with every parameter settable.
Live screens of stocks in 68 countries, ETFs, crypto, forex and more on about 4,000 fields, plus formula screens over price history.
Performance reports, monthly returns, drawdowns and ratios of any price series, risk-parity weights and overfitting checks.
Regime breaks in returns, volatility, trends, betas and mean reversion, with penalty and break-count selection.
Hidden Markov regimes: calm and turbulent states, transition probabilities, today's regime and scenarios.
Rank and tail dependence, bivariate and vine copulas, copula VaR and stress scenarios.
Optimisation and rule-based trading policies back-tested with costs, today's trades and pre-trade checks.
Portfolio pipelines over 15 risk measures, validated walk-forward and by combinatorial cross-validation.
Yield curves, bonds, swaps, credit, inflation, rate options, equity and FX options, volatility surfaces and calibration.
## How it works
* **Sign in with your browser.** OAuth 2.1 through fincept.in. No API keys to copy or rotate. See [authentication](/guides/authentication).
* **One result format.** Every tool answers with the same structured envelope. Large results are stored and readable page by page. See [results](/guides/results).
* **Every tool, findable.** A short core set is listed; your agent searches the rest and calls any tool by name. See [finding tools](/guides/finding-tools).
* **Same account, same rules.** Tools spend credits and respect quotas exactly as the terminal does. See [credits and limits](/guides/credits-and-limits).
* **No real money.** Trading tools reach the Fincept Paper account only. See [security](/guides/security).
Connect a client and make your first call in two minutes.
Every toolset and every tool.
# Quickstart
Source: https://docs.fincept.in/quickstart
Connect your coding agent to Fincept MCP and make a first call.
**Prerequisites:** an active Fincept Exclusive plan, any tier (check at [fincept.in/enterprise/account](https://fincept.in/enterprise/account)) and an MCP client that supports remote HTTP servers with OAuth.
```bash theme={"dark"}
claude mcp add --transport http --scope user fincept https://enterprise.fincept.in/mcp
```
```bash theme={"dark"}
codex mcp add fincept --url https://enterprise.fincept.in/mcp
```
Add to `~/.cursor/mcp.json`:
```json theme={"dark"}
{
"mcpServers": {
"fincept": { "url": "https://enterprise.fincept.in/mcp" }
}
}
```
Add to `.vscode/mcp.json`:
```json theme={"dark"}
{
"servers": {
"fincept": { "type": "http", "url": "https://enterprise.fincept.in/mcp" }
}
}
```
Your client opens fincept.in in the browser. Sign in if needed, review the request and select **Authorize**. The browser hands control back to the client.
In Claude Code, run `/mcp`, pick `fincept` and choose **Authenticate**. Codex opens the browser on `mcp add`.
```text Prompt theme={"dark"}
Using Fincept, get the latest quote for AAPL and the last 5 daily candles.
```
```text Prompt theme={"dark"}
Using Fincept, fit an ARIMA(1,1,1) to the last 500 daily closes of ^NSEI and forecast 10 days.
```
The agent answers from tool results. Each result carries a `summary` it can quote and the data it used.
## Next steps
How the agent discovers the full catalog.
Workflows that combine data and statistics.
# Estimation of returns, risk and views
Source: https://docs.fincept.in/reference/allocation/estimation
Expected returns and covariance by 6 mean and 15 covariance estimators, coskewness and cokurtosis, Black-Litterman (plain, augmented, Bayesian) posteriors, factor models with stepwise or principal components loadings, entropy pooling, bootstrap uncertainty sets, random-matrix denoising and covariance/correlation matrix tools.
Toolset `alloc_estimation`: 8 tools.
| Tool | What it does | Notes |
| - | - | - |
| `alloc_assets_stats` | Expected returns and the covariance matrix by the chosen estimators, beside the plain sample figures: mean by sample, EWMA, James-Stein, Bayes-Stein or BOP shrinkage; covariance by sample, semi, EWMA, Ledoit-Wolf, OAS, shrunk, graphical lasso, j-LoGo, fixed/spectral/shrink denoising or Gerber 0/1/2. | |
| `alloc_comoments` | Higher comoments of up to 12 assets: coskewness and cokurtosis matrices (sample, denoised, or probability-weighted), their downside (lower semi) versions and the semi covariance. | |
| `alloc_factor_model` | Factor model of the assets on the given factors: loadings (alpha and betas) chosen by forward or backward stepwise regression on p-value, AIC, SIC, R² or adjusted R², or by principal components regression, or given. | |
| `alloc_matrix` | Matrix utilities for covariance and correlation matrices: convert between covariance and correlation, repair a matrix that is not positive definite (eigenvalue clipping or nearest correlation), check positive definiteness with the eigenvalues, or generate return scenarios whose sample covariance is exactly the matrix. | |
| `alloc_denoise` | Random-matrix denoising of the sample covariance: fits the Marchenko-Pastur law to the correlation eigenvalues, splits them into noise and signal (the number of factors), and rebuilds the covariance with the noise removed (fixed, spectral or shrink), optionally detoned. | |
| `alloc_uncertainty_sets` | Box and elliptical uncertainty sets of the mean vector and covariance matrix: lower and upper bounds of each asset's mean and volatility, the bounds of every covariance, the covariance of the mean estimate and the radii of the elliptical sets. | |
| `alloc_black_litterman` | Black-Litterman posterior expected returns and covariance from absolute or relative views on assets or classes (BL), augmented with views on factors (ABL), or Bayesian on factor views (BLB). | |
| `alloc_entropy_pooling` | Entropy pooling: the scenario probabilities closest (minimum relative entropy) to equal weights that satisfy the views on moments, and the posterior means, volatilities and correlations they imply. | |
Inputs, limits and outputs are described in [Fincept Allocation](/guides/fincept-allocation). Full schemas: `fincept_describe_tool`.
# Hierarchical clustering and networks
Source: https://docs.fincept.in/reference/allocation/hierarchical
Hierarchical portfolios (HRP, HERC, HERC2, NCO) over 12 codependence measures, 8 linkages (DBHT included) and 38 risk measures; the assets' cluster tree, codependence and distance matrices, and their minimum spanning tree or planar filtered graph with centralities.
Toolset `alloc_hierarchical`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `alloc_hierarchical` | Hierarchical clustering portfolio: HRP, HERC, HERC2 or NCO on a tree of the assets built from a codependence (correlation, Gerber, distance correlation, mutual information, tail dependence) and a linkage (single ... ward, DBHT), allocating by one of 38 risk measures, with optional weight bounds. | |
| `alloc_clusters` | Hierarchical clusters of the assets from a codependence and a linkage, with the number of clusters given or chosen by the two-difference gap statistic or the standardised silhouette. | |
| `alloc_codependence` | The codependence matrix of the assets and the distance derived from it: Pearson, Spearman or Kendall correlation, Gerber statistic, absolute correlation, distance correlation, mutual information (distance = variation of information) or lower-tail dependence. | |
| `alloc_network` | The assets' network: edges of the minimum spanning tree or planar filtered graph of their codependence distances, each node's degree, chosen centrality and hierarchical cluster, and the connection matrix (assets within walk\_size edges) that network constraints use. | |
Inputs, limits and outputs are described in [Fincept Allocation](/guides/fincept-allocation). Full schemas: `fincept_describe_tool`.
# Portfolio optimisation
Source: https://docs.fincept.in/reference/allocation/optimize
Mean-risk optimisation over 26 risk measures and four objectives on historical, Black-Litterman, factor-model and entropy-pooling inputs, with bounds, budgets, cardinality, risk limits, linear, integer, turnover, tracking-error and network constraints; efficient frontiers; worst-case robust, OWA and mean-variance-skewness-kurtosis portfolios; and the constraint and view matrix builders.
Toolset `alloc_optimize`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `alloc_optimize` | Optimal portfolio weights for one of 26 risk measures (variance, MAD, CVaR, EVaR, tail Gini, drawdowns, ...) and an objective (minimum risk, maximum utility, maximum return/risk ratio, maximum return), on historical estimates or a Black-Litterman, factor-model, Black-Litterman-on-factors or entropy-pooling model, under any mix of constraints. | |
| `alloc_efficient_frontier` | The efficient frontier of a risk measure under the same models and constraints as alloc\_optimize: points portfolios from minimum risk to maximum return. | |
| `alloc_owa` | Portfolio optimising an ordered-weighted-average risk measure (a weighted sum of the sorted portfolio returns) such as the Gini mean difference, weighted CVaR, tail Gini, ranges or L-moments. | |
| `alloc_worst_case` | Worst-case (robust) mean-variance portfolio: optimises the objective against the least favourable mean and covariance inside box or elliptical uncertainty sets estimated by bootstrap, normal simulation or a delta band. | |
| `alloc_mvsk` | Portfolio optimising the first four moments together (mean, variance, skewness, kurtosis) through a semidefinite relaxation of coskewness and cokurtosis, at most 20 assets. | |
| `alloc_build_constraints` | Builds the matrices an optimizer receives from rule rows and shows them: weight rules as A w \<= B, risk contribution rules, factor-exposure rules, integer (cardinality, exclusive, joint) rules, hierarchical-portfolio bounds, risk budget vectors, Black-Litterman P/Q and entropy-pooling P/Q. | |
Inputs, limits and outputs are described in [Fincept Allocation](/guides/fincept-allocation). Full schemas: `fincept_describe_tool`.
# Fincept Allocation
Source: https://docs.fincept.in/reference/allocation/overview
Every Fincept Allocation module and its toolset.
30 tools in 5 modules, plus `alloc_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Estimation of returns, risk and views](/reference/allocation/estimation) | `alloc_estimation` | Expected returns and covariance by 6 mean and 15 covariance estimators, coskewness and cokurtosis, Black-Litterman (plain, augmented, Bayesian) posteriors, factor models with stepwise or principal components loadings, entropy pooling, bootstrap uncertainty sets, random-matrix denoising and covariance/correlation matrix tools. | 8 |
| [Hierarchical clustering and networks](/reference/allocation/hierarchical) | `alloc_hierarchical` | Hierarchical portfolios (HRP, HERC, HERC2, NCO) over 12 codependence measures, 8 linkages (DBHT included) and 38 risk measures; the assets' cluster tree, codependence and distance matrices, and their minimum spanning tree or planar filtered graph with centralities. | 4 |
| [Portfolio optimisation](/reference/allocation/optimize) | `alloc_optimize` | Mean-risk optimisation over 26 risk measures and four objectives on historical, Black-Litterman, factor-model and entropy-pooling inputs, with bounds, budgets, cardinality, risk limits, linear, integer, turnover, tracking-error and network constraints; efficient frontiers; worst-case robust, OWA and mean-variance-skewness-kurtosis portfolios; and the constraint and view matrix builders. | 6 |
| [Risk parity and risk budgeting](/reference/allocation/parity) | `alloc_parity` | Portfolios whose assets (or classes, or factors) contribute risk in chosen proportions: equal risk contribution and risk budgeting for 22 risk measures, relaxed risk parity, factor risk parity and optimisation under factor risk-contribution limits; each answer shows the achieved risk contributions. | 3 |
| [Portfolio risk analytics](/reference/allocation/risk) | `alloc_risk` | Risk of any portfolio or asset: 40 risk measures with return/risk ratios, the full risk report table, risk contributions per asset, class and factor, drawdown paths, the return distribution with its tail and range measures, portfolio comparisons, Brinson attribution and conversion of weights into shares. | 9 |
# Risk parity and risk budgeting
Source: https://docs.fincept.in/reference/allocation/parity
Portfolios whose assets (or classes, or factors) contribute risk in chosen proportions: equal risk contribution and risk budgeting for 22 risk measures, relaxed risk parity, factor risk parity and optimisation under factor risk-contribution limits; each answer shows the achieved risk contributions.
Toolset `alloc_parity`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `alloc_risk_parity` | Risk parity (equal risk contribution) or risk budgeting portfolio for one of 22 risk measures (standard deviation, MAD, CVaR, EVaR, CDaR, ulcer index, ...): each asset's share of portfolio risk matches its budget (equal, per asset, or equal per class). | |
| `alloc_relaxed_risk_parity` | Relaxed risk parity on variance: risk contributions near their budgets while a minimum expected return or weight rules can bind, which exact risk parity cannot honour. | |
| `alloc_factor_risk_budget` | Factor risk budgeting on a factor model of the assets: parity spreads portfolio risk across the factors by factor\_budget for one of 22 risk measures; constrained optimises the objective on variance while each factor's share of variance obeys factor\_limits (and constraints). | |
Inputs, limits and outputs are described in [Fincept Allocation](/guides/fincept-allocation). Full schemas: `fincept_describe_tool`.
# Portfolio risk analytics
Source: https://docs.fincept.in/reference/allocation/risk
Risk of any portfolio or asset: 40 risk measures with return/risk ratios, the full risk report table, risk contributions per asset, class and factor, drawdown paths, the return distribution with its tail and range measures, portfolio comparisons, Brinson attribution and conversion of weights into shares.
Toolset `alloc_risk`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `alloc_risk_measures` | Any of 41 risk measures of a portfolio's (or one series') returns per period: dispersion (std, MAD, Gini, semi deviation, kurtosis, even moments), downside (lower partial moments), tail (VaR, CVaR, EVaR, RLVaR, tail Gini, worst realization, entropic, L-moments), ranges, and drawdowns of uncompounded or compounded cumulative returns. | |
| `alloc_brinson_attribution` | Brinson-Fachler attribution of a portfolio's excess return over a benchmark between two dates, per class: allocation effect (over- or under-weighting classes), selection effect (picking within classes), interaction and total excess return, with totals. | |
| `alloc_discrete_allocation` | Converts target weights and a capital amount into whole numbers of shares at the latest prices (negative for shorts), spending leftover cash on extra shares where it fits. | |
| `alloc_risk_contribution` | Euler risk decomposition of a portfolio for one of 37 risk measures: each asset's marginal risk, risk contribution (they sum to the portfolio risk) and share, beside the equal-risk-contribution level risk / n, and optionally the sum per class. | |
| `alloc_factor_risk_contribution` | Risk decomposition of a portfolio across factors for one of 37 risk measures: each factor's risk contribution through the portfolio's factor exposures, plus the residual (Others), with shares. | |
| `alloc_return_distribution` | Histogram of the portfolio's period returns with the risk measures drawn as return levels (mean, mean minus std/MAD/Gini, -VaR, -CVaR, -tail Gini, -EVaR, -RLVaR, worst realization) and the range measures (VaR, CVaR, tail Gini, EVaR, RLVaR ranges and the full range) with their loss end, gain end and width. | |
| `alloc_drawdown` | The portfolio's cumulative value (compounded and uncompounded) and its drawdown path, with the maximum drawdown's peak, trough and recovery, and every drawdown measure: maximum and average drawdown, DaR, CDaR, EDaR, RLDaR and ulcer index, on uncompounded (absolute) and compounded (relative) cumulative returns. | |
| `alloc_compare_portfolios` | Cumulative value of several fixed-weight portfolios (rebalanced each period) over the same history, side by side, with each one's total return, annualised return and volatility, return/volatility and maximum drawdown. | |
| `alloc_risk_table` | The risk report of a portfolio (or one series): mean return and CAGR; standard deviation, MAD, semi deviation, first and second lower partial moments, VaR, CVaR, EVaR, tail Gini, RLVaR and worst realization, annualised, each with its (return - MAR) / risk ratio; skewness and excess kurtosis; and the ulcer index, average drawdown, DaR, CDaR, EDaR, RLDaR and maximum drawdown of uncompounded cumulative returns. | |
Inputs, limits and outputs are described in [Fincept Allocation](/guides/fincept-allocation). Full schemas: `fincept_describe_tool`.
# Segmentation metrics
Source: https://docs.fincept.in/reference/change-points/metrics
Compare two sets of change points (Hausdorff distance, Rand index, Hamming distance, precision, recall and F1 within a margin, mean time error) and score given break dates against the data under a segment cost (each break's gain against the BIC/AIC reference penalty).
Toolset `changepoint_metrics`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `changepoint_compare` | Compares a candidate set of change points with a reference set on the same series: Hausdorff distance (the worst miss, in observations), Rand index and Hamming distance (agreement of the two partitions), precision, recall and F1 within margin observations, and mean time error (average distance of a candidate to its nearest reference). | |
| `changepoint_evaluate_breaks` | Scores given change points (known events, an analyst's regime dates) under a segment cost: each segment's statistics and cost, each break's gain (the cost saved by splitting its two neighbouring segments there) against the BIC/AIC reference penalty (a gain below it is not supported by the data), and the total cost with and without the breaks. | |
Inputs, limits and outputs are described in [Fincept Change Points](/guides/fincept-change-points). Full schemas: `fincept_describe_tool`.
# Fincept Change Points
Source: https://docs.fincept.in/reference/change-points/overview
Every Fincept Change Points module and its toolset.
11 tools in 5 modules, plus `changepoint_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Change-point search](/reference/change-points/search) | `changepoint_search` | Offline change-point detection on one series or several jointly: PELT, binary segmentation, bottom-up, window sliding, dynamic programming and kernel search over ten segment costs (mean, median, mean-and-covariance, kernel distribution, cosine, regression, continuous trend, rank, Mahalanobis, autoregressive), stopping by a number of breaks, a penalty or a cost budget; and the rolling change score of a sliding window. | 2 |
| [Segmentation metrics](/reference/change-points/metrics) | `changepoint_metrics` | Compare two sets of change points (Hausdorff distance, Rand index, Hamming distance, precision, recall and F1 within a margin, mean time error) and score given break dates against the data under a segment cost (each break's gain against the BIC/AIC reference penalty). | 2 |
| [Financial regimes and structural breaks](/reference/change-points/regimes) | `changepoint_regimes` | Regime shifts in returns and volatility (one asset, or covariance and correlation regimes of several), trend changes of prices, rates and macro series, breaks in a regression (beta, hedge ratio) and in autoregressive dynamics (persistence, mean reversion of a spread), each with statistics per regime. | 4 |
| [Penalty and model selection](/reference/change-points/selection) | `changepoint_selection` | How many breaks: the number of change points found at each penalty of a grid (with the widest stable plateau and the BIC/AIC reference penalty), and the total cost of the best segmentation with 0..K breaks scored by BIC, AIC or the elbow of the cost curve. | 2 |
| [Synthetic teaching signals](/reference/change-points/synthetic) | `changepoint_synthetic` | Synthetic piecewise signals with known change points (constant means, Gaussian correlation switches, linear-model coefficients, sine frequencies) from a caller-chosen seed, for demonstrations and for checking how well a method and cost recover the true breaks. | 1 |
# Financial regimes and structural breaks
Source: https://docs.fincept.in/reference/change-points/regimes
Regime shifts in returns and volatility (one asset, or covariance and correlation regimes of several), trend changes of prices, rates and macro series, breaks in a regression (beta, hedge ratio) and in autoregressive dynamics (persistence, mean reversion of a spread), each with statistics per regime.
Toolset `changepoint_regimes`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `changepoint_return_regimes` | Splits an asset's return history into regimes of volatility (default), mean return or whole distribution; several assets are segmented jointly (covariance and correlation regimes). | |
| `changepoint_regression_breaks` | Finds where the coefficients of a linear regression of y on x change: least squares per segment with the breaks chosen to minimise the total squared error (multiple structural breaks). | |
| `changepoint_ar_breaks` | Finds where the autoregressive dynamics of one series change: an AR(order) with intercept fitted per segment, breaks minimising the total squared one-step error. | |
| `changepoint_trend_breaks` | Fits a piecewise-linear trend to one series and finds where its slope changes: continuous (the trend bends; the fit runs through each segment's end points) or with a level jump at each break (least squares per segment). | |
Inputs, limits and outputs are described in [Fincept Change Points](/guides/fincept-change-points). Full schemas: `fincept_describe_tool`.
# Change-point search
Source: https://docs.fincept.in/reference/change-points/search
Offline change-point detection on one series or several jointly: PELT, binary segmentation, bottom-up, window sliding, dynamic programming and kernel search over ten segment costs (mean, median, mean-and-covariance, kernel distribution, cosine, regression, continuous trend, rank, Mahalanobis, autoregressive), stopping by a number of breaks, a penalty or a cost budget; and the rolling change score of a sliding window.
Toolset `changepoint_search`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `changepoint_detect` | Finds the dates where one series, or several jointly, change regime: any search method over any segment cost, stopped by a number of breaks, a penalty (BIC-type by default) or a cost budget. | |
| `changepoint_change_score` | The window-sliding change score: at each observation, how much the cost falls when the window of width observations centred there is split into two halves (a two-sample discrepancy, in cost units). | |
Inputs, limits and outputs are described in [Fincept Change Points](/guides/fincept-change-points). Full schemas: `fincept_describe_tool`.
# Penalty and model selection
Source: https://docs.fincept.in/reference/change-points/selection
How many breaks: the number of change points found at each penalty of a grid (with the widest stable plateau and the BIC/AIC reference penalty), and the total cost of the best segmentation with 0..K breaks scored by BIC, AIC or the elbow of the cost curve.
Toolset `changepoint_selection`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `changepoint_penalty_sweep` | Runs the search at a grid of penalties and returns, per penalty, the number of change points, the total cost, the penalised cost and the break dates (table + step chart of breaks against penalty), the BIC or AIC reference penalty of the cost, and the widest plateau (the number of breaks that holds over the largest span of log-penalties, a robust choice) with its break dates and segments. | |
| `changepoint_select_count` | Fits the best segmentation with 0, 1, ..., max\_bkps change points and scores each: total cost, BIC and AIC (Gaussian or rank likelihood of the cost, noise variance profiled out for squared-error costs) and the elbow of the cost curve. | |
Inputs, limits and outputs are described in [Fincept Change Points](/guides/fincept-change-points). Full schemas: `fincept_describe_tool`.
# Synthetic teaching signals
Source: https://docs.fincept.in/reference/change-points/synthetic
Synthetic piecewise signals with known change points (constant means, Gaussian correlation switches, linear-model coefficients, sine frequencies) from a caller-chosen seed, for demonstrations and for checking how well a method and cost recover the true breaks.
Toolset `changepoint_synthetic`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `changepoint_simulate` | Draws a synthetic piecewise signal with known change points from the caller's seed (a teaching and benchmarking tool, never market data): piecewise-constant means, Gaussian correlation switches, linear-model coefficient changes or sine frequency changes. | |
Inputs, limits and outputs are described in [Fincept Change Points](/guides/fincept-change-points). Full schemas: `fincept_describe_tool`.
# Dependence measures
Source: https://docs.fincept.in/reference/copula/dependence
Kendall's tau, Spearman's rho, Pearson, Blomqvist's beta, Hoeffding's D and Chatterjee's xi matrices between assets, implied copula parameters, tail dependence from pairwise copulas, pseudo-observations, quasi-random uniform samples and latent samples for discrete pairs.
Toolset `copula_dependence`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `copula_dependence_matrix` | Matrix of a rank-based or nonlinear dependence measure between every pair of assets (pairwise complete rows, optional observation weights): Kendall's tau, Spearman's rho, Pearson, Blomqvist's beta, Hoeffding's D or Chatterjee's xi, as a table with a heatmap and the most dependent pairs. | |
| `copula_tail_dependence` | Lower and upper tail dependence coefficients between every pair of assets (up to 20), each from the bivariate copula selected for that pair (family and rotation by AIC by default, parametric families unless controls.family\_set says otherwise). | |
| `copula_pseudo_obs` | Rank-transforms each asset's history to the copula scale: the (optionally weighted) empirical distribution function scaled by n + 1, so every value lies in (0, 1) with uniform margins. | |
| `copula_uniform_sample` | Independent uniform or low-discrepancy (Sobol, generalized Halton) points on the unit cube, reproducible with seeds: the raw material of copula simulation and quasi-Monte Carlo integration. | |
| `copula_discrete_latent` | Recovers a continuous latent sample on the copula scale behind two discrete (integer) variables, treating each observation as known only up to its rectangle of cumulative probabilities and refining latent points by kernel sweeps (deterministic). | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Margins and joint distributions
Source: https://docs.fincept.in/reference/copula/distribution
Univariate margins (boundary-corrected kernel densities for continuous, discrete and zero-inflated data, or the best parametric family by AIC/BIC/AICc, or a density given on a grid) and joint distributions of many assets combining margins with a vine copula: density, joint probabilities, Rosenblatt transforms and samples on the original scale.
Toolset `copula_distribution`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `copula_joint_density` | Fits a joint distribution of several assets on the original scale: each margin a kernel density (default; continuous, discrete or zero-inflated, with optional bounds) or the best parametric family, then a vine copula on the margins' probability transforms. | |
| `copula_margin_fit` | Fits one variable's marginal distribution: a boundary-corrected kernel density (continuous, discrete or zero-inflated, default), the best parametric family among normal, Student t, Laplace, skew-normal and others by AIC/BIC/AICc (or one family with given or partly fixed parameters), or a density supplied on a grid. | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Fincept Copula
Source: https://docs.fincept.in/reference/copula/overview
Every Fincept Copula module and its toolset.
19 tools in 6 modules, plus `copula_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Dependence measures](/reference/copula/dependence) | `copula_dependence` | Kendall's tau, Spearman's rho, Pearson, Blomqvist's beta, Hoeffding's D and Chatterjee's xi matrices between assets, implied copula parameters, tail dependence from pairwise copulas, pseudo-observations, quasi-random uniform samples and latent samples for discrete pairs. | 5 |
| [Margins and joint distributions](/reference/copula/distribution) | `copula_distribution` | Univariate margins (boundary-corrected kernel densities for continuous, discrete and zero-inflated data, or the best parametric family by AIC/BIC/AICc, or a density given on a grid) and joint distributions of many assets combining margins with a vine copula: density, joint probabilities, Rosenblatt transforms and samples on the original scale. | 2 |
| [Bivariate copulas](/reference/copula/pair) | `copula_pair` | Copulas for two assets: fit a chosen family and rotation or select the best of every family (Gaussian, Student, Clayton, Gumbel, Frank, Joe, BB1, BB6, BB7, BB8, Tawn, nonparametric TLL) by AIC/BIC/mBIC, compare families, parameter standard errors; densities, distribution and h-functions with their inverses and derivatives; simulation; tau, Blomqvist beta and tail-dependence conversions. | 5 |
| [Vine regression](/reference/copula/regression) | `copula_regression` | Conditional mean and quantiles of one asset given others from a vine copula with kernel margins: nonlinear, tail-aware regression such as a stock's 5% quantile given the market (CoVaR-style). | 1 |
| [Copula portfolio risk](/reference/copula/risk) | `copula_risk` | Portfolio value at risk and expected shortfall from vine-copula scenarios mapped through each asset's empirical, kernel or parametric margin, with Gaussian-copula and historical benchmarks and expected shortfall contributions; stress scenarios that hold chosen assets at a shock and draw the rest from their conditional distribution. | 2 |
| [Vine copulas](/reference/copula/vine) | `copula_vine` | Vine copulas for many assets: R-vine structure selection (maximum or random spanning trees on Kendall's tau, Spearman, Hoeffding, Chatterjee or mutual information), C- and D-vines, given matrices, truncation, thresholding, family sets and criteria; structures built by hand; density, distribution, Rosenblatt and inverse Rosenblatt transforms, per-edge contributions, parameter inference; unconditional and conditional simulation. | 4 |
# Bivariate copulas
Source: https://docs.fincept.in/reference/copula/pair
Copulas for two assets: fit a chosen family and rotation or select the best of every family (Gaussian, Student, Clayton, Gumbel, Frank, Joe, BB1, BB6, BB7, BB8, Tawn, nonparametric TLL) by AIC/BIC/mBIC, compare families, parameter standard errors; densities, distribution and h-functions with their inverses and derivatives; simulation; tau, Blomqvist beta and tail-dependence conversions.
Toolset `copula_pair`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `copula_pair_fit` | Fits a bivariate copula to two assets' pseudo-observations: selects the family and rotation by AIC (or BIC, mBIC, log-likelihood) from every family or controls.family\_set, or fits a named family by maximum likelihood or Kendall's tau inversion. | |
| `copula_families` | The catalogue of bivariate copula families: class, number of parameters with names and bounds, allowed rotations, which tail(s) carry dependence, whether Kendall's tau inversion applies, and every group each family belongs to (the names usable in family\_set). | |
| `copula_pair_evaluate` | Evaluates a bivariate copula at points or on a grid: density, distribution function, the two h-functions (conditional distributions) and their inverses (conditional quantiles), and first/second derivatives with respect to parameters or arguments. | |
| `copula_pair_simulate` | Draws from a bivariate copula (or one draw per row of row\_parameters, for time-varying parameters), reproducible with seeds. | |
| `copula_pair_convert` | Converts between a copula's parameters and its dependence measures: Kendall's tau to parameters (indep, gaussian, clayton, gumbel, frank, joe), parameters to Kendall's tau, Blomqvist's beta and the 2x2 tail dependence matrix (all four corners, rotation applied), with the family's parameter bounds and the copula with its variables swapped. | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Vine regression
Source: https://docs.fincept.in/reference/copula/regression
Conditional mean and quantiles of one asset given others from a vine copula with kernel margins: nonlinear, tail-aware regression such as a stock's 5% quantile given the market (CoVaR-style).
Toolset `copula_regression`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `copula_vine_regression` | Vine copula regression: fits kernel margins and a vine copula over the target and feature assets, then predicts the target's conditional mean and conditional quantiles at given feature values, capturing nonlinear and tail-dependent relations (e.g. a stock's 5% quantile when the market falls 3%, CoVaR-style). | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Copula portfolio risk
Source: https://docs.fincept.in/reference/copula/risk
Portfolio value at risk and expected shortfall from vine-copula scenarios mapped through each asset's empirical, kernel or parametric margin, with Gaussian-copula and historical benchmarks and expected shortfall contributions; stress scenarios that hold chosen assets at a shock and draw the rest from their conditional distribution.
Toolset `copula_risk`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `copula_portfolio_var` | One-period portfolio value at risk and expected shortfall by copula simulation: a vine copula is fitted to the assets' returns (or given), scenarios are drawn from it and mapped back through each asset's margin (observed quantiles by default, or kernel/parametric), and the weighted portfolio return distribution gives VaR/ES per confidence (positive = loss, fraction and currency), each asset's ES contribution, per-asset VaR/ES, the worst scenarios and a histogram, beside Gaussian-copula and historical VaR/ES. | |
| `copula_stress_scenarios` | Stress scenarios by conditional copula simulation: the shocked assets are held at the given returns (or quantiles) and every other asset is drawn from its distribution conditional on the shock, through a vine copula fitted with the shocked assets last in its order (or a given one) and each asset's margin. | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Vine copulas
Source: https://docs.fincept.in/reference/copula/vine
Vine copulas for many assets: R-vine structure selection (maximum or random spanning trees on Kendall's tau, Spearman, Hoeffding, Chatterjee or mutual information), C- and D-vines, given matrices, truncation, thresholding, family sets and criteria; structures built by hand; density, distribution, Rosenblatt and inverse Rosenblatt transforms, per-edge contributions, parameter inference; unconditional and conditional simulation.
Toolset `copula_vine`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `copula_vine_fit` | Fits a vine copula to many assets: selects an R-vine structure (Dissmann's tree-by-tree maximum spanning trees), or uses a C-vine, D-vine or given matrix, choosing each pair copula's family and rotation by AIC/BIC/ mBIC, with optional truncation, thresholding and an asset set kept last for conditional simulation (controls). | |
| `copula_vine_evaluate` | Evaluates a fitted vine copula (data.model of copula\_vine\_fit) at rows: density or log-density, the joint distribution function (probability all variables are at or below the row), the Rosenblatt transform with an independence check (a good model gives independent uniform columns), the inverse transform, each pair copula's contribution to the log-likelihood, or gradient/Hessian-based parameter standard errors. | |
| `copula_vine_simulate` | Simulates from a fitted vine copula on the copula scale (uniform margins), reproducible with seeds: unconditionally, or with some variables held at given levels (condition) or per-draw conditioning rows, the rest drawn from their conditional distribution. | |
| `copula_vine_structure` | Builds and inspects vine structures: C- and D-vines from an order of names, R-vines from a matrix, a structure array, a list of trees or a uniform random draw, with optional truncation; with pair\_copulas it assembles a full vine copula (data.model) for stress scenarios or simulation with hand-set dependence. | |
Inputs, limits and outputs are described in [Fincept Copula](/guides/fincept-copula). Full schemas: `fincept_describe_tool`.
# Endpoint
Source: https://docs.fincept.in/reference/endpoint
The MCP endpoint, its transport and the OAuth 2.1 endpoints behind it.
## MCP endpoint
```text theme={"dark"}
https://enterprise.fincept.in/mcp
```
| Property | Value |
| - | - |
| Transport | Streamable HTTP (`POST`, JSON responses) |
| Sessions | Stateless: no `Mcp-Session-Id` is required, and any request can reach any server instance |
| Server name | `fincept` |
| Capabilities | `tools`, `resources` (result templates) |
| Authorization | `Authorization: Bearer ` issued by the endpoints below |
### Query parameters
Comma-separated toolsets to list in addition to the core tools, or `all`. See [finding tools](/guides/finding-tools#list-whole-toolsets).
### Unauthenticated response
```http theme={"dark"}
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://enterprise.fincept.in/.well-known/oauth-protected-resource/mcp"
```
## OAuth 2.1 endpoints
| Endpoint | URL |
| - | - |
| Protected resource metadata (RFC 9728) | `https://enterprise.fincept.in/.well-known/oauth-protected-resource/mcp` |
| Authorization server metadata (RFC 8414) | `https://enterprise.fincept.in/.well-known/oauth-authorization-server` |
| Dynamic client registration (RFC 7591) | `POST https://enterprise.fincept.in/oauth/register` |
| Authorization | `GET https://enterprise.fincept.in/oauth/authorize` |
| Token | `POST https://enterprise.fincept.in/oauth/token` |
| Revocation (RFC 7009) | `POST https://enterprise.fincept.in/oauth/revoke` |
| Parameter | Supported values |
| - | - |
| `response_type` | `code` |
| `grant_type` | `authorization_code`, `refresh_token` |
| `code_challenge_method` | `S256` (PKCE is required) |
| `token_endpoint_auth_method` | `none` (public clients) |
| `scope` | `mcp` |
| `resource` | `https://enterprise.fincept.in/mcp` |
The authorization response carries `iss` (RFC 9207). Refresh tokens rotate on every use; presenting a used refresh token revokes the whole grant.
## Resources
| URI template | Content |
| - | - |
| `fincept://results/{id}` | A stored large result: the full [result envelope](/reference/result-envelope) as JSON |
# Errors
Source: https://docs.fincept.in/reference/errors
HTTP errors from the endpoint and error codes inside result envelopes.
## HTTP errors
These stop a request before any tool runs. Clients handle most of them.
| Status | Code | Meaning | Fix |
| - | - | - | - |
| `401` | `session_expired`, `session_revoked` | Missing, expired or revoked token. `WWW-Authenticate` carries `error="invalid_token"` and the OAuth metadata URL. | The client refreshes or signs in again. |
| `402` | `entitlement_required` | The account has no active plan. | Buy or renew a plan. |
| `403` | `upgrade_required` | The account has no active Fincept Exclusive plan. | Subscribe to any Exclusive plan. |
| `429` | `rate_limited` | More than 120 requests a minute. `Retry-After` gives the wait. | Back off and retry. |
## Envelope errors
A tool that runs but cannot answer returns an envelope with `status: "error"`, `isError: true` and one of these codes in `error.code`.
| Code | Meaning |
| - | - |
| `validation_failed` | Arguments do not match the tool's schema, or a `$fincept` reference failed. The message names the field. |
| `upgrade_required` | This tool, or an option of it, needs a feature or capability the plan does not include. |
| `quota_exceeded` | A plan quota is reached, such as the number of watchlists or portfolios. |
| `insufficient_credits` | Not enough credits for a paid tool. |
| `spend_cap_reached` | The daily credit cap or the hourly cap for this action is reached. |
| `not_found` | The item does not exist or belongs to another account, or a stored result expired. |
| `timeout` | The call ran past its time limit. |
| `busy` | The Fincept engine behind the tool (Stats, Forecast, Volatility, Pricing or any other) has no free worker, or Fincept Scanner is pacing its requests to the market data source. Retry after `details.retry_after_s` seconds when given, else in a few seconds. |
| `model_failed` | An engine computation (a model fit, an optimisation, a forecast) failed on this data. The hint suggests what to change. |
| `unavailable` | A Fincept service could not be reached. Retry later. |
Other codes come straight from the service that refused, with a `message` and often a `hint`; agents should read and relay them.
## Unknown tools
Calling a name the catalog does not have is a JSON-RPC error (`unknown tool`), not an envelope. Use `fincept_search_tools` to find the right name.
# Backtesting
Source: https://docs.fincept.in/reference/forecast/backtest
Rolling-origin cross-validation of machine-learning forecasters: several windows, refit schedule, expanding or fixed-size training, interval coverage, accuracy metrics by model, series and window; LightGBM boosting-round search with early stopping.
Toolset `forecast_backtest`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_cross_validation` | Rolling-origin backtest: for each of n\_windows origins (step\_size apart) trains the models on the history before it (all of it, or the last input\_size points; retrained every refit windows) and forecasts the next h periods, then scores them against the actuals. | |
| `forecast_lightgbm_cv` | Trains one LightGBM booster per backtest window simultaneously, eval\_every rounds at a time, scoring the whole h-step recursive forecast of every window (MAPE or RMSE, weighted across windows) and stopping early when it no longer improves. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Panel preparation
Source: https://docs.fincept.in/reference/forecast/data
Validate a long table of series (duplicates, missing periods, missing values), insert missing periods on each series' calendar and fill them, and generate synthetic panels to try the forecasting tools.
Toolset `forecast_data`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_prepare_panel` | Checks a long table of series and makes it regular: reports duplicates, periods missing from each series' calendar and missing values, inserts the missing periods between the start and end bounds at the frequency, and fills them. | |
| `forecast_synthetic_panel` | Generates a reproducible synthetic panel (unique\_id, ds, y) with seasonality and optional trend, static and exogenous features, simulated model forecasts with intervals (to try forecast\_evaluate) or a daily price column. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Forecast evaluation
Source: https://docs.fincept.in/reference/forecast/evaluation
Score forecasts against actuals: MAE, RMSE, MAPE, sMAPE, WAPE, MASE, RMSSE, bias, quantile and multi-quantile losses, CRPS, interval coverage, Winkler score and calibration, per series, window or aggregated (weighted); Pareto-optimal models; errors by step ahead; residual rectification.
Toolset `forecast_evaluation`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_evaluate` | Scores model forecasts against actuals with any of 25 metrics: point (MAE, MSE, RMSE, MAPE, sMAPE, WAPE, ND, bias, cumulative error, relative MAE), scaled by the seasonal naive (MASE, MSSE, RMSSE, scaled PIS), quantile (pinball, multi-quantile, scaled CRPS) and interval (coverage, Winkler, calibration). | |
| `forecast_rectify` | Learns how each model's backtest error (actual minus forecast) depends on the step ahead and on chosen features, with a correction regressor per step (or one using the step as a feature), and adds the predicted error to new forecasts. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Feature engineering
Source: https://docs.fincept.in/reference/forecast/features
The feature matrix the models train on (lags, rolling/seasonal/expanding/EWM statistics, calendar, static and dynamic exogenous columns, per-step targets), lags and rolling statistics of exogenous series, Fourier seasonality, trend and calendar terms with their future values, and the future rows a forecast needs.
Toolset `forecast_features`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_feature_matrix` | Builds the exact training matrix the forecasting tools use: target (or one target per step ahead under the direct strategy), lags, rolling/seasonal/expanding/EWM statistics, calendar features and exogenous columns, after the target transforms, with incomplete leading rows dropped. | |
| `forecast_future_frame` | The (series, period) rows of the next h periods after each series' end: the rows future\_exog must supply for dynamic exogenous columns. | |
| `forecast_exog_lags` | Lags and per-series rolling/seasonal/expanding/EWM statistics of exogenous series (prices, rates, indicators), so a forecast can use their past values without needing their future ones. | |
| `forecast_calendar_features` | Deterministic regressors for history and horizon: Fourier sine/cosine seasonality terms, a trend counter, calendar attributes of the dates, and known-in-advance columns shifted into history. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Machine-learning forecasting
Source: https://docs.fincept.in/reference/forecast/forecasting
Forecast one series or a panel with LightGBM, XGBoost, CatBoost, random forests, ridge, lasso and 40 other regressors on lags, rolling/seasonal/expanding/EWM statistics, calendar and exogenous features; recursive or direct multi-step; conformal prediction intervals; in-sample fitted values; feature importances.
Toolset `forecast_forecasting`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_ml_forecast` | Trains machine-learning regressors (LightGBM, XGBoost, CatBoost, random forest, ridge and 40 more) on lag, rolling, calendar and exogenous features of one series (y) or a panel (data: id, time, value) and forecasts h periods ahead, recursively or with one model per step, with conformal prediction intervals. | |
| `forecast_fitted_values` | In-sample predictions of every model over the training history, step periods ahead (1 = one-step), with normal bands from each series' residual spread at the given levels. | |
| `forecast_feature_importance` | Trains the models on the features and returns what drives them: split/gain importances for tree and boosting models, coefficients for linear models (on standardized features when scale\_features), as a table per feature and model and a bar chart of each model's share of total absolute importance. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Fincept Forecast
Source: https://docs.fincept.in/reference/forecast/overview
Every Fincept Forecast module and its toolset.
17 tools in 7 modules, plus `forecast_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Machine-learning forecasting](/reference/forecast/forecasting) | `forecast_forecasting` | Forecast one series or a panel with LightGBM, XGBoost, CatBoost, random forests, ridge, lasso and 40 other regressors on lags, rolling/seasonal/expanding/EWM statistics, calendar and exogenous features; recursive or direct multi-step; conformal prediction intervals; in-sample fitted values; feature importances. | 3 |
| [Backtesting](/reference/forecast/backtest) | `forecast_backtest` | Rolling-origin cross-validation of machine-learning forecasters: several windows, refit schedule, expanding or fixed-size training, interval coverage, accuracy metrics by model, series and window; LightGBM boosting-round search with early stopping. | 2 |
| [Panel preparation](/reference/forecast/data) | `forecast_data` | Validate a long table of series (duplicates, missing periods, missing values), insert missing periods on each series' calendar and fill them, and generate synthetic panels to try the forecasting tools. | 2 |
| [Forecast evaluation](/reference/forecast/evaluation) | `forecast_evaluation` | Score forecasts against actuals: MAE, RMSE, MAPE, sMAPE, WAPE, MASE, RMSSE, bias, quantile and multi-quantile losses, CRPS, interval coverage, Winkler score and calibration, per series, window or aggregated (weighted); Pareto-optimal models; errors by step ahead; residual rectification. | 2 |
| [Feature engineering](/reference/forecast/features) | `forecast_features` | The feature matrix the models train on (lags, rolling/seasonal/expanding/EWM statistics, calendar, static and dynamic exogenous columns, per-step targets), lags and rolling statistics of exogenous series, Fourier seasonality, trend and calendar terms with their future values, and the future rows a forecast needs. | 4 |
| [Model update and transfer](/reference/forecast/transfer) | `forecast_transfer` | Reuse a trained forecaster: append new observations without retraining and forecast from the new end; forecast series the models never saw (a new ticker, store or market) with intervals recalibrated, rescaled or density-ratio reweighted for them; covariate-shift weights between two feature sets. | 3 |
| [Automatic model search](/reference/forecast/tuning) | `forecast_tuning` | Search each model's hyperparameters jointly with lags, rolling/EWM statistics, calendar features and target transforms by backtest, with a bounded number of trials; retrain the best and forecast. | 1 |
# Model update and transfer
Source: https://docs.fincept.in/reference/forecast/transfer
Reuse a trained forecaster: append new observations without retraining and forecast from the new end; forecast series the models never saw (a new ticker, store or market) with intervals recalibrated, rescaled or density-ratio reweighted for them; covariate-shift weights between two feature sets.
Toolset `forecast_transfer`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_update` | Trains on the history, scores that model on the new observations it never saw (an honest out-of-sample check), then appends them to the stored series without retraining and forecasts h periods from the new end with the original conformal intervals. | |
| `forecast_transfer` | Trains models on source series (data or y) and forecasts different target series with them (transfer learning: a new ticker, product or market with short history), with conformal intervals adapted to the targets by recalibration, error or scale ratios, or density-ratio reweighting. | |
| `forecast_density_ratio` | Density-ratio weights w(x) = p\_target(x) / p\_source(x) for every source row, from a classifier trained to tell target rows from source rows on standardized features: how representative each past observation is of the target conditions. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Automatic model search
Source: https://docs.fincept.in/reference/forecast/tuning
Search each model's hyperparameters jointly with lags, rolling/EWM statistics, calendar features and target transforms by backtest, with a bounded number of trials; retrain the best and forecast.
Toolset `forecast_tuning`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `forecast_auto_ml` | Searches, for each chosen model, its hyperparameters together with the features (candidate lags, EWM and rolling means, calendar features and target transforms such as log, differencing and scaling, shaped by the season) to minimize the backtest error over n\_windows windows, then retrains the best configuration on all data and forecasts h periods with conformal bands. | |
Inputs, limits and outputs are described in [Fincept Forecast](/guides/fincept-forecast). Full schemas: `fincept_describe_tool`.
# Discovery tools
Source: https://docs.fincept.in/reference/gateway-tools
The tools that search the catalog, describe a tool, call any tool and read stored results.
These tools are always listed. All are free.
## fincept\_search\_tools
Finds tools by what they do. Returns `matches` with each tool's `name`, `signature`, `effect`, `toolset` and `summary`, plus the list of `toolsets`.
Plain words, for example `insider trades`, `arima forecast`, `cointegration test`.
Search one toolset only.
Matches to return, 1 to 25.
## fincept\_describe\_tool
Returns one tool's full description and JSON input schema.
Tool name, for example `market_get_options_chain`.
## fincept\_call\_tool
Runs any tool by name, listed or not. Use it from clients that call only listed tools; other clients can call the tool directly.
Tool name.
The tool's arguments.
## fincept\_read\_result
Reads a stored large result: any field by path, any list by page. See [large results](/guides/results#large-results).
`artifacts[].id` of the result, starting `r_`.
Dot path from the envelope root, as named in `truncated.lists`: `data.candles`, `blocks.forecast.rows`.
First item to return.
Items per page, up to 5,000.
## stats\_catalog
Lists every Fincept Stats module and tool with a one-line description.
List one module only, by module or toolset name, for example `power` or `stats_power`.
## forecast\_catalog
Lists every Fincept Forecast module and tool with a one-line description.
List one module only, by module or toolset name, for example `backtest` or `forecast_backtest`.
## alloc\_catalog
Lists every Fincept Allocation module and tool with a one-line description.
List one module only, by module or toolset name, for example `parity` or `alloc_parity`.
## pfopt\_catalog
Lists every Fincept Portfolio Optimizer module and tool with a one-line description.
List one module only, by module or toolset name, for example `downside` or `pfopt_downside`.
## quant\_catalog
Lists every Fincept Quant module and tool with a one-line description.
List one module only, by module or toolset name, for example `technicals` or `quant_technicals`.
## vol\_catalog
Lists every Fincept Volatility module and tool with a one-line description.
List one module only, by module or toolset name, for example `models` or `vol_models`.
## panel\_catalog
Lists every Fincept Panel module and tool with a one-line description.
List one module only, by module or toolset name, for example `iv` or `panel_iv`.
## tsforecast\_catalog
Lists every Fincept TS Forecast module and tool with a one-line description.
List one module only, by module or toolset name, for example `smoothing` or `tsforecast_smoothing`.
## ta\_catalog
Lists every Fincept Technicals module and tool with a one-line description.
List one module only, by module or toolset name, for example `overlap` or `ta_overlap`.
## changepoint\_catalog
Lists every Fincept Change Points module and tool with a one-line description.
List one module only, by module or toolset name, for example `regimes` or `changepoint_regimes`.
## regime\_catalog
Lists every Fincept Regimes module and tool with a one-line description.
List one module only, by module or toolset name, for example `gaussian` or `regime_gaussian`.
## copula\_catalog
Lists every Fincept Copula module and tool with a one-line description.
List one module only, by module or toolset name, for example `vine` or `copula_vine`.
## mpo\_catalog
Lists every Fincept Multi-Period module and tool with a one-line description.
List one module only, by module or toolset name, for example `trade` or `mpo_trade`.
## pflab\_catalog
Lists every Fincept Portfolio Lab module and tool with a one-line description.
List one module only, by module or toolset name, for example `validation` or `pflab_validation`.
## pricing\_catalog
Lists every Fincept Pricing module and tool with a one-line description.
List one module only, by module or toolset name, for example `curves` or `pricing_curves`.
## scan\_catalog
Lists every Fincept Scanner module and tool with a one-line description.
List one module only, by module or toolset name, for example `screen` or `scan_screen`.
## perf\_catalog
Lists every Fincept Performance module and tool with a one-line description.
List one module only, by module or toolset name, for example `validation` or `perf_validation`.
# Back-tests
Source: https://docs.fincept.in/reference/multi-period/backtest
Back-tests of trading policies on your own history with a market simulator that charges spreads, market impact, per-share fees and holding costs: single- and multi-period optimisation policies with constraints, and rule-based policies (hold, equal weight, fixed weights, rebalancing, rank long-short, market portfolio), with every performance metric, drawdown, turnover, leverage, cost breakdown and weights over time.
Toolset `mpo_backtest`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `mpo_backtest` | Back-tests a single-period (planning\_horizon 1) or multi-period optimisation policy on your history: at each date it maximises the objective (forecast return minus weighted risk, transaction and holding costs) under the constraints, trades the first step and pays the market's costs in the simulator. | |
| `mpo_backtest_rules` | Back-tests one or several rule-based policies side by side on your history with the market simulator and its costs: hold, all cash, equal weight, volume-weighted market portfolio, fixed weights or dated targets, periodic, proportional or drift-triggered (adaptive) rebalancing, rank long-short on a signal, fixed trades. | |
Inputs, limits and outputs are described in [Fincept Multi-Period](/guides/fincept-multi-period). Full schemas: `fincept_describe_tool`.
# Forecasts and data
Source: https://docs.fincept.in/reference/multi-period/forecast
The estimates trading policies use, computed at any date from earlier data only: mean returns, variances, volatilities, standard errors, covariance matrices, PCA and SVD factor models and mean traded volumes, with rolling windows and exponential half-lives; and how your history is prepared (trading calendar, periods per year, tradable universe, aligned returns).
Toolset `mpo_forecast`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `mpo_forecast` | The estimate a policy would use at the decision date (default the last), from earlier data only, with an optional rolling window and exponential half-life: per-asset mean return, variance, standard deviation, standard error of the mean or mean traded volume (per period and annualized, optionally as a path over time), or the covariance matrix, its PSD square-root factor, or a truncated-SVD factor model (exposures F, idiosyncratic d, implied covariance). | |
| `mpo_market_data` | How the engine sees your history before any policy runs: the trading calendar (first date a back-test can start after min\_history\_days, last date, number of periods), periods per year, the cash return per period, the tradable universe through time (assets enter after enough history and leave on missing returns or investable 0), per-asset coverage (first and last return, observations, mean and volatility per period and annualized) and optionally the aligned forward returns, down-sampled by trading\_frequency. | |
Inputs, limits and outputs are described in [Fincept Multi-Period](/guides/fincept-multi-period). Full schemas: `fincept_describe_tool`.
# Fincept Multi-Period
Source: https://docs.fincept.in/reference/multi-period/overview
Every Fincept Multi-Period module and its toolset.
9 tools in 4 modules, plus `mpo_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Back-tests](/reference/multi-period/backtest) | `mpo_backtest` | Back-tests of trading policies on your own history with a market simulator that charges spreads, market impact, per-share fees and holding costs: single- and multi-period optimisation policies with constraints, and rule-based policies (hold, equal weight, fixed weights, rebalancing, rank long-short, market portfolio), with every performance metric, drawdown, turnover, leverage, cost breakdown and weights over time. | 2 |
| [Forecasts and data](/reference/multi-period/forecast) | `mpo_forecast` | The estimates trading policies use, computed at any date from earlier data only: mean returns, variances, volatilities, standard errors, covariance matrices, PCA and SVD factor models and mean traded volumes, with rolling windows and exponential half-lives; and how your history is prepared (trading calendar, periods per year, tradable universe, aligned returns). | 2 |
| [Trades now](/reference/multi-period/trade) | `mpo_trade` | What to trade today: the optimal trades of a single- or multi-period optimisation policy (with the planned weights of every step ahead), the trades of a rule-based policy, and a pre-trade evaluation of any proposed trade (expected return, risk, transaction and holding costs, constraint checks). | 3 |
| [Aversion tuning](/reference/multi-period/tuning) | `mpo_tuning` | Tune an optimisation policy's risk, trade and holding aversions by back-testing: a grid of values side by side (risk-return frontier of realized results) or a greedy search that keeps moving the values while Sharpe ratio, return or growth improves. | 2 |
# Trades now
Source: https://docs.fincept.in/reference/multi-period/trade
What to trade today: the optimal trades of a single- or multi-period optimisation policy (with the planned weights of every step ahead), the trades of a rule-based policy, and a pre-trade evaluation of any proposed trade (expected return, risk, transaction and holding costs, constraint checks).
Toolset `mpo_trade`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `mpo_optimize` | Today's optimal trades: solves the single- or multi-period optimisation at the decision date (default the last date) from your current holdings, seeing only earlier data, exactly as mpo\_backtest decides each day. | |
| `mpo_rule_trades` | The trades a rule-based policy (equal weight, market portfolio, fixed weights, periodic, proportional or drift-triggered rebalancing, rank long-short, fixed trades, hold, sell all) makes at the decision date (default the last date) from your current holdings. | |
| `mpo_evaluate_trade` | Evaluates a proposed trade at the decision date before placing it: every objective term an optimisation policy would weigh (forecast return, cash return, risk with ex-ante annualized volatility, transaction and holding costs in value, forecast-error penalties) for the current and the post-trade portfolio, the weighted objective, and whether each constraint holds (with its largest violation). | |
Inputs, limits and outputs are described in [Fincept Multi-Period](/guides/fincept-multi-period). Full schemas: `fincept_describe_tool`.
# Aversion tuning
Source: https://docs.fincept.in/reference/multi-period/tuning
Tune an optimisation policy's risk, trade and holding aversions by back-testing: a grid of values side by side (risk-return frontier of realized results) or a greedy search that keeps moving the values while Sharpe ratio, return or growth improves.
Toolset `mpo_tuning`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `mpo_gamma_sweep` | Back-tests the same optimisation policy for every combination (at most 24) of the given risk, trade and holding aversions, over the same window and costs. | |
| `mpo_hyperparameter_search` | Searches the risk, trade and/or holding aversions that maximise a back-test metric (Sharpe by default) with the simulator's greedy method: from the objective's values it back-tests one move up and down for each tuned aversion, takes the best while the metric improves and stops when no move does. | |
Inputs, limits and outputs are described in [Fincept Multi-Period](/guides/fincept-multi-period). Full schemas: `fincept_describe_tool`.
# Factor asset pricing
Source: https://docs.fincept.in/reference/panel/asset-pricing
Linear factor models of test-asset returns: time-series regressions on traded factors, two-pass cross-sectional regressions (traded or non-traded factors, optional zero-beta rate) and GMM; risk premia with standard errors, betas, pricing errors and the J test of zero alphas.
Toolset `panel_asset_pricing`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `panel_factor_model` | Estimates a linear factor model of test-asset returns: risk premia per factor with standard errors, t and p; each asset's alpha (pricing error) and betas with t statistics; R²; and the J test of the null that all alphas are zero (rejection = the factors do not price the assets). | |
Inputs, limits and outputs are described in [Fincept Panel](/guides/fincept-panel). Full schemas: `fincept_describe_tool`.
# Panel data and datasets
Source: https://docs.fincept.in/reference/panel/data
Classic econometrics example datasets (wage panel, job training, Mroz, Card, fertility, birth weight, Fama-French portfolios, Munnell public capital, fringe benefits, MEPS) and simulated panels; panel structure, balance and within/between variation, demeaning, first differences and group means; HAC kernel weights and the automatic bandwidth.
Toolset `panel_data`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `panel_dataset` | Returns a classic econometrics dataset bundled with the engine (or a simulated panel) as columns by name, with its description: variables, units and source. | |
| `panel_structure` | Describes a long panel or applies the panel transforms the estimators use. | |
| `panel_hac_bandwidth` | The automatic (data-driven) bandwidth for a HAC covariance with the chosen kernel, and the kernel weight on each lag at that bandwidth (or at the bandwidth given), as a series with a bar chart. | |
Inputs, limits and outputs are described in [Fincept Panel](/guides/fincept-panel). Full schemas: `fincept_describe_tool`.
# Instrumental variables
Source: https://docs.fincept.in/reference/panel/iv
Instrumental-variables regression for endogenous regressors: two-stage least squares, LIML and k-class (Fuller), GMM and continuously updated GMM with robust, HAC or clustered weighting, first-stage strength, over-identification (Sargan, Basmann, J) and endogeneity (Durbin, Wu-Hausman, C) tests, and side-by-side comparison of estimators.
Toolset `panel_iv`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `panel_iv_regression` | Linear instrumental-variables regression of a dependent column on exogenous and endogenous regressors with excluded instruments. | |
| `panel_iv_compare` | Fits several instrumental-variables estimators (and OLS, which treats the endogenous regressors as exogenous) on the same specification and lays them side by side: coefficients, standard errors, t statistics and p-values per estimator, with observations, R², adjusted R² and F per estimator. | |
Inputs, limits and outputs are described in [Fincept Panel](/guides/fincept-panel). Full schemas: `fincept_describe_tool`.
# Fincept Panel
Source: https://docs.fincept.in/reference/panel/overview
Every Fincept Panel module and its toolset.
13 tools in 5 modules, plus `panel_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Factor asset pricing](/reference/panel/asset-pricing) | `panel_asset_pricing` | Linear factor models of test-asset returns: time-series regressions on traded factors, two-pass cross-sectional regressions (traded or non-traded factors, optional zero-beta rate) and GMM; risk premia with standard errors, betas, pricing errors and the J test of zero alphas. | 1 |
| [Panel data and datasets](/reference/panel/data) | `panel_data` | Classic econometrics example datasets (wage panel, job training, Mroz, Card, fertility, birth weight, Fama-French portfolios, Munnell public capital, fringe benefits, MEPS) and simulated panels; panel structure, balance and within/between variation, demeaning, first differences and group means; HAC kernel weights and the automatic bandwidth. | 3 |
| [Instrumental variables](/reference/panel/iv) | `panel_iv` | Instrumental-variables regression for endogenous regressors: two-stage least squares, LIML and k-class (Fuller), GMM and continuously updated GMM with robust, HAC or clustered weighting, first-stage strength, over-identification (Sargan, Basmann, J) and endogeneity (Durbin, Wu-Hausman, C) tests, and side-by-side comparison of estimators. | 2 |
| [Panel regression](/reference/panel/panel) | `panel_panel` | Regressions on a long panel (entity x period): fixed effects with entity, time and other effects, random effects, between, first difference, pooled and Fama-MacBeth, with robust, one- or two-way clustered, Driscoll-Kraay and autocorrelation-robust errors; estimated effects; side-by-side comparison with a Hausman test; and regression absorbing high-dimensional fixed effects and interactions. | 6 |
| [System regression](/reference/panel/system) | `panel_system` | Several linked regression equations estimated together: seemingly unrelated regressions (SUR/FGLS) with cross-equation constraints, three-stage least squares and system GMM for equations with endogenous regressors; residual covariance, system R² and tests of a diagonal covariance. | 1 |
# Panel regression
Source: https://docs.fincept.in/reference/panel/panel
Regressions on a long panel (entity x period): fixed effects with entity, time and other effects, random effects, between, first difference, pooled and Fama-MacBeth, with robust, one- or two-way clustered, Driscoll-Kraay and autocorrelation-robust errors; estimated effects; side-by-side comparison with a Hausman test; and regression absorbing high-dimensional fixed effects and interactions.
Toolset `panel_panel`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `panel_fixed_effects` | Fixed-effects (within) panel regression with entity, period and up to two effects in all (other\_effects adds categorical effects). | |
| `panel_absorbing_regression` | Least squares that absorbs many fixed effects (e.g. firm and year, or worker and employer) plus continuous controls and category-specific slopes, reporting only the coefficients of interest. | |
| `panel_random_effects` | Random-effects (GLS, quasi-demeaned) panel regression: entity effects treated as random and uncorrelated with the regressors. | |
| `panel_fama_macbeth` | Fama-MacBeth regression: one cross-sectional regression per period, coefficients averaged over periods with standard errors from their time-series variation (optionally HAC). | |
| `panel_regression` | Pooled OLS on a panel, the between estimator (OLS on entity means) or first-difference OLS (changes within entities, which removes entity effects). | |
| `panel_compare` | Fits several panel estimators on the same dependent and regressors and lays them side by side: coefficients, standard errors, t statistics and p-values per model, and per-model observations, R² (overall, within, between) and F tests. | |
Inputs, limits and outputs are described in [Fincept Panel](/guides/fincept-panel). Full schemas: `fincept_describe_tool`.
# System regression
Source: https://docs.fincept.in/reference/panel/system
Several linked regression equations estimated together: seemingly unrelated regressions (SUR/FGLS) with cross-equation constraints, three-stage least squares and system GMM for equations with endogenous regressors; residual covariance, system R² and tests of a diagonal covariance.
Toolset `panel_system`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `panel_system_regression` | Estimates a system of linear equations jointly: SUR (feasible GLS exploiting correlated errors, with optional cross-equation constraints), three-stage least squares or system GMM when equations have endogenous regressors. | |
Inputs, limits and outputs are described in [Fincept Panel](/guides/fincept-panel). Full schemas: `fincept_describe_tool`.
# Fincept Performance
Source: https://docs.fincept.in/reference/performance/overview
Every Fincept Performance module and its toolset.
16 tools in 4 modules, plus `perf_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Performance statistics](/reference/performance/stats) | `perf_stats` | The full performance report of one or many price series (returns over every horizon, CAGR, drawdowns, Sharpe, Sortino and Calmar ratios, daily, monthly and yearly statistics, win rates), monthly return tables, drawdown episodes and single ratios, against a benchmark where they compare. | 4 |
| [Return transforms](/reference/performance/returns) | `perf_returns` | Returns, log and excess returns, price indexes and rebasing, drawdown series, winsorizing and rescaling; resampling on the actual dates; annualising and de-annualising returns; frequency inference and data sufficiency; rolling statistics. | 5 |
| [Portfolio weights and clustering](/reference/performance/weights) | `perf_weights` | Inverse-volatility, mean-variance and equal-risk-contribution weights from returns, capping weights with the excess redistributed, random weights, and k-means or threshold clustering of assets. | 4 |
| [Strategy selection checks](/reference/performance/validation) | `perf_validation` | Whether a strategy search's winner is real: the deflated Sharpe ratio and its hurdle, the probability of backtest overfitting by combinatorially symmetric cross-validation, and bootstrap distributions of any performance statistic. | 3 |
# Return transforms
Source: https://docs.fincept.in/reference/performance/returns
Returns, rebasing, drawdown series, winsorizing and rescaling; resampling; annualising; frequency inference and data sufficiency; rolling statistics.
Toolset `perf_returns`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `perf_transform` | Transforms each series at every date: simple or log returns from prices; excess returns over an annual risk-free rate and a price index compounding returns from a starting level (both from returns); prices rebased to a common start; the drawdown from the running peak; values winsorized at quantiles or rescaled into a range. | `tail` returns the last rows only. |
| `perf_resample` | Resamples each series to weekly, monthly, quarterly or yearly observations, keeping the actual date of each period's last observation, not the calendar end. | |
| `perf_annualize` | Annualises returns earned over given numbers of calendar days, de-annualises annual rates to a per-period basis, or gives the year fraction between two dates. | No price input. |
| `perf_frequency` | The frequency of each series' dates, the periods per year that follows, its span in years, and with a lookback the observations needed over it against those each series has in its latest window. | |
| `perf_rolling` | A rolling statistic of each series over a window of observations: total return, CAGR, maximum drawdown, Calmar ratio, ulcer index, annualised Sharpe and Sortino ratios, volatility and mean return, skew or kurtosis. Answers the series and its last, highest and lowest values. | Up to 180 seconds. |
Inputs, limits and outputs are described in [Fincept Performance](/guides/fincept-performance). Full schemas: `fincept_describe_tool`.
# Performance statistics
Source: https://docs.fincept.in/reference/performance/stats
The full performance report of one or many price series, monthly return tables, drawdown episodes and single ratios, against a benchmark where they compare.
Toolset `perf_stats`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `perf_stats` | The performance report of one or many price series side by side: start and end, total return, CAGR, max drawdown, Calmar ratio; MTD, 3- and 6-month, YTD, 1-year, 3-, 5- and 10-year annualised and since-inception returns; Sharpe and Sortino ratios, annualised mean and volatility, skew, kurtosis and the best and worst period at daily, monthly and yearly frequency; average drawdown and its length, average up and down month, and the share of winning years and 12-month periods. With several series, also their return correlations and their growth rebased to 100. | Listed by default. |
| `perf_monthly_returns` | The calendar return table of each price series: the return of every month by year with the year's return, months outside the series' span left empty; plus the best and worst month, the share of positive months and the average up and down month. | |
| `perf_drawdowns` | The drawdowns of each price series: the drawdown at every date, the deepest episodes with their start, end, length in calendar days and depth, the maximum and average drawdown, the average episode length, the ulcer index, and the drawdown now with when it began. | |
| `perf_metrics` | Single ratios of each price series with every setting exposed: total return, CAGR, maximum drawdown, Calmar ratio, Sharpe and Sortino ratios over an annual risk-free rate, return/risk ratio, ulcer index and ulcer performance index; against a benchmark series, the information ratio and the probabilistic momentum. | |
Inputs, limits and outputs are described in [Fincept Performance](/guides/fincept-performance). Full schemas: `fincept_describe_tool`.
# Strategy selection checks
Source: https://docs.fincept.in/reference/performance/validation
The deflated Sharpe ratio, the probability of backtest overfitting and bootstrap distributions of performance statistics.
Toolset `perf_validation`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `perf_deflated_sharpe` | The deflated Sharpe ratio of the best strategy of a search: the probability that its true Sharpe ratio is above zero after correcting for how many trials were tried, how much their Sharpe ratios spread, and the skew and fat tails of its returns. Give every trial's prices or returns and it picks the best, or the selected strategy with `trial_sharpe_ratios`. Also answers the expected maximum Sharpe ratio of that many skill-less trials. | |
| `perf_backtest_overfitting` | The probability of backtest overfitting of a strategy search by combinatorially symmetric cross-validation: for every way of using half the blocks in-sample, the in-sample best trial is ranked out of sample. Also answers the winner's mean out-of-sample rank and the distribution of the rank logits. | Up to 300 seconds. |
| `perf_bootstrap` | The bootstrap distribution of a performance statistic of each series: its returns resampled with replacement many times, the statistic computed on every resample, giving its spread, a confidence interval and the share of resamples above zero, next to the value on the actual returns. | Up to 180 seconds. |
Inputs, limits and outputs are described in [Fincept Performance](/guides/fincept-performance). Full schemas: `fincept_describe_tool`.
# Portfolio weights and clustering
Source: https://docs.fincept.in/reference/performance/weights
Inverse-volatility, mean-variance and equal-risk-contribution weights, capping weights, random weights, and clustering of assets.
Toolset `perf_weights`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `perf_weights` | Portfolio weights from the assets' returns: inverse volatility, mean-variance (the highest return per unit of risk within bounds, on a shrunk or sample covariance) or equal risk contribution (risk parity, with optional risk budgets); optionally capped at a maximum weight with the excess redistributed. Answers the weights and the resulting portfolio's annualised return and volatility over the same sample. | |
| `perf_limit_weights` | Caps every weight at a limit and redistributes the excess to the other assets in proportion to their weights, repeating until none is above it. | No price input. |
| `perf_random_weights` | Draws random portfolio weights within per-asset bounds that sum to a total, to benchmark a strategy's weights against. | No price input. Reproducible with `seed`. |
| `perf_clusters` | Groups assets by the correlation of their returns, with k-means on a two-dimensional map of correlation distances or with the fast threshold clustering algorithm, and answers each cluster's members with their average correlation inside it, and the correlation matrix. | Reproducible with `seed`. |
Inputs, limits and outputs are described in [Fincept Performance](/guides/fincept-performance). Full schemas: `fincept_describe_tool`.
# Portfolio analytics
Source: https://docs.fincept.in/reference/portfolio-lab/analytics
Every return, risk and ratio measure of a portfolio (46 measures incl. CVaR, EVaR, CDaR, EDaR, ulcer index, Gini, Sortino, Calmar), costs, fees and turnover, cumulative return and drawdown paths, return distribution, risk contributions, rolling measures, comparison of many portfolios with Pareto fronts, rebalancing schedules with weight drift, raw return-series measures, asset pre-selection screens, prices to returns, and factor risk and return attribution.
Toolset `pflab_analytics`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_portfolio_analysis` | Every measure of a portfolio with given weights over the history: 46 return, risk and ratio measures (mean, volatility, semi-deviation, CVaR, EVaR, VaR, worst realization, CDaR, EDaR, max and average drawdown, ulcer index, Gini, skew, kurtosis, Sharpe, Sortino, Calmar ...), effective number of assets, diversification ratio, Sharpe-ratio information criterion, turnover and costs versus previous weights, the cumulative return and drawdown paths and the return histogram; optionally the predicted return and volatility under a prior. | |
| `pflab_risk_contribution` | Each asset's contribution to the portfolio's risk for one or more risk measures (Euler decomposition; finite differences for measures without a closed form), with its share of the total. | |
| `pflab_factor_attribution` | Predicted (ex-ante) attribution of a portfolio on a time-series factor model: its volatility and expected return split into systematic and idiosyncratic parts, by factor (exposure, volatility contribution, share of variance, return contribution, standalone volatility, correlation with the portfolio), by factor family, by asset, and by asset and factor. | |
| `pflab_return_measures` | Return and risk measures of each column taken as its own return series (asset, fund or strategy returns, no weights): moments, semi and lower-partial moments, VaR, CVaR, EVaR, entropic risk, worst realization, Gini mean difference and the drawdown measures (max, average, DaR, CDaR, EDaR, ulcer index), per period. | |
| `pflab_rolling_measure` | Any of the 46 measures over a rolling window, for a portfolio (weights) or for each column on its own. | |
| `pflab_prices_to_returns` | Converts price tables to simple or log returns with the cleaning a portfolio needs: dates with too many missing prices dropped, gaps carried forward, early dates before listings dropped, and a benchmark or factor table aligned on the same dates. | |
| `pflab_compare_portfolios` | Compares several portfolios on the same history: every measure for each, their Pareto fronts (non-dominated sorting on the fitness measures), a risk/return scatter on any two measures, the composition of each and their cumulative returns (series + line chart). | |
| `pflab_rebalanced_portfolio` | Evaluates a history of allocations: each rebalance holds its weights from its start until the next one (drifting with returns by default), paying transaction costs on the trades from the previous holdings. | |
| `pflab_pre_selection` | Applies asset pre-selection screens in order and reports which assets each one keeps and drops: highly correlated pairs, zero variance, incomplete histories, the best or worst k by any measure, the Pareto-optimal assets on several measures, or contracts expiring within a lookahead. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Distributions, copulas and stress tests
Source: https://docs.fincept.in/reference/portfolio-lab/distributions
Fitted return distributions per asset (normal, Student t, Johnson SU, normal inverse Gaussian, best by AIC/BIC) with quantiles and Q-Q numbers, bivariate copulas (Gaussian, Student t, Clayton, Gumbel, Joe, independent, rotations) with tail dependence, regular vine copulas, synthetic scenario generation and conditional stress tests of a portfolio.
Toolset `pflab_distributions`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_univariate_distribution` | Fits each asset's returns to a normal, Student t, Johnson SU or normal inverse Gaussian distribution, or selects the best by AIC/BIC. | |
| `pflab_bivariate_copula` | Fits a bivariate copula to two assets' pseudo-observations (ranks): Gaussian, Student t, Clayton, Gumbel or Joe with rotations, or the best by AIC/BIC with an independence test. | |
| `pflab_vine_copula` | Fits a regular vine copula: a marginal distribution per asset and a tree of pair copulas (Gaussian, Student t, Clayton, Gumbel, Joe, independent, with rotations) capturing non-Gaussian and tail dependence, then samples synthetic scenarios, optionally conditioned on some assets' returns. | |
| `pflab_stress_test` | Synthetic stress test: a vine copula fitted to the history is sampled conditionally on the stressed assets' returns, so every other asset moves consistently with the fitted (non-Gaussian, tail-dependent) structure. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Cross-sectional factor lab
Source: https://docs.fincept.in/reference/portfolio-lab/factorlab
Characteristics panels (date x asset fields: returns, market cap, fundamentals, industry ...), 46 descriptors (value, momentum, volatility, beta, size, liquidity, quality, growth, leverage, yield), cross-sectional winsorizing, z-scoring and rank transforms, factor exposures, Barra-style characteristics factor models with factor returns, risk forecasts, diagnostics, attribution and optimisation, cross-sectional regressions, and alpha models with forecast evaluation.
Toolset `pflab_factorlab`: 8 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_panel_describe` | Coverage report of a characteristics panel: per field its type, share missing overall and inside the universe, assets with no data, categorical levels and their sizes, optionally broken down by a text field; with optional forward/backward filling of gaps (e.g. quarterly fundamentals) and shrinking the universe to rows with data. | |
| `pflab_synthetic_panel` | A simulated characteristics panel (returns from a factor structure, market cap, prices and volumes, fundamentals, analyst estimates, short interest, industries, listings and delistings, missing values) in the long layout the factor-lab tools take. | |
| `pflab_descriptors` | Computes descriptors (raw characteristics) for every date and asset of a panel: value ratios, momentum and reversal, volatility, beta and residual risk, size, liquidity, short interest, profitability, growth, leverage and yield, or growth/change/passthrough of any field. | |
| `pflab_cs_transform` | Transforms a field cross-sectionally at every date: winsorizing at quantiles, tanh outlier shrinkage, weighted z-scoring, Gaussian-rank or percentile-rank scaling, optionally within groups (industry-neutral) and weighted (e.g. by market cap). | |
| `pflab_factor_exposures` | Factor exposures at every date: the market (global) factor, one-hot categories (industry, country), and style factors as weighted composites of descriptors, winsorized and z-scored cross-sectionally (optionally within groups). | |
| `pflab_alpha_model` | Alpha research on a characteristics panel: a factor risk model isolates idiosyncratic returns, each alpha model forecasts them from descriptors (fixed weights, exponentially weighted Sharpe-optimal weights, or a ridge/forest/boosting predictor), and the forecasts are evaluated out of sample: information coefficients and their t-statistics, rank- and z-weighted long-short portfolios, quantile spreads, decay over horizons, calibration, coverage and factor correlations, compared across alphas (predictor alphas keep no forecast history and are not evaluated). | |
| `pflab_characteristics_factor_model` | Barra-style characteristics factor model: exposures from descriptors and categories at every date, factor returns by cross-sectional regression of returns on lagged exposures (cap-weighted, robust or GLS), factor covariance and premia, idiosyncratic risk, and asset expected returns and covariance. | |
| `pflab_cs_regression` | Cross-sectional regression at every date of a panel field on other fields (lagged by default), weighted by a field or equally, by least squares, Huber, ridge or lasso: the Fama-MacBeth estimate of each regressor's return. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Hierarchical portfolios
Source: https://docs.fincept.in/reference/portfolio-lab/hierarchical
Hierarchical risk parity, hierarchical equal risk contribution, Schur complementary allocation and nested clusters optimisation over any risk measure, codependence distance (Pearson, Kendall, Spearman, covariance, distance correlation, mutual information) and linkage, with the clustering tree, leaf order, clusters and seriated codependence matrices behind them.
Toolset `pflab_hierarchical`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_hierarchical` | Hierarchical portfolios that need no expected returns and no matrix inversion: HRP, HERC (any of 20 risk measures incl. VaR, drawdown at risk, entropic risk, fourth moments) or Schur complementary allocation, on any prior, codependence distance and linkage. | |
| `pflab_nested_clusters` | Nested clusters optimisation: assets are clustered, a mean-risk optimizer (objective, risk measure, prior) weights the assets inside each cluster, and a second one weights the clusters using their out-of-sample returns from k-fold cross-validation. | |
| `pflab_clustering` | Codependence and distance matrices of the assets (Pearson, Kendall, Spearman, covariance, distance correlation or mutual information), their hierarchical clustering (linkage, number of clusters by the gap statistic or max\_clusters, flat clusters, dendrogram coordinates) and an asset ordering (optimal leaf order or spectral seriation). | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Moment estimators
Source: https://docs.fincept.in/reference/portfolio-lab/moments
Expected returns (sample, exponentially weighted, market equilibrium, James-Stein, Bayes-Stein, Bodnar-Okhrin shrinkage), covariance (sample, EW, Ledoit-Wolf, OAS, shrunk, Gerber, denoised, detoned, graphical lasso, geodesic shrinkage, regime-adjusted EW, implied-volatility), per-asset variance and out-of-sample covariance forecast evaluation (calibration, exceedances, QLIKE).
Toolset `pflab_moments`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_expected_returns` | Expected return per asset by one estimator: sample mean, exponentially weighted mean, market-implied equilibrium returns (reverse optimisation of market weights) or a shrinkage of the mean (James-Stein, Bayes-Stein, Bodnar-Okhrin; with the target and intensity). | |
| `pflab_covariance` | Covariance matrix by one of 13 estimators (sample, EW, Ledoit-Wolf, OAS, fixed shrinkage, Gerber, random-matrix denoising, detoning, cross-validated graphical lasso, geodesic shrinkage, regime-adjusted EW, implied-volatility scaling). | |
| `pflab_variance` | Variance and volatility per asset by the sample, exponentially weighted (RiskMetrics-style) or regime-adjusted EW estimator, with the regime multiplier. | |
| `pflab_covariance_forecast_evaluation` | Out-of-sample quality of covariance forecasts: each estimator forecasts the next test\_size periods, then the realised returns are scored. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Portfolio optimisation
Source: https://docs.fincept.in/reference/portfolio-lab/optimize
Mean-risk optimisation over 15 risk measures and four objectives with any prior (sample moments, Black-Litterman, entropy pooling, factor model, vine-copula scenarios), efficient frontiers, risk budgeting, maximum diversification, distributionally robust CVaR, benchmark tracking, naive portfolios and stacking ensembles, under bounds, budgets, cardinality, group, linear, turnover, tracking-error and risk-limit constraints, costs, fees and worst-case uncertainty sets.
Toolset `pflab_optimize`: 8 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_mean_risk` | Optimal weights for one of 15 risk measures (variance, CVaR, EVaR, CDaR, max drawdown, ulcer index, Gini ...) and an objective (minimum risk, maximum return, maximum utility, maximum return/risk), on any prior (sample or shrunk moments, Black-Litterman, entropy pooling, factor model, vine-copula scenarios), under bounds, budget, cardinality, group/linear constraints, turnover, tracking error, risk limits, costs and worst-case uncertainty sets. | |
| `pflab_efficient_frontier` | The mean-risk efficient frontier for any of the 15 risk measures and any prior and constraints: `points` Pareto-optimal portfolios from minimum risk to maximum return, or one per target return or target risk level (unreachable targets are dropped with a warning). | |
| `pflab_risk_budgeting` | Risk budgeting: weights whose contributions to a risk measure (variance, CVaR, CDaR, max drawdown ... any of the 15) are proportional to risk\_budget (equal by default: risk parity). | |
| `pflab_max_diversification` | The maximum diversification portfolio: weights maximising the diversification ratio (weighted average of asset volatilities over portfolio volatility), under any constraints and prior. | |
| `pflab_naive` | Naive allocations used as baselines: equal weight (1/N), inverse volatility (from any prior's covariance) or a random Dirichlet draw. | |
| `pflab_stacking` | Stacking: several base strategies (any optimizer, prior and constraints) are fitted, their out-of-sample returns (by cross-validation) become the assets of a final optimizer, and the final asset weights are the stack-weighted mix of the base weights. | |
| `pflab_robust_cvar` | Distributionally robust mean-CVaR: maximises expected return minus risk\_aversion x CVaR under the worst distribution within a Wasserstein ball of the scenarios, which guards against estimation error in the return distribution. | |
| `pflab_benchmark_tracker` | The portfolio of the given assets that best tracks a benchmark: minimises the risk (tracking error by default) of the portfolio's return minus the benchmark's, under any constraints. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Fincept Portfolio Lab
Source: https://docs.fincept.in/reference/portfolio-lab/overview
Every Fincept Portfolio Lab module and its toolset.
48 tools in 8 modules, plus `pflab_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Portfolio analytics](/reference/portfolio-lab/analytics) | `pflab_analytics` | Every return, risk and ratio measure of a portfolio (46 measures incl. CVaR, EVaR, CDaR, EDaR, ulcer index, Gini, Sortino, Calmar), costs, fees and turnover, cumulative return and drawdown paths, return distribution, risk contributions, rolling measures, comparison of many portfolios with Pareto fronts, rebalancing schedules with weight drift, raw return-series measures, asset pre-selection screens, prices to returns, and factor risk and return attribution. | 9 |
| [Distributions, copulas and stress tests](/reference/portfolio-lab/distributions) | `pflab_distributions` | Fitted return distributions per asset (normal, Student t, Johnson SU, normal inverse Gaussian, best by AIC/BIC) with quantiles and Q-Q numbers, bivariate copulas (Gaussian, Student t, Clayton, Gumbel, Joe, independent, rotations) with tail dependence, regular vine copulas, synthetic scenario generation and conditional stress tests of a portfolio. | 4 |
| [Cross-sectional factor lab](/reference/portfolio-lab/factorlab) | `pflab_factorlab` | Characteristics panels (date x asset fields: returns, market cap, fundamentals, industry ...), 46 descriptors (value, momentum, volatility, beta, size, liquidity, quality, growth, leverage, yield), cross-sectional winsorizing, z-scoring and rank transforms, factor exposures, Barra-style characteristics factor models with factor returns, risk forecasts, diagnostics, attribution and optimisation, cross-sectional regressions, and alpha models with forecast evaluation. | 8 |
| [Portfolio optimisation](/reference/portfolio-lab/optimize) | `pflab_optimize` | Mean-risk optimisation over 15 risk measures and four objectives with any prior (sample moments, Black-Litterman, entropy pooling, factor model, vine-copula scenarios), efficient frontiers, risk budgeting, maximum diversification, distributionally robust CVaR, benchmark tracking, naive portfolios and stacking ensembles, under bounds, budgets, cardinality, group, linear, turnover, tracking-error and risk-limit constraints, costs, fees and worst-case uncertainty sets. | 8 |
| [Hierarchical portfolios](/reference/portfolio-lab/hierarchical) | `pflab_hierarchical` | Hierarchical risk parity, hierarchical equal risk contribution, Schur complementary allocation and nested clusters optimisation over any risk measure, codependence distance (Pearson, Kendall, Spearman, covariance, distance correlation, mutual information) and linkage, with the clustering tree, leaf order, clusters and seriated codependence matrices behind them. | 3 |
| [Moment estimators](/reference/portfolio-lab/moments) | `pflab_moments` | Expected returns (sample, exponentially weighted, market equilibrium, James-Stein, Bayes-Stein, Bodnar-Okhrin shrinkage), covariance (sample, EW, Ledoit-Wolf, OAS, shrunk, Gerber, denoised, detoned, graphical lasso, geodesic shrinkage, regime-adjusted EW, implied-volatility), per-asset variance and out-of-sample covariance forecast evaluation (calibration, exceedances, QLIKE). | 4 |
| [Priors and views](/reference/portfolio-lab/priors) | `pflab_priors` | The return distribution behind an optimisation: sample or shrunk moments with log-normal projection, Black-Litterman views, entropy pooling views on means, variances, correlations, skews, kurtosis, VaR and CVaR (on history or synthetic scenarios), opinion pooling of several experts, time-series factor models, vine-copula synthetic scenarios, and the uncertainty sets of robust optimisation. | 6 |
| [Validation and tuning](/reference/portfolio-lab/validation) | `pflab_validation` | Out-of-sample testing of whole portfolio pipelines: walk-forward backtests with calendar rebalancing, purging and sequential costs and turnover, strategy comparison on the same periods, combinatorial purged cross-validation (distribution of out-of-sample Sharpe over many paths), multiple randomized CV, CV planning (optimal number of folds), grid and randomized hyper-parameter search, and online learning backtests and searches. | 6 |
# Priors and views
Source: https://docs.fincept.in/reference/portfolio-lab/priors
The return distribution behind an optimisation: sample or shrunk moments with log-normal projection, Black-Litterman views, entropy pooling views on means, variances, correlations, skews, kurtosis, VaR and CVaR (on history or synthetic scenarios), opinion pooling of several experts, time-series factor models, vine-copula synthetic scenarios, and the uncertainty sets of robust optimisation.
Toolset `pflab_priors`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_prior` | The return distribution a prior produces, exactly as the optimizers see it: sample/shrunk moments (optionally log-normal over an investment horizon), Black-Litterman, entropy pooling, a time-series factor model or vine-copula synthetic scenarios (optionally stressed). | |
| `pflab_black_litterman` | Black-Litterman: blends the prior expected returns (market-implied equilibrium by default) with absolute, relative or group views, each with an optional Idzorek confidence. | |
| `pflab_factor_model` | Time-series factor model: each asset's returns are regressed on the factor returns (OLS, ridge or sparse lasso), giving loadings (betas) and idiosyncratic risk; expected returns = loadings x factor premia and covariance = loadings x factor covariance x loadings' + idiosyncratic variance. | |
| `pflab_uncertainty_set` | Uncertainty sets for robust (worst-case) optimisation: an ellipsoid around the expected returns or the covariance, sized at a confidence level from asymptotics or a block bootstrap, or confined to the directions a factor model cannot explain. | |
| `pflab_entropy_pooling` | Entropy pooling: finds the scenario probabilities closest (least relative entropy) to the prior's that satisfy views on means, variances, correlations, skews, kurtosis, VaR and CVaR (equalities, inequalities, rankings, multiples of the prior, groups), on the history or on vine-copula synthetic scenarios. | |
| `pflab_opinion_pooling` | Opinion pooling: each expert's views become an entropy-pooling distribution, and the experts are pooled (linear or logarithmic) with their probabilities, optionally penalising experts that diverge from the consensus. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Validation and tuning
Source: https://docs.fincept.in/reference/portfolio-lab/validation
Out-of-sample testing of whole portfolio pipelines: walk-forward backtests with calendar rebalancing, purging and sequential costs and turnover, strategy comparison on the same periods, combinatorial purged cross-validation (distribution of out-of-sample Sharpe over many paths), multiple randomized CV, CV planning (optimal number of folds), grid and randomized hyper-parameter search, and online learning backtests and searches.
Toolset `pflab_validation`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pflab_walk_forward` | Walk-forward backtest of a whole pipeline (pre-selection steps, any optimizer, prior and constraints): refit on each training window, hold until the next rebalance (every test\_size periods or on a calendar such as month starts), with purging, expanding windows, and costs and turnover limits applied from one rebalance to the next. | |
| `pflab_compare_strategies` | Runs several strategies (pipelines with any optimizer, prior, constraints and pre-selection) through the same walk-forward periods and ranks them by an out-of-sample measure. | |
| `pflab_combinatorial_cv` | Combinatorial purged cross-validation of a pipeline: the history is cut into folds, every combination of test folds is predicted out of sample (with purging and embargo), and the predictions are recombined into many full backtest paths, giving a distribution of out-of-sample results instead of one walk-forward path (or multiple randomized CV on random asset subsets and windows). | |
| `pflab_cv_plan` | Plans cross-validation without fitting anything: the number of folds and test folds that best match a target training size and number of backtest paths, the resulting combinatorial design (splits, paths, average training size, which folds are train or test in each split), and, when data is given, the walk-forward train/test windows with their dates (rebalance calendar). | |
| `pflab_grid_search` | Cross-validated hyper-parameter search of a pipeline: every combination of the grid (or n\_iter random ones) is scored by an out-of-sample portfolio measure on walk-forward or k-fold splits. | |
| `pflab_online_backtest` | Online backtest: after a warmup the pipeline's estimators are updated incrementally with each new period (no refitting from scratch) and the portfolio is rebalanced every test\_size periods or on a calendar. | |
Inputs, limits and outputs are described in [Fincept Portfolio Lab](/guides/fincept-portfolio-lab). Full schemas: `fincept_describe_tool`.
# Discrete allocation
Source: https://docs.fincept.in/reference/portfolio-optimizer/allocation
Whole-share orders from target weights: latest prices from a price history or given, a portfolio value, greedy rounding or integer programming, long/short with a short ratio and optional reinvestment of short proceeds; the leftover cash and the error against the targets.
Toolset `pfopt_allocation`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_discrete_allocation` | Whole-share allocation of a portfolio value to target weights at the latest prices: greedy rounding or an integer program that minimises the gap to the targets plus the leftover cash; long/short weights are split into a long and a short book (short\_ratio, reinvest). | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Portfolio analytics
Source: https://docs.fincept.in/reference/portfolio-optimizer/analytics
Performance of given weights: expected return, volatility, Sharpe, semideviation and Sortino, each asset's risk contribution, and the value of every optimisation objective (variance, return, Sharpe, L2, quadratic utility, transaction cost, ex-ante and ex-post tracking error); cleaned weights.
Toolset `pfopt_analytics`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_portfolio_performance` | Evaluates given weights: expected annual return, volatility and Sharpe ratio, semideviation and Sortino ratio (with a history), each asset's share of portfolio risk, and the value of every optimisation objective at these weights: variance, return, Sharpe, L2, quadratic utility, transaction cost against previous\_weights, ex-ante tracking error against benchmark\_weights and ex-post tracking error against the benchmark series. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Black-Litterman
Source: https://docs.fincept.in/reference/portfolio-optimizer/black-litterman
Black-Litterman allocation: a market-implied (or equal, estimated, given) prior of returns blended with absolute and relative views, view confidences (Idzorek), view uncertainty and tau into posterior returns and covariance; implied, max-Sharpe, min-volatility or max-utility weights; the market-implied risk aversion and prior returns from market caps.
Toolset `pfopt_black_litterman`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_black_litterman` | Black-Litterman: combines a prior of annual returns with absolute and relative views into posterior expected returns and covariance, the views weighted by their uncertainty (proportional to variance, from percentage confidences by Idzorek's method, or given). | |
| `pfopt_market_implied` | The market-implied risk aversion δ = (market return - risk-free) / market variance from a benchmark index's prices, and with market caps the equilibrium prior returns Π = δ Σ w\_mkt + risk-free that make the market portfolio optimal. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Critical line algorithm
Source: https://docs.fincept.in/reference/portfolio-optimizer/cla
Markowitz's critical line algorithm: the exact mean-variance frontier under per-asset bounds through its turning points, the max-Sharpe and min-volatility portfolios and the frontier curve.
Toolset `pfopt_cla`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_cla` | The critical line algorithm: solves the bounded, fully invested mean-variance problem exactly, returning every turning point (corner portfolio) with its return, volatility and weights, the frontier curve between them (series + line chart), and the max-Sharpe or min-volatility weights with their performance. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Downside-risk optimisation
Source: https://docs.fincept.in/reference/portfolio-optimizer/downside
Portfolios that control losses instead of variance, from historical return scenarios: mean-semivariance (downside deviation below a threshold, Sortino ratio), mean-CVaR (expected shortfall at a confidence level) and mean-CDaR (conditional drawdown at risk, with the drawdown curve); minimum risk, target risk, target return and downside quadratic utility.
Toolset `pfopt_downside`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_semivariance` | Mean-semivariance optimal weights from a price (or returns) history: only returns below semi\_benchmark count as risk. | |
| `pfopt_cvar` | Mean-CVaR optimal weights from historical return scenarios: CVaR (expected shortfall) is the average loss in the worst (1 - beta) share of periods, per period (daily for daily data). | |
| `pfopt_cdar` | Mean-CDaR optimal weights from a price (or returns) history: CDaR is the average of the worst (1 - beta) share of drawdowns of the cumulative (summed) portfolio return. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Return and risk estimates
Source: https://docs.fincept.in/reference/portfolio-optimizer/estimates
Annual expected returns (mean historical, exponentially weighted, CAPM) and covariance matrices (sample, semicovariance, exponential, minimum covariance determinant, manual, Ledoit-Wolf and oracle shrinkage), correlation, conversions between prices and returns, and positive-semidefinite repair.
Toolset `pfopt_estimates`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_expected_returns` | Annual expected return of each asset from a price (or returns) history: mean historical return (geometric CAGR with compounding, else arithmetic), exponentially weighted mean (recent periods weigh more) or CAPM (risk-free rate plus beta times the market premium, the market being the benchmark series or the equal-weighted assets). | |
| `pfopt_risk_model` | Annual covariance matrix of the assets from a price (or returns) history by the chosen risk model, with the correlation matrix, each asset's annual volatility and, for shrinkage estimators, the shrinkage intensity. | |
| `pfopt_returns_prices` | Periodic simple or log returns from a price history, or pseudo-prices (growth of one unit, first row = 1) from a returns history. | |
| `pfopt_matrix_transform` | Converts a covariance matrix to correlations, a correlation matrix plus standard deviations to a covariance, or repairs a matrix that is not positive semidefinite (spectral clipping or a diagonal shift). | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Hierarchical risk parity
Source: https://docs.fincept.in/reference/portfolio-optimizer/hrp
Hierarchical risk parity: cluster the assets by correlation distance (single, complete, average, weighted, centroid, median or Ward linkage), order them along the tree and split risk by recursive bisection; returns the weights, performance, linkage, dendrogram and clustered correlation heatmap.
Toolset `pfopt_hrp`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_hrp` | Hierarchical risk parity weights from a price (or returns) history, or from a covariance matrix alone: the assets are clustered by correlation distance, ordered along the tree and risk is split between sub-clusters by inverse variance, needing no expected returns and no matrix inversion. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Mean-variance optimisation
Source: https://docs.fincept.in/reference/portfolio-optimizer/mean-variance
Efficient-frontier portfolios: max Sharpe (tangency), min volatility, max quadratic utility, max return for a target volatility and min volatility for a target return, long-only or long/short, market neutral, with per-asset, sector and linear constraints and L2, transaction-cost and tracking-error terms; the efficient frontier curve with random portfolios; custom convex and nonconvex objectives (log-barrier risk budgeting, index tracking, risk parity).
Toolset `pfopt_mean_variance`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pfopt_mean_variance` | Mean-variance optimal weights from a price history (or given expected returns and covariance): max Sharpe, min volatility, max quadratic utility, max return for a target volatility, or min volatility for a target return, with bounds, shorting, market neutrality, sector/group and linear constraints and L2, transaction-cost and tracking-error penalties. | |
| `pfopt_convex_objective` | Minimises one convex objective from a fixed set under the same bounds, sector and linear constraints and penalty terms as pfopt\_mean\_variance: a log-barrier risk-budgeting portfolio, or the portfolio closest to a benchmark by ex-ante (weights and covariance) or ex-post (historical returns) tracking error. | |
| `pfopt_nonconvex_objective` | Optimises an objective from a fixed set with a local gradient method, which admits nonconvex objectives and constraints (equal risk contribution, an exact volatility target, market neutrality with a Sharpe or return objective) but may stop at a local optimum. | |
| `pfopt_efficient_frontier` | The mean-variance efficient frontier under the given bounds and constraints: annual volatility against expected return (and Sharpe) at each point with the weights of every frontier portfolio, the tangency (max Sharpe) and minimum-volatility portfolios, each asset's own risk and return, and random portfolios. | |
Inputs, limits and outputs are described in [Fincept Portfolio Optimizer](/guides/fincept-portfolio-optimizer). Full schemas: `fincept_describe_tool`.
# Fincept Portfolio Optimizer
Source: https://docs.fincept.in/reference/portfolio-optimizer/overview
Every Fincept Portfolio Optimizer module and its toolset.
17 tools in 8 modules, plus `pfopt_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Discrete allocation](/reference/portfolio-optimizer/allocation) | `pfopt_allocation` | Whole-share orders from target weights: latest prices from a price history or given, a portfolio value, greedy rounding or integer programming, long/short with a short ratio and optional reinvestment of short proceeds; the leftover cash and the error against the targets. | 1 |
| [Portfolio analytics](/reference/portfolio-optimizer/analytics) | `pfopt_analytics` | Performance of given weights: expected return, volatility, Sharpe, semideviation and Sortino, each asset's risk contribution, and the value of every optimisation objective (variance, return, Sharpe, L2, quadratic utility, transaction cost, ex-ante and ex-post tracking error); cleaned weights. | 1 |
| [Black-Litterman](/reference/portfolio-optimizer/black-litterman) | `pfopt_black_litterman` | Black-Litterman allocation: a market-implied (or equal, estimated, given) prior of returns blended with absolute and relative views, view confidences (Idzorek), view uncertainty and tau into posterior returns and covariance; implied, max-Sharpe, min-volatility or max-utility weights; the market-implied risk aversion and prior returns from market caps. | 2 |
| [Critical line algorithm](/reference/portfolio-optimizer/cla) | `pfopt_cla` | Markowitz's critical line algorithm: the exact mean-variance frontier under per-asset bounds through its turning points, the max-Sharpe and min-volatility portfolios and the frontier curve. | 1 |
| [Downside-risk optimisation](/reference/portfolio-optimizer/downside) | `pfopt_downside` | Portfolios that control losses instead of variance, from historical return scenarios: mean-semivariance (downside deviation below a threshold, Sortino ratio), mean-CVaR (expected shortfall at a confidence level) and mean-CDaR (conditional drawdown at risk, with the drawdown curve); minimum risk, target risk, target return and downside quadratic utility. | 3 |
| [Return and risk estimates](/reference/portfolio-optimizer/estimates) | `pfopt_estimates` | Annual expected returns (mean historical, exponentially weighted, CAPM) and covariance matrices (sample, semicovariance, exponential, minimum covariance determinant, manual, Ledoit-Wolf and oracle shrinkage), correlation, conversions between prices and returns, and positive-semidefinite repair. | 4 |
| [Hierarchical risk parity](/reference/portfolio-optimizer/hrp) | `pfopt_hrp` | Hierarchical risk parity: cluster the assets by correlation distance (single, complete, average, weighted, centroid, median or Ward linkage), order them along the tree and split risk by recursive bisection; returns the weights, performance, linkage, dendrogram and clustered correlation heatmap. | 1 |
| [Mean-variance optimisation](/reference/portfolio-optimizer/mean-variance) | `pfopt_mean_variance` | Efficient-frontier portfolios: max Sharpe (tangency), min volatility, max quadratic utility, max return for a target volatility and min volatility for a target return, long-only or long/short, market neutral, with per-asset, sector and linear constraints and L2, transaction-cost and tracking-error terms; the efficient frontier curve with random portfolios; custom convex and nonconvex objectives (log-barrier risk budgeting, index tracking, risk parity). | 4 |
# Bonds
Source: https://docs.fincept.in/reference/pricing/bonds
Fixed, zero-coupon, amortizing and floating-rate bonds (term, overnight and CMS indexes, caps and floors), callable and puttable bonds on short-rate trees, convertible bonds, bond forwards and asset swaps: clean/dirty price, yield, z-spread, option-adjusted spread, durations, convexity, BPS and cash flows.
Toolset `pricing_bonds`: 7 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_bond` | Prices a fixed-rate, zero-coupon, step-up or amortizing bond from its clean or dirty price, its yield, or a discount curve plus z-spread, and returns clean and dirty price, accrued interest, yield to maturity, z-spread over the curve, Macaulay/modified/simple duration, convexity, BPS, price value of a basis point and the cash-flow table with discount factors. | |
| `pricing_floating_bond` | Prices a floating-rate note: coupons on a term index (Euribor, Term SOFR-style IBOR), compounded overnight index (SOFR, ESTR, SONIA ...) or a constant-maturity swap rate, with margin, gearing, optional cap and floor, amortizing notionals, past fixings. | |
| `pricing_callable_bond` | Prices a callable or puttable bond (fixed or zero coupon, Bermudan call/put schedule) on a short-rate tree (Hull-White, Black-Karasinski, G2, Vasicek, CIR, extended CIR) fitted to the curve, or with Black's model on the forward yield. | |
| `pricing_convertible_bond` | Prices a convertible bond (fixed, zero or floating coupon; conversion at any time; issuer calls including soft calls with a stock-price trigger; holder puts) on a binomial tree of the underlying stock (CRR, Jarrow-Rudd, additive EQP, Trigeorgis, Tian, Leisen-Reimer, Joshi) with an issuer credit spread and discrete dividends. | |
| `pricing_bond_forward` | Forward on a fixed-coupon bond: the forward dirty and clean price for delivery on forward\_date (spot bond value less the present value of coupons paid before delivery, carried at the repo curve), and the value of a forward contract struck at strike. | |
| `pricing_asset_swap` | Asset swap on a fixed-coupon bond: the floating spread over the index that makes the package (bond bought at clean\_price, coupons swapped into index + spread) worth par (par asset swap) or its market value. | |
| `pricing_cashflows` | Analytics of a stream of cash flows given explicitly (date, amount) or generated (fixed coupons, term-index or overnight-index floaters): NPV on a curve or at a yield, the internal rate of return (yield) that matches a target NPV with the library's or a chosen 1-D solver (Brent, bisection, false position, Ridder, secant, Newton, safe Newton), the z-spread over a curve, BPS, at-the-money rate, Macaulay/modified duration and convexity. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Credit
Source: https://docs.fincept.in/reference/pricing/credit
Default-probability curves bootstrapped from CDS spreads or upfronts (or given as hazard rates, survival probabilities or densities), credit default swaps (fair spread, upfront, RPV01, implied hazard, midpoint/ISDA/integral engines), CDS options and bonds priced with default risk.
Toolset `pricing_credit`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_credit_curve` | Builds a default-probability curve from CDS par spreads or upfront quotes (bootstrapped to piecewise-flat hazard rates, midpoint or ISDA model) or from hazard rates, survival probabilities or default densities, and reports survival probability, cumulative default probability, hazard rate and default density over time, plus each quote's repriced value. | |
| `pricing_cds` | Prices a credit default swap on standard (CDS2015) dates or a given maturity: NPV, fair (par) spread, fair upfront, premium leg and protection leg values, RPV01 (premium leg BPS), accrual rebate, the flat hazard rate implied by the NPV, and the conventional (quoted) spread, with the midpoint, ISDA standard or integral engine. | |
| `pricing_cds_option` | Black model for an option to enter a CDS at expiry (payer: buy protection at the strike spread; receiver: sell), knock-out on default before expiry or not. | |
| `pricing_risky_bond` | Prices a fixed-rate bond with default risk: coupons and principal weighted by survival probability, plus the recovery paid on default, discounted on the risk-free curve. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Yield curves
Source: https://docs.fincept.in/reference/pricing/curves
Bootstrapped yield curves from deposits, FRAs, futures, swaps, OIS, bonds and basis swaps with every interpolation; curves from zero rates, discount factors, forwards or par yields; evaluation of zero, discount and forward rates; spreaded, implied, composite and ultimate-forward curves; Nelson-Siegel, Svensson, spline and polynomial curves fitted to bond prices.
Toolset `pricing_curves`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_yield_curve` | Bootstraps a yield curve that reprices market instruments exactly: deposits, FRAs, IMM and overnight (SOFR) futures, fixed-float swaps, OIS, multiple-resets swaps, fixed-coupon, par and zero-coupon bonds, and Ibor/Ibor or OIS/Ibor basis swaps over a known curve, with any piecewise method (zero, discount or forward interpolation, monotone convex, global fit), dual-curve discounting or as a spread over a base curve. | |
| `pricing_curve_query` | Evaluates any yield curve (flat, points with any interpolation, par yields, or data.curve from a curve tool) at dates or tenors: zero rate and discount factor, the instantaneous forward rate, and the forward rate over forward\_tenor from each date (1y1y, 5y5y). | |
| `pricing_bond_curve_fit` | Fits a smooth discount curve to bond clean prices (Nelson-Siegel, Svensson, exponential splines, cubic B-splines, simple polynomial, optionally as a spread over a base curve), or evaluates a curve from known parameters such as a central bank's published Svensson parameters. | |
| `pricing_index` | Describes an interest-rate index (family, tenor, fixing days, calendar, currency, day count, convention) and, for given fixing dates, the value and maturity dates and the fixing: the stored past fixing on or before the valuation date, or the rate forecast on the curve after it. | |
| `pricing_curve_spread` | Derives a curve from a base curve: a parallel zero or forward spread, a term structure of zero, forward or discount spreads with any interpolation, the forward curve implied at a future date, the combination of two curves (sum, difference, max, min, average of zero rates), or the ultimate-forward-rate extrapolation of insurance regulation. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Dates, calendars and schedules
Source: https://docs.fincept.in/reference/pricing/dates
Business-day calendars of every market (joint and custom ones), holiday lists, date adjustment and advancing, business-day counts, day count conventions and year fractions, coupon schedules with every date-generation rule, IMM/ASX/ECB dates, CDS maturities and tenor arithmetic.
Toolset `pricing_dates`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_calendar` | Business-day calendar of any market (77 country/exchange calendars, joined or custom): test dates, roll them with a business-day convention, advance them by business days or tenors, count business days between pairs, list holidays or business days over a range, or the first/last business day of the month. | |
| `pricing_day_count` | Year fractions and day counts between date pairs under one or several day count conventions side by side (Actual/360, Actual/365 Fixed and its Canadian/no-leap variants, Actual/Actual ISDA/ISMA/Bond/AFB/Euro, every 30/360 variant, Business/252 on a calendar, 1/1, simple), or the date a year fraction after a start date. | |
| `pricing_schedule` | Coupon or payment schedule: dates from effective to termination at a frequency or tenor, on a calendar with a business-day convention and a date-generation rule (backward, forward, IMM third Wednesdays, twentieth, CDS, CDS2015, zero), with front/back stubs, end-of-month rolling and truncation; or from explicit dates; or a sinking-fund schedule with the amortizing notional per period. | |
| `pricing_date_tools` | Date maths for rates and futures: IMM and ASX futures dates and codes (next dates, test, code \<-> date), ECB reserve-maintenance dates, the n-th weekday of a month (third Friday expiries), the next weekday, a date plus tenors, actual days between dates, date facts (weekday, leap year, month end, serial number), tenor normalisation and frequency, and standard CDS maturities. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Inflation
Source: https://docs.fincept.in/reference/pricing/inflation
Zero-coupon and year-on-year inflation curves from swap quotes or breakevens over published CPI/RPI/HICP fixings with seasonality, projected index levels, zero-coupon / year-on-year / CPI swaps, inflation-linked bonds (TIPS, linkers: real yield, index ratio) and year-on-year caps and floors.
Toolset `pricing_inflation`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_inflation_curve` | Builds a zero-coupon (or year-on-year) inflation curve from swap quotes, breakevens or rates on top of the index's published fixings (optionally with monthly seasonality), and reports the projected index level, the zero inflation rate and the year-on-year rate at each date, with the lagged reference index used by swaps and linkers. | |
| `pricing_inflation_swap` | Prices inflation swaps on the inflation curve and nominal discount curve: zero-coupon inflation swaps (index growth vs (1+K)^T - 1), year-on-year inflation swaps (annual YoY rate vs fixed), and CPI swaps (inflation- indexed fixed leg with notional vs a floating leg). | |
| `pricing_inflation_bond` | Inflation-linked bond on the market's real-yield convention (US TIPS, UK linkers, OATi/OAT€i): the index ratio from the lagged reference index, real clean/dirty price from a real yield (or the real yield from a real price), inflation-adjusted (nominal) prices, real duration and convexity; with an inflation curve and nominal curve it also prices the projected nominal cash flows. | |
| `pricing_inflation_capfloor` | Prices a year-on-year inflation cap, floor or collar (annual optionlets on the YoY index change, e.g. a 0% deflation floor) with Black, unit-displaced Black or Bachelier optionlets at a flat volatility, on the inflation and nominal curves (a year-on-year curve is implied from zero-coupon quotes when needed). | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Numerical tools
Source: https://docs.fincept.in/reference/pricing/math
Interpolation (linear to monotone cubic, Kruger, Fritsch-Butland, parabolic, convex-monotone, Lagrange, Chebyshev, bilinear, bicubic), integration and Gaussian quadrature, probability distributions, statistics and risk measures, matrix decompositions and solvers, pseudo-random and low-discrepancy sequences, Monte Carlo paths of stochastic processes, least-squares fits and historical volatility.
Toolset `pricing_math`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_interpolation` | Interpolates tabulated data: 1-D with any of the library's schemes (linear and log-linear, flat, natural and monotone cubic splines, Kruger, Fritsch-Butland, parabolic, convex-monotone, Lagrange, Chebyshev) returning the value, first and second derivative and primitive at each point; or 2-D (bilinear, bicubic spline) over a grid. | |
| `pricing_integration` | Numerical integration of tabulated data: the integral of an interpolated table over an interval with an adaptive or Gaussian integrator (e.g. integrating instantaneous forward rates gives -log of the discount factor), a discounted tail to infinity by exp-sinh, the expectation of the tabulated function of a normal variable by Gauss-Hermite, or the nodes and weights of any Gaussian rule (Legendre, Chebyshev, Gegenbauer, Hermite, hyperbolic, Jacobi, Laguerre). | |
| `pricing_least_squares_fit` | Fits a parametric curve to (x, y) points by minimising the sum of squared residuals with a chosen optimiser (Nelder-Mead simplex, BFGS, bounded L-BFGS-B, conjugate gradient, steepest descent, differential evolution within box bounds) under no, positivity or box constraints: Nelson-Siegel and Svensson yield curves, polynomials, exponentials, power laws. | |
| `pricing_historical_vol` | Historical volatility from price bars: close-to-close (rolling window) or the range-based Garman-Klass estimators (five variants) and Parkinson's high-low estimator, annualised. | |
| `pricing_random_numbers` | Random numbers from the library's generators: uniform or Gaussian scalars (Mersenne Twister, Knuth, L'Ecuyer, Xoshiro256\*\* with Box-Muller, central limit, inverse cumulative, Moro or ziggurat transforms), vector sequences (pseudo-random, Sobol with any direction integers, scrambled Sobol, Halton; uniform or Gaussian), and Brownian-bridge paths. | |
| `pricing_process_paths` | Simulates Monte Carlo paths of a stochastic process on a time grid (pseudo-random or Sobol, optional Brownian bridge): Black-Scholes, geometric Brownian motion, Heston, Bates, GJR-GARCH, Ornstein-Uhlenbeck, Hull-White (spot or forward measure), G2++, GSR. | |
| `pricing_distribution` | Probability distribution functions: density, cumulative probability and inverse (quantile) of the normal (Acklam or Moro inverse), Student t, chi-square and non-central chi-square, gamma, Poisson and binomial distributions, the bivariate normal cumulative probability (three algorithms) and the log-gamma function. | |
| `pricing_statistics` | Sample statistics and risk measures of a series (returns, P\&L): count, mean, variance, standard deviation, error estimate, skewness, kurtosis, min, max, semi and downside deviation, value at risk, expected shortfall and potential upside at confidence levels (Gaussian on the moments), shortfall probability, average shortfall and regret below a target; or, for several columns, each column's moments with the covariance and correlation matrices. | |
| `pricing_matrix` | Linear algebra on a matrix given by rows, or on the covariance/correlation of data columns: Cholesky factor, salvaged pseudo square root (spectral, hypersphere, lower diagonal, Higham, principal), singular value decomposition, symmetric eigen decomposition (principal components with explained variance), inverse, transpose, covariance from volatilities and correlations, outer product, and A x = b by Cholesky, BiCGstab or GMRES. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Models and calibration
Source: https://docs.fincept.in/reference/pricing/models
Heston, Bates, piecewise time-dependent Heston and GJR-GARCH calibrated to option volatilities; Hull-White, Black-Karasinski, G2++, Vasicek, CIR, extended CIR and GSR calibrated to swaption and cap volatilities; zero-coupon bond prices, bond options and short-rate statistics under a short-rate model.
Toolset `pricing_models`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_heston_calibration` | Calibrates a Heston (or Bates, piecewise time-dependent Heston, GJR-GARCH) model to implied-volatility quotes by expiry and strike with a chosen optimiser, optionally holding some parameters fixed. | |
| `pricing_short_rate_calibration` | Calibrates a short-rate model (Hull-White, Black-Karasinski, G2++, Vasicek, CIR, extended CIR, or GSR step volatilities) to ATM swaption and cap volatilities (normal or lognormal) on the curve, with a chosen optimiser and optionally fixed parameters. | |
| `pricing_short_rate_model` | Analytics of a short-rate model with given parameters: model discount factors and zero yields at maturities (the curve for fitted models, the model's own curve for Vasicek and CIR), European options on zero-coupon bonds, the Hull-White futures convexity bias, and the mean and standard deviation of the short rate over time for Hull-White. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Equity and FX options
Source: https://docs.fincept.in/reference/pricing/options
Vanilla and exotic options on one or several underlyings: European, American, Bermudan; barrier, double barrier, Asian, lookback, digital, compound, chooser, extensible, forward-start, cliquet, basket, spread, exchange, quanto and swing options; Black-Scholes, Heston, Bates, SABR, CEV, variance gamma, GJR-GARCH and hybrid models; Greeks, implied volatility and closed-form Black/Bachelier tools.
Toolset `pricing_options`: 14 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_vanilla_option` | Prices a European, American or Bermudan call or put on a stock, index, FX rate or commodity under Black-Scholes-Merton (flat volatility or a strike x expiry surface; continuous yield and discrete dividends; FX with rate = domestic and dividend\_yield = foreign rate) with any engine: analytic, dividend models, integral, American approximations, binomial trees, finite differences, Monte Carlo. | |
| `pricing_barrier_option` | Prices a single-barrier option (up/down, in/out, with rebate; vanilla, cash-or-nothing or asset-or-nothing payoff) under Black-Scholes (analytic, finite differences, binomial, Monte Carlo), Heston (finite differences), or the FX vanna-volga smile method; also partial-time barriers (monitored only in part of the life) and soft barriers. | |
| `pricing_double_barrier_option` | Prices a double-barrier option (knock-in, knock-out, KIKO, KOKI; vanilla or binary payoff, double no-touch with analytic\_binary) under Black-Scholes (Ikeda-Kunitomo, Suo-Wang, binomial), Heston (finite differences) or FX vanna-volga. | |
| `pricing_digital_option` | Prices digital options: European cash-or-nothing, asset-or-nothing, gap and supershare payoffs in closed form, and American one-touch (paid at hit or at expiry) and knock-out touch digitals analytically or by Monte Carlo. | |
| `pricing_compound_option` | Options on options and options with choices: compound options (call or put on a call or put), simple and complex choosers, holder- and writer-extensible options in closed form, and shout options by finite differences. | |
| `pricing_forward_start_option` | Prices forward-start options (strike fixed as a fraction of the spot on a future reset date) under Black-Scholes or Heston (analytic or Monte Carlo), cliquet (ratchet) options and performance options over a series of reset dates. | |
| `pricing_black_formula` | Closed-form option maths on a forward: Black-76 (lognormal), shifted lognormal and Bachelier (normal) prices with every Greek (delta, gamma, vega, theta, rho, vanna, volga, elasticity, strike Greeks, in-the-money probabilities) across strikes; implied volatilities from prices by Newton, Li's rational method or Choi's normal-vol formula; and FX delta conventions (spot, forward, premium-adjusted; ATM delta-neutral, forward, 50-delta) turning deltas into strikes. | |
| `pricing_implied_vol` | Implied Black-Scholes volatility of each quoted option (European in closed form, American on a finite- difference grid) given the spot, rate and dividend curves and discrete dividends. | |
| `pricing_option_models` | Prices a European (or, with finite differences, American) vanilla option under a chosen model: Heston with any characteristic-function integration and formulation, COS, exponential fitting, density, finite differences or Monte Carlo; Bates; piecewise time-dependent Heston; GJR-GARCH; variance gamma (analytic, FFT); CEV; SABR; Ornstein-Uhlenbeck; Black-Scholes or Heston with Hull-White stochastic rates. | |
| `pricing_basket_option` | Options on several underlyings, each with its own spot, volatility and yield curves, correlated: weighted baskets, spreads (Kirk, Bjerksund-Stensland, operator splitting, Gaussian copula, Pearson, Deng-Li-Zhou, Choi, 2-D finite differences, Monte Carlo), best/worst-of (Stulz, finite differences, Monte Carlo incl. American), exchange options (Margrabe, European and American), two-asset correlation and two-asset barrier options, Everest and Himalaya options. | |
| `pricing_quanto_option` | Quanto option: an option on an underlying quoted in a foreign currency paid in the domestic currency at a fixed exchange rate of one; market.rate\_curve is the domestic (payout) curve, foreign\_curve the underlying's currency curve. | |
| `pricing_asian_option` | Prices an Asian option on the arithmetic or geometric average of the price, average-price (vs a strike) or average-strike, with discrete fixings (dates or a frequency, past fixings included) or continuous averaging, under Black-Scholes (closed-form geometric, Turnbull-Wakeman, Levy, Choi, finite differences, Monte Carlo) or Heston (closed-form geometric, Monte Carlo). | |
| `pricing_lookback_option` | Prices a continuously monitored lookback option in closed form: fixed strike (payoff on the maximum or minimum vs a strike), floating strike (final price vs the minimum or maximum), and their partial-period versions. | |
| `pricing_swing_option` | Prices a swing option: up to max\_rights (at least min\_rights) exercises of a call, put or forward payoff on a set of dates, by finite differences under Black-Scholes or under a mean-reverting log price with jumps (for spot gas and power). | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Fincept Pricing
Source: https://docs.fincept.in/reference/pricing/overview
Every Fincept Pricing module and its toolset.
66 tools in 12 modules, plus `pricing_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Bonds](/reference/pricing/bonds) | `pricing_bonds` | Fixed, zero-coupon, amortizing and floating-rate bonds (term, overnight and CMS indexes, caps and floors), callable and puttable bonds on short-rate trees, convertible bonds, bond forwards and asset swaps: clean/dirty price, yield, z-spread, option-adjusted spread, durations, convexity, BPS and cash flows. | 7 |
| [Credit](/reference/pricing/credit) | `pricing_credit` | Default-probability curves bootstrapped from CDS spreads or upfronts (or given as hazard rates, survival probabilities or densities), credit default swaps (fair spread, upfront, RPV01, implied hazard, midpoint/ISDA/integral engines), CDS options and bonds priced with default risk. | 4 |
| [Yield curves](/reference/pricing/curves) | `pricing_curves` | Bootstrapped yield curves from deposits, FRAs, futures, swaps, OIS, bonds and basis swaps with every interpolation; curves from zero rates, discount factors, forwards or par yields; evaluation of zero, discount and forward rates; spreaded, implied, composite and ultimate-forward curves; Nelson-Siegel, Svensson, spline and polynomial curves fitted to bond prices. | 5 |
| [Dates, calendars and schedules](/reference/pricing/dates) | `pricing_dates` | Business-day calendars of every market (joint and custom ones), holiday lists, date adjustment and advancing, business-day counts, day count conventions and year fractions, coupon schedules with every date-generation rule, IMM/ASX/ECB dates, CDS maturities and tenor arithmetic. | 4 |
| [Inflation](/reference/pricing/inflation) | `pricing_inflation` | Zero-coupon and year-on-year inflation curves from swap quotes or breakevens over published CPI/RPI/HICP fixings with seasonality, projected index levels, zero-coupon / year-on-year / CPI swaps, inflation-linked bonds (TIPS, linkers: real yield, index ratio) and year-on-year caps and floors. | 4 |
| [Numerical tools](/reference/pricing/math) | `pricing_math` | Interpolation (linear to monotone cubic, Kruger, Fritsch-Butland, parabolic, convex-monotone, Lagrange, Chebyshev, bilinear, bicubic), integration and Gaussian quadrature, probability distributions, statistics and risk measures, matrix decompositions and solvers, pseudo-random and low-discrepancy sequences, Monte Carlo paths of stochastic processes, least-squares fits and historical volatility. | 9 |
| [Models and calibration](/reference/pricing/models) | `pricing_models` | Heston, Bates, piecewise time-dependent Heston and GJR-GARCH calibrated to option volatilities; Hull-White, Black-Karasinski, G2++, Vasicek, CIR, extended CIR and GSR calibrated to swaption and cap volatilities; zero-coupon bond prices, bond options and short-rate statistics under a short-rate model. | 3 |
| [Equity and FX options](/reference/pricing/options) | `pricing_options` | Vanilla and exotic options on one or several underlyings: European, American, Bermudan; barrier, double barrier, Asian, lookback, digital, compound, chooser, extensible, forward-start, cliquet, basket, spread, exchange, quanto and swing options; Black-Scholes, Heston, Bates, SABR, CEV, variance gamma, GJR-GARCH and hybrid models; Greeks, implied volatility and closed-form Black/Bachelier tools. | 14 |
| [Swaps, FRAs and futures](/reference/pricing/swaps) | `pricing_swaps` | Fixed-float, overnight-indexed (SOFR, ESTR, SONIA ...), zero-coupon, multiple-reset, amortizing, basis (float-float, CMS) and cross-currency swaps, FX forwards, FRAs, overnight-index and perpetual futures, and equity total-return swaps: NPV, par rates, spreads, leg values, DV01 and cash flows. | 6 |
| [Interest-rate options](/reference/pricing/rate-options) | `pricing_rate_options` | Caps, floors and collars; European and Bermudan swaptions (physical or cash settled); Black, shifted Black, Bachelier and short-rate model engines (Hull-White, Black-Karasinski, G2, Vasicek, CIR, GSR, Markov functional); caplet stripping, swaption volatility matrices and SABR cubes; CMS coupons and convexity adjustments. | 5 |
| [Interest-rate maths and currencies](/reference/pricing/rates) | `pricing_rates` | Converting interest rates between simple, compounded and continuous conventions, frequencies and day counts; compound and discount factors; implied rates; currency facts, roundings and conversion through your exchange rates. | 2 |
| [Volatility surfaces and smiles](/reference/pricing/volatility) | `pricing_volatility` | Black volatility surfaces, Dupire and fixed local volatility, Andreasen-Huge arbitrage-free interpolation, FX delta-quoted surfaces, Heston-implied surfaces, SABR / SVI / ZABR / Kahale smiles (evaluated or fitted), and risk-neutral densities under Black-Scholes, Heston, local volatility, CEV, square-root and smile models. | 3 |
# Interest-rate options
Source: https://docs.fincept.in/reference/pricing/rate-options
Caps, floors and collars; European and Bermudan swaptions (physical or cash settled); Black, shifted Black, Bachelier and short-rate model engines (Hull-White, Black-Karasinski, G2, Vasicek, CIR, GSR, Markov functional); caplet stripping, swaption volatility matrices and SABR cubes; CMS coupons and convexity adjustments.
Toolset `pricing_rate_options`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_capfloor` | Prices an interest-rate cap, floor or collar on a term index with Black (flat lognormal or shifted vol), Bachelier (normal vol), Hull-White closed form, a short-rate tree or a Gaussian1d (GSR) model. | |
| `pricing_swaption` | Prices a European or Bermudan swaption on a fixed-float swap, bullet or amortizing (physical or cash settled) with Black, Bachelier, Jamshidian on an affine one-factor model, trees on any short-rate model, analytic G2, finite differences (Hull-White, G2), Gaussian1d with a GSR model, or a Markov-functional model. | |
| `pricing_coupon_leg` | Prices a leg of coupons that need an option model: CMS coupons with Hagan or linear-TSR convexity adjustments (also zero-coupon CMS and CMS spreads), overnight coupons compounded or averaged with caps and floors (Black on the overnight optionlet), and multiple-reset coupons. | |
| `pricing_optionlet_strip` | Strips caplet (optionlet) volatilities from flat cap volatilities quoted by tenor and strike (lognormal, shifted or normal): each caplet's volatility such that every cap reprices. | |
| `pricing_swaption_vol` | Builds a swaption volatility structure from an ATM matrix (option tenor x swap tenor), optionally with smile quotes as a cube (interpolated, SABR-fitted or ZABR-fitted) or shifted by a spread, and reads volatilities at any option tenor, swap tenor and strike. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Interest-rate maths and currencies
Source: https://docs.fincept.in/reference/pricing/rates
Converting interest rates between simple, compounded and continuous conventions, frequencies and day counts; compound and discount factors; implied rates; currency facts, roundings and conversion through your exchange rates.
Toolset `pricing_rates`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_interest_rate` | Interest-rate arithmetic over a period (dates or a year fraction): the compound and discount factor of a rate under its compounding, frequency and day count, and the equivalent rate under other conventions (continuous, simple, compounded at any frequency, simple-then-compounded, other day counts), or the rate implied by a growth factor. | |
| `pricing_currency` | Currency facts (name, ISO code and number, symbol, minor unit), rounding of amounts to a currency's minor unit or a chosen rounding, and conversion of amounts into a target currency through the exchange rates you give: a direct or inverse quote, or a chain through a common currency (EUR->USD->JPY). | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Swaps, FRAs and futures
Source: https://docs.fincept.in/reference/pricing/swaps
Fixed-float, overnight-indexed (SOFR, ESTR, SONIA ...), zero-coupon, multiple-reset, amortizing, basis (float-float, CMS) and cross-currency swaps, FX forwards, FRAs, overnight-index and perpetual futures, and equity total-return swaps: NPV, par rates, spreads, leg values, DV01 and cash flows.
Toolset `pricing_swaps`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_swap` | Prices an interest-rate swap: fixed vs a term index (vanilla), vs a compounded overnight index (OIS: SOFR, ESTR, SONIA, TONA, SARON ...), zero-coupon, multiple-resets or amortizing, spot or forward-starting or seasoned with past fixings, discounted and projected on your curves (dual-curve). | |
| `pricing_basis_swap` | Prices a float-float basis swap: two floating legs on term or overnight indexes (3M vs 6M Euribor, SOFR vs term rate) or constant-maturity swap rates (CMS vs Euribor, CMS spread legs) with spreads, each projected on its own curve and discounted on one; optionally the Bermudan option to enter it. | |
| `pricing_fra` | Forward rate agreements and rate futures: values an FRA on a term index (forward rate, settlement amount, NPV, fixing date), or computes the Hull-White convexity adjustment that turns a futures price (IMM or other start date) into the equivalent forward rate. | |
| `pricing_rate_futures` | Futures on rates: the fair price (100 - rate) of a future on the compounded or simple-average overnight rate (SOFR 1M/3M, SONIA, ESTR, fed funds) over its reference period, using past fixings for the elapsed part and the curve for the rest, with a convexity adjustment; or the fair price of a perpetual future (linear or inverse payoff) from domestic and asset curves and the funding terms. | |
| `pricing_equity_swap` | Equity total-return swap on an index: the equity leg pays the index return each period, the funding leg pays a term or overnight rate plus margin. | |
| `pricing_xccy` | Cross-currency pricing between a domestic and a foreign currency: the fair outright FX forward (covered interest parity on both curves) and a forward contract's value in each currency; constant-notional cross-currency basis swaps (fair spread on either leg) and fixed-vs-floating cross-currency swaps (fair fixed rate); or the foreign discount curve implied by FX swap points and basis quotes over the domestic collateral curve. | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Volatility surfaces and smiles
Source: https://docs.fincept.in/reference/pricing/volatility
Black volatility surfaces, Dupire and fixed local volatility, Andreasen-Huge arbitrage-free interpolation, FX delta-quoted surfaces, Heston-implied surfaces, SABR / SVI / ZABR / Kahale smiles (evaluated or fitted), and risk-neutral densities under Black-Scholes, Heston, local volatility, CEV, square-root and smile models.
Toolset `pricing_volatility`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `pricing_vol_surface` | Builds a volatility surface and reads Black and/or local volatility on an expiry x strike grid: the market's Black surface, Dupire local volatility from it, an Andreasen-Huge arbitrage-free interpolation calibrated to quotes (with its calibration error), a piecewise surface from smiles, an FX surface from delta-quoted vols, the Black surface implied by Heston parameters, or given / constant local vol. | |
| `pricing_smile` | One expiry's volatility smile: evaluates SABR (Hagan lognormal or normal, shifted, Floch-Kennedy, arbitrage-free), SVI or ZABR from parameters, or fits them (or interpolates linearly, cubically, Kahale arbitrage-free) to quoted strikes and vols. | |
| `pricing_risk_neutral_density` | Risk-neutral probability density and distribution of the underlying at an expiry under Black-Scholes, Heston, Dupire local volatility, CEV or a square-root variance process: density and cumulative probability on a price grid (series + chart) and the price quantiles (e.g. the 1% and 99% tails). | |
Inputs, limits and outputs are described in [Fincept Pricing](/guides/fincept-pricing). Full schemas: `fincept_describe_tool`.
# Series algebra and transforms
Source: https://docs.fincept.in/reference/quant/algebra
Element-wise maths on dated series (exp, log, powers, floors, caps), value and date filters, lags, differences, spike and outlier smoothing, run counts, arithmetic between two series with date alignment, weighted sums and logical combinations of many series, and conditional selection.
Toolset `quant_algebra`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_transform` | One dated series in, one out: element-wise maths (exp, log, sqrt, abs, power, floor, ceil), value and date filters, lags and differences by observations or tenor, calendar forward-fill, spike and outlier smoothing, consecutive-sign run counts, compounding of returns, or the series' first/last value. | |
| `quant_combine` | Arithmetic between two dated series, or a series and a constant: add, subtract, multiply, divide, floor division, sign comparison, or just the alignment of both onto one date set. | |
| `quant_cross_series` | Combines the columns of a dated table into one series: a weighted sum (a fixed-weight basket value), the logical and/or of 0/1 signal series, or the cross-sectional min, max, mean or sum on each date followed by a rolling window (default: expanding over the whole history for min/max/mean/sum). | |
| `quant_conditional` | Conditional selection on a 0/1 flag series: on each flag date the value of x where the flag is 1, else the value of y; x and y are dated series or constants. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Basket and rule backtests
Source: https://docs.fincept.in/reference/quant/backtest
Backtests on your own prices: a weighted basket rebalanced daily, weekly or monthly with transaction costs (index level and drifting weights), the basket's weighted average realized volatility and pairwise correlation, and rule-triggered trading (dates, signal levels, mean reversion) with an equity curve and trade ledger.
Toolset `quant_backtest`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_basket_backtest` | Backtest of a weighted basket of the price columns, starting at 100, rebalanced to target weights daily, weekly or monthly, with proportional transaction costs on the weight traded. | |
| `quant_basket_risk` | Weighted average realized volatility of a basket's constituents, or their weighted average pairwise correlation, using the basket's drifting actual weights (rebalanced daily, weekly or monthly). | |
| `quant_rule_backtest` | Event-driven backtest of a trading rule on your daily prices: whenever the trigger fires (chosen dates, a signal above or below a level, or a mean-reversion z-score rule) the simulator trades one unit of each traded column at that day's close, optionally closes it after hold\_days, and marks the book at every close (weekdays, skipping given holidays; missing prices carry forward). | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Calendar operations on dated series
Source: https://docs.fincept.in/reference/quant/calendar
Bucket a series by week, month, quarter or year; cut a date range; keep only business days of a holiday calendar; day, month, year, quarter and weekday of each date; accrual fractions between dates; interpolation onto chosen dates; and splicing several series end to end.
Toolset `quant_calendar`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_series_calendar` | Calendar operations on one dated series: resample into weekly/monthly/quarterly/yearly buckets (max, min, mean, sum, first, last), cut a date range, keep only business days of a holiday calendar, extract each date's day, month, year, quarter or weekday, or the accrual year fraction between consecutive dates under a day count convention. | |
| `quant_interpolate` | The series read on chosen dates: carried forward from the last known value (step), only where the series has the date (intersect), or with gaps as null or zero. | |
| `quant_splice` | Splices the columns of a dated table, in column order, into one series: append later history, prepend older history (e.g. a proxy before a listing date), or fill one series' missing dates from others (union). | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Business-day and date tools
Source: https://docs.fincept.in/reference/quant/dates
Business-day offsets, checks, counts, previous/next business dates and business-date ranges on your own holiday calendar and week mask; relative date rules ('1m', '-1b', month ends, third Friday) and schedules; day count fractions; tenor lengths and market-point ordering.
Toolset `quant_dates`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_business_days` | Business-day arithmetic on your own holiday list and week mask: move dates by business days with a roll convention, test whether dates are business days, count business days between date pairs, find the previous or next business date, list the business dates in a range, or today's date in New York, London, Hong Kong or Tokyo. | |
| `quant_relative_date` | Applies a relative date rule ('1m', '-1b', '3y', end of month 'e', third Friday '3F', combinations like '1y-1d') to each base date on your holiday list and week mask, or builds a schedule of rule multiples from a base date to schedule\_end (payment, roll or observation dates). | |
| `quant_day_count` | Day-count arithmetic: accrual year fractions between dates under ACT/360, ACT/364, ACT/365F, ACT/365.25, ACT/365L or 1/1, weekday counts, a countdown series of days (or business days) to a target date, leap-day checks, and date-time gaps in words. | |
| `quant_tenor` | Tenor arithmetic for curves: the approximate length in days of tenor strings ('3m' is 90, '1y' 365), or the ordering of market curve point labels (overnight, tom-next, tenors, FRA pairs, futures and month codes, quarter ends, dates) from shortest to longest with each point's sort key in days. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Returns, volatility and performance
Source: https://docs.fincept.in/reference/quant/econometrics
Returns (simple, log, absolute) over observations or tenors, prices from returns, rebasing, excess returns over a cash rate or index, realized, swap-convention and exponentially weighted volatility, rolling correlation, correlation-swap correlation, beta and covariance, rolling maximum drawdown and the rolling Sharpe ratio.
Toolset `quant_econometrics`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_returns` | Returns of a dated price series over a number of observations or a tenor (simple, logarithmic or absolute), the price path implied by a return series, the series rebased to a starting level or net of its first value, annualized by its date spacing, or its excess-return index over a cash rate or cash index. | |
| `quant_drawdown` | Rolling maximum peak-to-trough drawdown of a price or level series as a ratio (-0.25 = a 25% fall from the window's peak), over a window of observations or a tenor; with no window, the running maximum drawdown since the start. | |
| `quant_sharpe_ratio` | Rolling Sharpe ratio of a price series: its annualized excess return (over a cash rate or cash index) divided by its annualized volatility, over a window of observations or a tenor (default: since the start). | |
| `quant_volatility` | Volatility of a dated price (or return) series in annualized percent: rolling realized volatility over a window of observations or a tenor, the volatility-swap convention (log returns, zero mean, window observations), or exponentially weighted volatility of returns or of daily changes for spreads. | |
| `quant_correlation` | Rolling co-movement of two dated series over a window of observations or a tenor: correlation of returns, the correlation-swap convention, beta of x against benchmark y, or covariance. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Epidemic models
Source: https://docs.fincept.in/reference/quant/epidemic
SIR and SEIR compartmental models fitted to observed daily infected and removed counts (transmission and recovery rates, reproduction number, projected path), and simulations of SIR, SEIR, SEIRCM with quarantine, cases and deaths, and its age-stratified form.
Toolset `quant_epidemic`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_epidemic_fit` | Fits an SIR or SEIR epidemic model to observed daily counts (one row per calendar day) by least squares: susceptible = population - infected - removed (- exposed). | |
| `quant_epidemic_simulate` | Simulates a compartmental epidemic model from chosen rates and starting counts by integrating its equations daily: SIR, SEIR, SEIRCM (recorded cases, deaths and a quarantine effect) or SEIRCM by age group. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Event studies
Source: https://docs.fincept.in/reference/quant/events
Frame a series around event dates (earnings, central-bank meetings, data releases you supply), or detect events from another series' threshold moves and measure the response over chosen horizons.
Toolset `quant_events`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_event_window` | A dated series framed around event dates you supply (earnings, central-bank meetings, data releases): the observations from window points before to window points after each event, or only the pre-event, post-event or event-day part. | |
| `quant_event_impact` | Event impact study: events are the dates where the trigger series moves by at least threshold (up, down or either way) over horizon; each event is mapped onto the response series' calendar and the response's return or change over each response horizon is sampled there. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Fincept Quant
Source: https://docs.fincept.in/reference/quant/overview
Every Fincept Quant module and its toolset.
28 tools in 9 modules, plus `quant_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Basket and rule backtests](/reference/quant/backtest) | `quant_backtest` | Backtests on your own prices: a weighted basket rebalanced daily, weekly or monthly with transaction costs (index level and drifting weights), the basket's weighted average realized volatility and pairwise correlation, and rule-triggered trading (dates, signal levels, mean reversion) with an equity curve and trade ledger. | 3 |
| [Business-day and date tools](/reference/quant/dates) | `quant_dates` | Business-day offsets, checks, counts, previous/next business dates and business-date ranges on your own holiday calendar and week mask; relative date rules ('1m', '-1b', month ends, third Friday) and schedules; day count fractions; tenor lengths and market-point ordering. | 4 |
| [Returns, volatility and performance](/reference/quant/econometrics) | `quant_econometrics` | Returns (simple, log, absolute) over observations or tenors, prices from returns, rebasing, excess returns over a cash rate or index, realized, swap-convention and exponentially weighted volatility, rolling correlation, correlation-swap correlation, beta and covariance, rolling maximum drawdown and the rolling Sharpe ratio. | 5 |
| [Epidemic models](/reference/quant/epidemic) | `quant_epidemic` | SIR and SEIR compartmental models fitted to observed daily infected and removed counts (transmission and recovery rates, reproduction number, projected path), and simulations of SIR, SEIR, SEIRCM with quarantine, cases and deaths, and its age-stratified form. | 2 |
| [Event studies](/reference/quant/events) | `quant_events` | Frame a series around event dates (earnings, central-bank meetings, data releases you supply), or detect events from another series' threshold moves and measure the response over chosen horizons. | 2 |
| [Calendar operations on dated series](/reference/quant/calendar) | `quant_calendar` | Bucket a series by week, month, quarter or year; cut a date range; keep only business days of a holiday calendar; day, month, year, quarter and weekday of each date; accrual fractions between dates; interpolation onto chosen dates; and splicing several series end to end. | 3 |
| [Rolling statistics and regression](/reference/quant/stats) | `quant_stats` | Rolling or expanding statistics of a dated series by observation count or tenor: min, max, range, arithmetic and quadratic mean, median, mode, sum, product, standard deviation, variance, z-scores, winsorizing, percentiles and percentile ranks, exponentially weighted deviation; static and rolling linear regression; random-walk sample series. | 3 |
| [Technical indicators](/reference/quant/technicals) | `quant_technicals` | Simple, smoothed (Wilder) and exponential moving averages, Bollinger bands, relative strength index, MACD, and the trend or seasonally adjusted series from a classical additive or multiplicative decomposition. | 2 |
| [Series algebra and transforms](/reference/quant/algebra) | `quant_algebra` | Element-wise maths on dated series (exp, log, powers, floors, caps), value and date filters, lags, differences, spike and outlier smoothing, run counts, arithmetic between two series with date alignment, weighted sums and logical combinations of many series, and conditional selection. | 4 |
# Rolling statistics and regression
Source: https://docs.fincept.in/reference/quant/stats
Rolling or expanding statistics of a dated series by observation count or tenor: min, max, range, arithmetic and quadratic mean, median, mode, sum, product, standard deviation, variance, z-scores, winsorizing, percentiles and percentile ranks, exponentially weighted deviation; static and rolling linear regression; random-walk sample series.
Toolset `quant_stats`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_rolling_stat` | Rolling (or, with no window, expanding) statistic of one dated series over a window of observations or a tenor such as '1m' or '1y': min, max, range, mean, root mean square, median, mode, sum, product, standard deviation, variance, z-score, winsorized values, percentile, percentile rank, or exponentially weighted standard deviation. | |
| `quant_sample_series` | A random-walk sample series starting at 100 with standard normal steps, dated daily or by minute from or up to now; every call draws a new path. | |
| `quant_linear_regression` | Ordinary least squares of one dated column on one to twenty others, on the dates where all are present (rows with missing or infinite values are dropped). | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Technical indicators
Source: https://docs.fincept.in/reference/quant/technicals
Simple, smoothed (Wilder) and exponential moving averages, Bollinger bands, relative strength index, MACD, and the trend or seasonally adjusted series from a classical additive or multiplicative decomposition.
Toolset `quant_technicals`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `quant_technical` | Technical indicator of a dated price series: simple, Wilder-smoothed or exponential moving average, Bollinger bands (price, middle, lower, upper), relative strength index or MACD, over a window of observations or a tenor where the indicator has one. | |
| `quant_trend_seasonal` | Trend or seasonally adjusted version of a dated series from a classical decomposition (moving-average trend, average seasonal pattern per position in the cycle, residual), additive or multiplicative, with a weekly, monthly, quarterly or yearly cycle. | |
Inputs, limits and outputs are described in [Fincept Quant](/guides/fincept-quant). Full schemas: `fincept_describe_tool`.
# Regime analytics
Source: https://docs.fincept.in/reference/regimes/analysis
Statistics of any returns series by regime (return, volatility, ratio, spells and their compounded returns, empirical transitions) and transition-matrix analytics (stationary distribution, expected durations, half-lives, mixing, h-step forecast, simulated regime paths).
Toolset `regime_analysis`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `regime_statistics` | Statistics of a returns series under a regime path: per regime the number of periods, share of time, mean, volatility, annualised mean and volatility and their ratio, extremes and spell counts and lengths; every spell with its dates and compounded return; the empirical transition counts and probabilities; and the current spell. | |
| `regime_markov_chain` | Analytics of a regime transition matrix on its own (e.g. data.model.transmat of a fit, or an assumed one): stationary distribution, persistence, expected duration and half-life of each regime, the eigenvalues and the half-life of convergence to the long run, the h-step regime forecast from the current probabilities (series + chart) and optionally a simulated regime path with its spells. | |
Inputs, limits and outputs are described in [Fincept Regimes](/guides/fincept-regimes). Full schemas: `fincept_describe_tool`.
# Discrete regime models
Source: https://docs.fincept.in/reference/regimes/discrete
Hidden Markov models on symbols and counts: categorical (coded series, return buckets, down/flat/up days; maximum likelihood or variational), Poisson (counts such as large moves, trades or defaults per period) and multinomial (counts over categories per period).
Toolset `regime_discrete`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `regime_categorical_hmm` | Categorical hidden Markov model on one symbol per period: a coded series, or a continuous feature cut into quantile buckets or down/flat/up signs. | |
| `regime_poisson_hmm` | Poisson hidden Markov model on counts per period (one or more count columns): regimes of low and high event intensity, e.g. the number of large market moves, trades or defaults per month. | |
| `regime_multinomial_hmm` | Multinomial hidden Markov model on counts over categories per period (each row's counts add up to its trials), e.g. down/flat/up days per week or advancing/declining issues per day. | |
Inputs, limits and outputs are described in [Fincept Regimes](/guides/fincept-regimes). Full schemas: `fincept_describe_tool`.
# Gaussian regime models
Source: https://docs.fincept.in/reference/regimes/gaussian
Hidden Markov models with Gaussian, Gaussian-mixture or variational Gaussian emissions on returns or feature tables: regimes labelled by volatility or mean, transition matrix, per-regime means and volatilities, state path and probabilities, AIC/BIC, convergence, forecast and the fitted model.
Toolset `regime_gaussian`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `regime_gaussian_hmm` | Gaussian hidden Markov model (Baum-Welch) on a returns series or feature table, one or several sequences. | |
| `regime_gmm_hmm` | Hidden Markov model whose regimes each emit from a mixture of n\_mix Gaussians (fat-tailed, skewed or multi-modal returns within a regime). | |
| `regime_variational_gaussian_hmm` | Variational Bayesian Gaussian hidden Markov model: Dirichlet, Normal and Wishart priors, fitted by maximising the variational lower bound. | |
Inputs, limits and outputs are described in [Fincept Regimes](/guides/fincept-regimes). Full schemas: `fincept_describe_tool`.
# Apply a fitted regime model
Source: https://docs.fincept.in/reference/regimes/inference
Use data.model of a regime fit without refitting: decode new or recent data into regimes with smoothed or real-time filtered probabilities, score it (log-likelihood, AIC/BIC, emission densities), and simulate regime scenarios.
Toolset `regime_inference`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `regime_decode` | Applies a fitted model (data.model of any regime\_ fit tool) to new or recent data without refitting: the data gets the model's transform, scaling and buckets. | |
| `regime_simulate` | Draws n\_paths paths of n\_steps periods from a fitted model (data.model of a regime\_ fit tool): each period's regime from the transition matrix, its observation from that regime's emission (in the data's units; counts or symbol codes for discrete models). | |
Inputs, limits and outputs are described in [Fincept Regimes](/guides/fincept-regimes). Full schemas: `fincept_describe_tool`.
# Fincept Regimes
Source: https://docs.fincept.in/reference/regimes/overview
Every Fincept Regimes module and its toolset.
11 tools in 5 modules, plus `regime_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Regime analytics](/reference/regimes/analysis) | `regime_analysis` | Statistics of any returns series by regime (return, volatility, ratio, spells and their compounded returns, empirical transitions) and transition-matrix analytics (stationary distribution, expected durations, half-lives, mixing, h-step forecast, simulated regime paths). | 2 |
| [Discrete regime models](/reference/regimes/discrete) | `regime_discrete` | Hidden Markov models on symbols and counts: categorical (coded series, return buckets, down/flat/up days; maximum likelihood or variational), Poisson (counts such as large moves, trades or defaults per period) and multinomial (counts over categories per period). | 3 |
| [Gaussian regime models](/reference/regimes/gaussian) | `regime_gaussian` | Hidden Markov models with Gaussian, Gaussian-mixture or variational Gaussian emissions on returns or feature tables: regimes labelled by volatility or mean, transition matrix, per-regime means and volatilities, state path and probabilities, AIC/BIC, convergence, forecast and the fitted model. | 3 |
| [Apply a fitted regime model](/reference/regimes/inference) | `regime_inference` | Use data.model of a regime fit without refitting: decode new or recent data into regimes with smoothed or real-time filtered probabilities, score it (log-likelihood, AIC/BIC, emission densities), and simulate regime scenarios. | 2 |
| [Number of regimes](/reference/regimes/selection) | `regime_selection` | Choose how many regimes the data supports: a model family fitted across a range of state counts with random restarts, compared by BIC, AIC, log-likelihood, variational lower bound or held-out log-likelihood; the winning model is returned ready for regime\_decode and regime\_simulate. | 1 |
# Number of regimes
Source: https://docs.fincept.in/reference/regimes/selection
Choose how many regimes the data supports: a model family fitted across a range of state counts with random restarts, compared by BIC, AIC, log-likelihood, variational lower bound or held-out log-likelihood; the winning model is returned ready for regime_decode and regime_simulate.
Toolset `regime_selection`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `regime_select_states` | Fits one model family for every state count from min\_states to max\_states, each from several random restarts, and picks the count by BIC (default), AIC, log-likelihood, held-out log-likelihood or the variational lower bound. | |
Inputs, limits and outputs are described in [Fincept Regimes](/guides/fincept-regimes). Full schemas: `fincept_describe_tool`.
# Result envelope
Source: https://docs.fincept.in/reference/result-envelope
Every field of the Fincept Result Protocol (result/v1) and every block type.
Every tool returns this object as `structuredContent` and as JSON text. Tools declare it as their `outputSchema`.
## Fields
Always `result/v1`.
The tool that produced the result.
`ok`, `partial` (a preview; the full result is stored) or `error`.
One sentence describing the result.
The machine payload, always JSON. Numbers are numbers, dates are ISO-8601, `NaN` and infinity are `null`. In a `partial` result, lists named in `truncated.lists` are cut.
Presentation, in reading order. See [blocks](#blocks).
Stored full results.
Result id, `r_` followed by 24 hex characters.
`fincept://results/{id}`, readable as an MCP resource.
Browser viewer at `https://fincept.in/enterprise/results/{id}`.
`application/json`.
Size of the full result.
When the stored result is deleted.
Present when the inline result is a preview.
`size`.
Size of this preview.
Size of the full result.
`fincept_read_result`.
Each cut list: `path`, `shown`, `total`.
Notes about the result, such as a convergence warning.
Present when `status` is `error`: `code`, `message`, optional `hint` and `details`. See [errors](/reference/errors).
Optional context such as `source`, `as_of` and `units`.
## Blocks
Renderers skip block types they do not know, so new types never break a client.
| Type | Fields | Meaning |
| - | - | - |
| `text` | `format` (`markdown` or `plain`), `text` | Notes and explanations |
| `metrics` | `items[]`: `label`, `value`, `unit`, `delta`, `hint` | Headline numbers |
| `table` | `id`, `title`, `columns[]` (`name`, `type`, `unit`), `rows[][]`, `total_rows` | Tabular results |
| `series` | `id`, `title`, `x` (`name`, `type`), `y[]` (`name`, `unit`), `rows[][]`, `total_rows` | Data for charts |
| `chart` | `id`, `title`, `kind`, `series_ref`, `x`, `y[]`, `band` (`lower`, `upper`) | A chart over the `series` or `table` block named by `series_ref` |
| `image` | `mime`, `uri` | An image stored as an artifact |
| `link` | `url`, `label` | A related page |
Chart `kind` is one of `line`, `bar`, `scatter`, `area`, `hist`, `heatmap`, `candlestick`. A `band` names the series columns that bound a shaded interval.
```json Forecast with a band theme={"dark"}
[
{ "type": "series", "id": "forecast", "title": "Forecast",
"x": { "name": "date", "type": "date" },
"y": [ { "name": "mean" }, { "name": "lower" }, { "name": "upper" } ],
"rows": [ ["2026-10-09", 25012.4, 24610.2, 25414.6] ], "total_rows": 1 },
{ "type": "chart", "id": "forecast_chart", "title": "Forecast", "kind": "line",
"series_ref": "forecast", "x": "date", "y": ["mean"],
"band": { "lower": "lower", "upper": "upper" } }
]
```
# Price history
Source: https://docs.fincept.in/reference/scanner/bars
Bars for any instrument on any interval, screens of many instruments' bars with custom formulas, and many instruments' returns over calendar periods.
Toolset `scan_bars`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `scan_ohlcv` | Returns an instrument's bars on any interval from 1 minute to monthly, oldest first: the latest N or a date range, split- or dividend-adjusted, each with its time at the exchange's UTC offset, plus the span's change, high, low and average volume and an integrity check of the bars. Data at path `candles` feeds the Fincept Technicals tools as is. | Up to 5,000 bars a call. |
| `scan_history` | Screens up to 500 instruments' price history with a custom formula: evaluates it at every bar and reports whether it held on the latest bar (or any of the last N, with when it last did), plus named values for ranking. For multi-bar patterns, streaks, breakouts over any window, distances from highs and custom indicators. `symbols` can be a `$fincept` reference to a `scan_run` screen's symbols. | About 25 new instruments a call, answered within about 45 seconds; the rest are in `data.remaining` for the next call. |
| `scan_returns` | Returns of up to 500 instruments over up to 12 calendar periods: a month, quarter, year or date range, each as the last close inside the period over the last close before it, in percent. Price return by default, total return with `adjustment: "dividends"`. | About 25 new instruments a call, answered within about 45 seconds; the rest are in `data.remaining`. A finished period's return is kept for a day. |
Inputs, limits and outputs are described in [Fincept Scanner](/guides/fincept-scanner). Full schemas: `fincept_describe_tool`.
# Company fundamentals
Source: https://docs.fincept.in/reference/scanner/fundamentals
Financial statements, earnings against estimates, dividend history and revenue segments per company.
Toolset `scan_fundamentals`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `scan_financials` | Returns a company's income statement, balance sheet, cash flow or statistics (valuation, margins, returns, per-share and bank ratios), newest period first, by fiscal year, half, quarter or trailing twelve months: every line the company reports in raw reporting-currency units, with the latest value of each line. `statement: "all"` returns the four statements with earnings, dividends and revenue segments in one request. | |
| `scan_earnings` | Returns reported EPS against the consensus estimate with the surprise in percent, and reported revenue against its estimate, by quarter or fiscal year, newest first. | |
| `scan_dividends` | Returns a company's dividend payments, newest first (amount per share, ex, record and payment dates, kind), with the recent yield, the TTM payout ratio and dividends paid. | |
| `scan_segments` | Returns a company's annual revenue by business line and by country or region, newest year first. | |
Inputs, limits and outputs are described in [Fincept Scanner](/guides/fincept-scanner). Full schemas: `fincept_describe_tool`.
# Fincept Scanner
Source: https://docs.fincept.in/reference/scanner/overview
Every Fincept Scanner module and its toolset.
11 tools in 3 modules, plus `scan_catalog`, which lists them from inside your agent. All are free; requests to the market data source are paced server-wide, and a paced request answers `busy` with the seconds to wait.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Market screener](/reference/scanner/screen) | `scan_screen` | Live screens of any market (stocks in 68 countries, ETFs, crypto pairs and coins, forex, futures, CFDs, bonds, options, economic series) on any of about 4,000 fields: price and volume on any timeframe, performance, technical indicators and ratings, candlestick patterns, fundamentals, dividends, earnings dates and analyst targets; conditions, and/or groups, crosses and 73 index universes; field search, markets, operators and 44 ready-made screens. | 4 |
| [Price history](/reference/scanner/bars) | `scan_bars` | Bars for any instrument on any interval (count or date range, split- or dividend-adjusted), screens of many instruments' bars with custom formulas (crossovers, breakouts, streaks, pullbacks, squeezes), and many instruments' returns over any calendar month, quarter, year or date range. | 3 |
| [Company fundamentals](/reference/scanner/fundamentals) | `scan_fundamentals` | Income statement, balance sheet, cash flow and statistics by year, half, quarter or TTM; earnings against estimates; dividend history; revenue by business and by region. | 4 |
# Market screener
Source: https://docs.fincept.in/reference/scanner/screen
Live screens of any market on any of about 4,000 fields, with conditions, and/or groups, crosses and index universes; field search, markets, operators and ready-made screens.
Toolset `scan_screen`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `scan_run` | Screens a market live on any of its fields and returns the matching instruments, paged and sorted: price and volume on 1-minute to monthly bars, performance, technical indicators and ratings, candlestick patterns, valuation, profitability, growth, balance sheet, cash flow, dividends, earnings and dividend dates and analyst targets, for stocks in 68 countries, ETFs, crypto pairs and coins, forex, futures, CFDs, bonds, options and economic series. Conditions compare a field with a value or another field, test crosses on the latest bar, ranges, lists, text and dates; `where` adds OR groups; `index` and `symbols` narrow the universe; `template` starts from a ready-made screen. Each row carries the instrument's `EXCHANGE:TICKER` symbol. | Listed by default. Up to 1,000 rows a page. |
| `scan_fields` | Searches the fields a market can be screened on by words, category or type, best matches first: each field's exact name, its meaning, category, type, whether it is a bar field (readable on any timeframe and one or two bars back), and with `include_values` the exact values a text field takes (sectors, industries, countries). | |
| `scan_markets` | Lists the 68 country markets by region with their exchanges, the asset-class markets, the 73 index universes, the bar timeframes, every condition operator with its meaning, the universe options and the request budget now. `section` returns one part. | Makes no market data request. |
| `scan_templates` | Lists the 44 ready-made screens `scan_run` takes as `template` (price and volume, technicals, fundamentals, events, crypto, forex and ETF screens), each with its full arguments. | Makes no market data request. |
Inputs, limits and outputs are described in [Fincept Scanner](/guides/fincept-scanner). Full schemas: `fincept_describe_tool`.
# Descriptive statistics
Source: https://docs.fincept.in/reference/stats/descriptive
Summaries of every column, weighted statistics, correlation matrices, robust location and scale, empirical distributions and Q-Q comparisons.
Toolset `stats_descriptive`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_describe` | Summary statistics of each numeric column: count, missing, mean, standard deviation, standard error, 95% confidence interval of the mean, min, percentiles, max, skewness, kurtosis, Jarque-Bera normality test, mode and the share of distinct values. | core |
| `stats_weighted_stats` | Weighted mean, variance, standard deviation, quantiles, the confidence interval of the mean and a t test of the mean against test\_value. | |
| `stats_correlation` | Correlation matrix of the numeric columns (pairwise complete rows) with each pair's p-value. | core |
| `stats_robust_scale` | Outlier-resistant location and scale: median, median absolute deviation (normal-consistent), interquartile range scale, Qn scale and Huber's joint location and scale, beside the plain mean and standard deviation. | |
| `stats_distribution_compare` | The empirical CDF of the values and their Q-Q comparison with a fitted reference distribution (normal by default. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Model diagnostics
Source: https://docs.fincept.in/reference/stats/diagnostics
Tests on a fitted linear regression: heteroskedasticity (Breusch-Pagan, White, Goldfeld-Quandt, ARCH), residual autocorrelation (Ljung-Box, Breusch-Godfrey, Durbin-Watson), specification (RESET, rainbow, Harvey-Collier, White), structural breaks (CUSUM, Hansen), non-nested model comparison (Cox, J, encompassing), multicollinearity (VIF), influential observations and outliers, and nearest valid correlation or covariance matrices.
Toolset `stats_diagnostics`: 8 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_heteroskedasticity_test` | Tests a regression's residuals for heteroskedasticity (error variance that changes with the regressors or over time): Breusch-Pagan (Koenker), White (squares and cross products), Goldfeld-Quandt (variance in two sub-samples) and Engle's ARCH LM test (volatility clustering in time series). | |
| `stats_residual_autocorrelation_test` | Tests a regression's residuals for autocorrelation: Durbin-Watson (first order. | |
| `stats_vif` | Multicollinearity check: the variance inflation factor of every regressor (how much its coefficient variance is inflated by correlation with the other regressors) and its tolerance (1/VIF), with the design's condition number. | |
| `stats_influence` | Finds observations that drive a regression: leverage (hat values), Cook's distance, DFFITS and externally studentized residuals for every row, the Bonferroni outlier test, and the top rows by Cook's distance with flags (Cook's > 4/n, leverage > 2k/n, \|DFFITS\| above its threshold, Bonferroni p \< alpha). | |
| `stats_nearest_correlation` | Repairs a correlation or covariance matrix that is not positive semi-definite (from pairwise estimates, stressed or hand-edited correlations) so it can be used in risk models, simulation and portfolio optimization: the nearest valid matrix by iterative projection, or eigenvalue clipping. | |
| `stats_specification_test` | Tests whether a linear regression's functional form is right: Ramsey's RESET (added powers of the fitted values or regressors), the rainbow test (fit on the central rows versus all), Harvey-Collier (mean of recursive residuals), White's specification test (heteroskedasticity or misspecification) and the LM test for squared regressors. | |
| `stats_structural_break_test` | Tests a regression's coefficients for stability over the row order (time): the CUSUM test on OLS residuals (Ploberger-Kramer), Hansen's joint stability test of coefficients and variance, and the recursive-residual CUSUM path with its Brown-Durbin-Evans bands (series and chart. | |
| `stats_nonnested_test` | Compares two non-nested linear models of the same response (neither is a special case of the other, e.g. two competing factor sets): the Cox test, the Davidson-MacKinnon J test and the encompassing F test, each in both directions. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Discrete choice and count models
Source: https://docs.fincept.in/reference/stats/discrete
Binary logit and probit, multinomial and conditional (fixed-effects) logit, ordered logit and probit, Poisson, negative binomial and generalized Poisson counts, zero-inflated, hurdle and truncated counts, with marginal effects, predicted probabilities and classification tables.
Toolset `stats_discrete`: 7 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_logit` | Binary choice model for a 0/1 outcome (default or not, up or down, churn): logit or probit by maximum likelihood. | core |
| `stats_multinomial_logit` | Multinomial logit for an unordered categorical outcome with three or more values (choice of venue, rating bucket, sector): one coefficient set per outcome against the lowest (base) outcome. | |
| `stats_conditional_logit` | Conditional maximum likelihood within groups: McFadden's conditional logit for choices among alternatives (which venue, broker or mode is chosen given each alternative's attributes) and fixed-effects logit, Poisson or multinomial logit for panels, where each group's own intercept is conditioned away (no intercept is estimated). | up to 180 s |
| `stats_ordered_model` | Ordered logit or probit for a ranked outcome (credit rating notches, analyst recommendation 1-5, survey scale): one slope per regressor and a cutpoint between each pair of adjacent categories, no intercept. | up to 120 s |
| `stats_count_regression` | Regression for counts (trades per day, defaults per portfolio, claims per policy): Poisson, negative binomial (NB2, NB1, geometric or NB-P) or generalized Poisson, with optional offset or exposure for rates. | |
| `stats_zero_inflated` | Zero-inflated count model: a mixture of structural zeros (rows that can only be zero, such as dormant accounts) and a Poisson, negative binomial or generalized Poisson count. | up to 120 s |
| `stats_hurdle_truncated` | Hurdle model (one process decides zero or positive, a zero-truncated count gives the size: whether a client trades, then how many trades) or left-truncated count model (counts at or below the truncation point are never recorded). | up to 120 s |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Generalized linear and mixed models
Source: https://docs.fincept.in/reference/stats/glm
Generalized linear models for every family and link (logistic, Poisson, gamma, inverse Gaussian, negative binomial, Tweedie), GEE for clustered and panel data (including ordinal and nominal outcomes), linear mixed models with random intercepts, slopes and variance components, Bayesian mixed GLMs and generalized additive models with spline smooths.
Toolset `stats_glm`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_glm` | Generalized linear model for any exponential family and link: logistic or probit for 0/1 and shares, Poisson and negative binomial for counts, gamma and inverse Gaussian for positive amounts, Tweedie for amounts with exact zeros. | |
| `stats_glm_gam` | Generalized additive model: a GLM (any family and link) whose linear part comes from the formula or x and whose smooth columns enter as penalized splines, so their effect may bend (B-splines) or repeat over a cycle (cyclic splines). | up to 180 s |
| `stats_gee` | Generalized estimating equations (GEE): a GLM for clustered or panel data (firms over years, customers over months) whose standard errors account for correlation within each group through a working correlation (independence, exchangeable, autoregressive, nested or unstructured). | up to 180 s |
| `stats_gee_categorical` | GEE for a categorical response observed in clusters or panels (credit ratings of issuers over years, survey answers by branch): ordinal (cumulative logit with thresholds) or nominal (one logit per category against the lowest). | up to 180 s |
| `stats_mixedlm` | Linear mixed-effects model: fixed effects shared by all rows plus random effects that vary by group (random intercepts, random slopes, variance components), for panels and hierarchies such as firms over years, funds within families or trades within traders. | up to 180 s |
| `stats_bayes_mixed_glm` | Bayesian generalized linear mixed model for a 0/1 response (logit) or counts (Poisson log link) with random effects given as variance components, possibly crossed (sector and year), fitted by variational Bayes with normal priors (fe\_p, vcp\_p). | up to 180 s |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Missing-data imputation
Source: https://docs.fincept.in/reference/stats/imputation
Multiple imputation of missing values: chained equations (MICE) with an analysis model pooled by Rubin's rules and the fraction of missing information, and Bayesian multivariate-normal imputation of gaps in a panel of series with the posterior mean and covariance.
Toolset `stats_imputation`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_mice` | Multiple imputation by chained equations: every column with gaps is imputed in turn from a regression on the others (predictive mean matching), the analysis model (formula) is fitted to each imputed data set, and the fits are pooled by Rubin's rules. | up to 300 s |
| `stats_bayes_gauss_imputation` | Bayesian imputation under a multivariate normal model: a Gibbs sampler draws the missing values, the mean vector and the covariance matrix in turn (conjugate priors, on internally standardized columns so the default priors are weak at any scale). | up to 180 s |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Multivariate analysis
Source: https://docs.fincept.in/reference/stats/multivariate
Principal components (yield-curve and return PCA), factor analysis with rotations (factor models of returns, risk factors), MANOVA, canonical correlation, and tests of multivariate means and of the structure of a covariance matrix.
Toolset `stats_multivariate`: 6 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_pca` | Principal component analysis of several series (e.g. yields across maturities, asset returns): loadings of each column on each component, component scores per row as a series with a chart, eigenvalues with the share and cumulative share of variance explained (scree chart), and the Bai-Ng information criteria IC\_p1-IC\_p3 for the number of components (the minimum suggests how many to keep). | |
| `stats_factor_analysis` | Exploratory factor analysis of the correlation matrix of several series (e.g. asset returns, macro indicators): rotated and unrotated loadings of each variable on n\_factor latent factors, communalities (variance shared with the factors), uniquenesses (idiosyncratic variance), eigenvalues (principal axis) or loading standard errors (maximum likelihood), and the fitted correlation matrix. | |
| `stats_manova` | Multivariate analysis of variance (multivariate linear model): whether each term of the formula moves several responses jointly, e.g. whether the returns of several assets differ across regimes or sectors. | |
| `stats_canonical_correlation` | Canonical correlation analysis between two sets of variables (e.g. a basket of asset returns and a set of macro surprises): the canonical correlations, a Wilks' lambda F test that each one and all smaller ones are zero, the overall multivariate tests (Wilks, Pillai, Hotelling-Lawley, Roy), and the canonical coefficients of each set. | |
| `stats_mv_mean_test` | Hotelling's T-squared test of a mean vector: one sample against hypothesised means (e.g. are the average returns of several assets jointly zero), or two independent groups against each other. | |
| `stats_mv_cov_test` | Likelihood-ratio tests of the structure of a covariance matrix estimated from the rows (e.g. asset returns): equal to a hypothesised matrix, spherical, diagonal (no correlation), block diagonal (groups of assets uncorrelated with each other), or equal across groups (Box's M, e.g. calm vs stressed regimes). | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Nonparametric estimation
Source: https://docs.fincept.in/reference/stats/nonparametric
Kernel density estimates of return distributions (univariate, multivariate and conditional), LOWESS smoothing, and kernel regression (local constant or local linear, optionally censored) with marginal effects.
Toolset `stats_nonparametric`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_kde` | Univariate kernel density estimate of a series (e.g. daily returns): the density curve and its CDF on a grid as a series with charts, the bandwidth used, the mode, and quantiles of the smoothed distribution (e.g. the 1% and 5% tail quantiles). | |
| `stats_lowess` | LOWESS (locally weighted scatterplot smoothing) of y against x, or of a time series against time: the smoothed value for every observation (null where y or x is missing) as a series with a chart, and the residual standard deviation. | |
| `stats_kde_multivariate` | Kernel density of one or more variables, continuous or discrete, estimated jointly f(cols) or conditionally f(cols \| given) (e.g. the density of an asset's return given the market's), with rule-of-thumb or cross-validated bandwidths. | up to 300 s |
| `stats_kernel_regression` | Nonparametric kernel regression of y on x: the conditional mean E\[y \| x] with no functional form assumed, and the marginal effect (partial derivative) of each regressor at every row, local linear or local constant (Nadaraya-Watson, whose effect exists only for a single continuous regressor), with cross-validated or AIC bandwidths. | up to 300 s |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Fincept Stats
Source: https://docs.fincept.in/reference/stats/overview
Every Fincept Stats module and its toolset.
105 tools in 14 modules, plus `stats_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Descriptive statistics](/reference/stats/descriptive) | `stats_descriptive` | Summaries of every column, weighted statistics, correlation matrices, robust location and scale, empirical distributions and Q-Q comparisons. | 5 |
| [Regression](/reference/stats/regression) | `stats_regression` | Linear models: ordinary, weighted and generalized least squares, AR errors, quantile, robust, recursive, rolling and beta regression, with robust covariances and predictions. | 9 |
| [Generalized linear and mixed models](/reference/stats/glm) | `stats_glm` | Generalized linear models for every family and link (logistic, Poisson, gamma, inverse Gaussian, negative binomial, Tweedie), GEE for clustered and panel data (including ordinal and nominal outcomes), linear mixed models with random intercepts, slopes and variance components, Bayesian mixed GLMs and generalized additive models with spline smooths. | 6 |
| [Discrete choice and count models](/reference/stats/discrete) | `stats_discrete` | Binary logit and probit, multinomial and conditional (fixed-effects) logit, ordered logit and probit, Poisson, negative binomial and generalized Poisson counts, zero-inflated, hurdle and truncated counts, with marginal effects, predicted probabilities and classification tables. | 7 |
| [Time-series models](/reference/stats/tsa-models) | `stats_tsa_models` | Forecasting models for one series: ARIMA/SARIMAX with seasonality and regressors, autoregression and ARDL/error correction, exponential smoothing (Holt-Winters, ETS), Theta, unobserved components, Markov regime switching, STL forecasting, ARMA order selection and theoretical ARMA processes. | 11 |
| [Time-series analysis](/reference/stats/tsa-analysis) | `stats_tsa_analysis` | Autocorrelation, partial autocorrelation and cross-correlation with Ljung-Box tests; unit-root and stationarity tests (ADF, KPSS, Zivot-Andrews, range); Engle-Granger cointegration; BDS independence and variance-break tests; classical, STL and MSTL seasonal decomposition; Hodrick-Prescott, Baxter-King and Christiano-Fitzgerald filters, polynomial detrending and the periodogram. | 9 |
| [Multivariate time series](/reference/stats/tsa-multivariate) | `stats_tsa_multivariate` | Vector autoregression with lag selection, forecasts, impulse responses, variance decompositions, Granger and instantaneous causality, whiteness, normality and stability checks; structural VAR; VARMAX; vector error correction with Johansen cointegration rank; dynamic factor models (including mixed monthly/quarterly) and pairwise Granger causality tests. | 9 |
| [Hypothesis tests](/reference/stats/tests) | `stats_tests` | t, z and Welch tests, equivalence (TOST), one-way, factorial and repeated-measures ANOVA, Tukey HSD and pairwise comparisons, multiple-testing corrections, proportion, binomial and Poisson-rate tests, contingency tables, runs, normality and goodness-of-fit tests, effect sizes, rater agreement, mediation and Oaxaca-Blinder decomposition. | 21 |
| [Model diagnostics](/reference/stats/diagnostics) | `stats_diagnostics` | Tests on a fitted linear regression: heteroskedasticity (Breusch-Pagan, White, Goldfeld-Quandt, ARCH), residual autocorrelation (Ljung-Box, Breusch-Godfrey, Durbin-Watson), specification (RESET, rainbow, Harvey-Collier, White), structural breaks (CUSUM, Hansen), non-nested model comparison (Cox, J, encompassing), multicollinearity (VIF), influential observations and outliers, and nearest valid correlation or covariance matrices. | 8 |
| [Power and sample size](/reference/stats/power) | `stats_power` | Statistical power and required sample size for t, z, ANOVA, regression F and chi-square tests (solve for effect size, sample size, alpha or power), power curves, proportion sample sizes and power, and the power of equivalence tests. | 4 |
| [Multivariate analysis](/reference/stats/multivariate) | `stats_multivariate` | Principal components (yield-curve and return PCA), factor analysis with rotations (factor models of returns, risk factors), MANOVA, canonical correlation, and tests of multivariate means and of the structure of a covariance matrix. | 6 |
| [Nonparametric estimation](/reference/stats/nonparametric) | `stats_nonparametric` | Kernel density estimates of return distributions (univariate, multivariate and conditional), LOWESS smoothing, and kernel regression (local constant or local linear, optionally censored) with marginal effects. | 4 |
| [Survival and duration analysis](/reference/stats/survival) | `stats_survival` | Time-to-event analysis with censoring: Cox proportional hazards regression with hazard ratios and baseline hazards, Kaplan-Meier survival curves with confidence bands and median survival, log-rank and weighted tests between groups, and cumulative incidence under competing risks. | 4 |
| [Missing-data imputation](/reference/stats/imputation) | `stats_imputation` | Multiple imputation of missing values: chained equations (MICE) with an analysis model pooled by Rubin's rules and the fraction of missing information, and Bayesian multivariate-normal imputation of gaps in a panel of series with the posterior mean and covariance. | 2 |
# Power and sample size
Source: https://docs.fincept.in/reference/stats/power
Statistical power and required sample size for t, z, ANOVA, regression F and chi-square tests (solve for effect size, sample size, alpha or power), power curves, proportion sample sizes and power, and the power of equivalence tests.
Toolset `stats_power`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_power_solve` | Solves the power equation of a t, z, ANOVA F, regression F or chi-square goodness-of-fit test for whichever one of effect\_size, nobs, alpha and power is left null: the sample size for a target power, the power of a given sample, or the minimum detectable effect. | |
| `stats_power_curve` | Power as a function of sample size for one or more effect sizes (one curve each), for the same tests as stats\_power\_solve. | |
| `stats_proportion_sample_size` | Sample size and power for proportions: the n that gives a confidence interval of a given half-width, the group-1 size needed to detect a difference between two proportions at a target power (or the power of given group sizes), and the n for a one-tailed normal test of a difference. | |
| `stats_equivalence_power` | Power of the two one-sided tests (TOST) for a proportion to show it lies inside \[low, upp] when the true proportion is p\_alt, at each sample size: exact binomial or normal approximation. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Regression
Source: https://docs.fincept.in/reference/stats/regression
Linear models: ordinary, weighted and generalized least squares, AR errors, quantile, robust, recursive, rolling and beta regression, with robust covariances and predictions.
Toolset `stats_regression`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_ols` | Ordinary least squares regression. | core |
| `stats_wls` | Weighted least squares: each row weighted by the weights column (use 1/variance). | |
| `stats_gls` | Generalized least squares with a known diagonal error covariance (one variance per row). | |
| `stats_glsar` | Feasible GLS with AR(p) errors (iterated Cochrane-Orcutt): regression for time series whose residuals are autocorrelated. | |
| `stats_quantile_regression` | Quantile regression at one or more quantiles (0.5 = median/least absolute deviation): how the regressors move each part of the response's distribution. | |
| `stats_robust_regression` | Robust linear regression by M-estimation (iteratively reweighted least squares): coefficients that outliers cannot drag. | |
| `stats_recursive_ls` | Recursive least squares: the coefficients re-estimated as each observation is added, with the CUSUM and CUSUM-of-squares statistics for parameter stability. | |
| `stats_rolling_regression` | Rolling-window least squares: coefficients (e.g. a stock's beta) and R² re-estimated over a moving window. | |
| `stats_beta_regression` | Beta regression for a response strictly between 0 and 1 (rates, shares, recovery rates): a logit-link mean model with a precision parameter. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Survival and duration analysis
Source: https://docs.fincept.in/reference/stats/survival
Time-to-event analysis with censoring: Cox proportional hazards regression with hazard ratios and baseline hazards, Kaplan-Meier survival curves with confidence bands and median survival, log-rank and weighted tests between groups, and cumulative incidence under competing risks.
Toolset `stats_survival`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_cox_ph` | Cox proportional hazards regression for censored durations (time to default, prepayment, delisting, client attrition): how covariates scale the hazard of the event. | |
| `stats_kaplan_meier` | Kaplan-Meier estimate of the survival function from censored durations, overall or per group (fund survival, loan survival to default, client retention). | |
| `stats_logrank_test` | Tests whether survival differs between groups (default timing by rating, fund survival by strategy): the log-rank test or a weighted variant (Gehan-Breslow, Tarone-Ware, Fleming-Harrington), optionally stratified. | |
| `stats_cumulative_incidence` | Cumulative incidence of each cause under competing risks (a mortgage ends in default or prepayment, a fund closes or merges): the probability of having failed from each cause by every time, which, unlike one minus a Kaplan-Meier curve, accounts for the other causes. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Hypothesis tests
Source: https://docs.fincept.in/reference/stats/tests
t, z and Welch tests, equivalence (TOST), one-way, factorial and repeated-measures ANOVA, Tukey HSD and pairwise comparisons, multiple-testing corrections, proportion, binomial and Poisson-rate tests, contingency tables, runs, normality and goodness-of-fit tests, effect sizes, rater agreement, mediation and Oaxaca-Blinder decomposition.
Toolset `stats_tests`: 21 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_compare_means` | Tests a mean against a value (one sample), the mean of paired differences (paired=true), or the difference of two independent means (Welch by default, pooled Student optional), as a t or z test. | core |
| `stats_equivalence_test` | Two one-sided tests (TOST) of equivalence: is the mean (one sample), the mean paired difference, or the difference of two independent means inside \[low, upp]? Equivalence is concluded when the TOST p-value (the larger of the two one-sided p-values) is below alpha, equivalently when the 1 - 2\*alpha interval lies inside the margins. | |
| `stats_anova_oneway` | One-way ANOVA: do the means of several groups differ? Welch's test by default (no equal-variance assumption). | |
| `stats_anova_table` | ANOVA table of a linear model fitted by least squares from a formula: each term's sum of squares, degrees of freedom, F statistic and p-value (types 1, 2 or 3), optionally with heteroskedasticity-robust tests, plus each term's partial eta squared. | |
| `stats_anova_repeated` | Repeated-measures ANOVA for a balanced design: every subject is measured under every combination of the within-subject factors. | |
| `stats_mediation` | Causal mediation analysis with two linear models (mediator \~ exposure + covariates. | up to 180 s |
| `stats_oaxaca_blinder` | Oaxaca-Blinder decomposition of the gap between two groups' mean outcomes into the part explained by differences in characteristics (endowments) and the part due to different coefficients (unexplained), each from a linear model per group. | |
| `stats_runs_test` | Runs test of randomness: are values above and below a cutoff (mean, median, or a threshold such as 0 for up/down days) ordered randomly, or do they cluster (too few runs: momentum, trends) or alternate (too many runs: mean reversion)? With values2, the Wald-Wolfowitz test that two samples share one distribution. | |
| `stats_normality_test` | Tests whether values are normally distributed with several tests side by side: Jarque-Bera (skewness and kurtosis), D'Agostino-Pearson omnibus, Anderson-Darling, and Lilliefors (Kolmogorov-Smirnov with estimated mean and variance). | |
| `stats_gof_discrete` | Chi-square goodness of fit of a discrete distribution (Poisson, negative binomial, binomial) to count data, with parameters given or fitted by moments. | |
| `stats_effect_size` | Standardized effect sizes from summary statistics, for judging practical (not just statistical) significance and as inputs to stats\_power\_solve: Hedges' g (bias-corrected standardized mean difference) with its variance and confidence interval, Cohen's h for two proportions, and Cohen's f and f² for several means. | |
| `stats_agreement` | Agreement between raters beyond chance: Cohen's kappa for two raters (optionally linear or quadratic weighted for ordered categories) with its standard error, interval and test against zero. | |
| `stats_pairwise_comparisons` | Every pair of groups compared after an ANOVA: Tukey's HSD with simultaneous confidence intervals of each mean difference, or per-pair t, Welch or Mann-Whitney tests with a multiple-testing correction. | |
| `stats_multiple_testing` | Adjusts many p-values for multiple testing, e.g. when screening many strategies, factors or signals: family-wise error control (Bonferroni, Sidak, Holm, Holm-Sidak, Simes-Hochberg, Hommel) or false discovery rate control (Benjamini-Hochberg, Benjamini-Yekutieli, two-stage adaptive). | |
| `stats_proportion_test` | Tests proportions: one group against a value (z test, exact binomial p-value, Wilson interval). | |
| `stats_proportion_confint` | Confidence intervals for proportions. | |
| `stats_binomial_test` | Exact binomial test of a success probability (e.g. is a strategy's hit rate above 50%?), with the Clopper-Pearson interval. | |
| `stats_poisson_rate_test` | Tests event rates (events per unit of exposure): one rate against a value, or two rates by their ratio or difference, with the chosen test plus the E-test (an exact-type unconditional test) and confidence intervals. | |
| `stats_contingency_table` | Analyses a two-way contingency table: Pearson chi-square test of independence, linear-by-linear (ordinal) association test, expected counts, standardized residuals and local odds ratios. | |
| `stats_stratified_tables` | Combines several 2x2 tables, one per stratum (one row of data per stratum): the Mantel-Haenszel pooled odds ratio with its interval and pooled risk ratio, the Cochran-Mantel-Haenszel test that the common odds ratio is 1, and the Breslow-Day test that the odds ratio is the same in every stratum. | |
| `stats_cochrans_q` | Cochran's Q test that several matched binary outcomes (each subject observed under every treatment) have the same success rate. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Time-series analysis
Source: https://docs.fincept.in/reference/stats/tsa-analysis
Autocorrelation, partial autocorrelation and cross-correlation with Ljung-Box tests; unit-root and stationarity tests (ADF, KPSS, Zivot-Andrews, range); Engle-Granger cointegration; BDS independence and variance-break tests; classical, STL and MSTL seasonal decomposition; Hodrick-Prescott, Baxter-King and Christiano-Fitzgerald filters, polynomial detrending and the periodogram.
Toolset `stats_tsa_analysis`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_correlogram` | Autocorrelation (ACF) and partial autocorrelation (PACF) of one series up to nlags, each with its confidence band, plus the autocovariances and the Ljung-Box and Box-Pierce Q statistics with p-values at every lag. | |
| `stats_cross_correlogram` | Cross-correlation of two equally long series at lags −nlags to +nlags: the value at lag k is corr(x\[t+k], y\[t]), so a peak at k > 0 means y leads x by k periods and at k \< 0 that x leads y. | |
| `stats_seasonal_decompose` | Splits a series into trend, seasonal and residual components by STL (LOESS, default), classical moving averages (additive or multiplicative) or MSTL (several seasonal periods at once). | |
| `stats_trend_cycle_filter` | Separates a series into trend and cycle with the Hodrick-Prescott filter, the Baxter-King or Christiano-Fitzgerald band-pass filters (cycles between low and high periods), or a polynomial detrend. | |
| `stats_periodogram` | Spectral density of a series by the periodogram or Welch's averaged periodogram. | |
| `stats_stationarity_test` | Unit-root and stationarity tests on one series: augmented Dickey-Fuller (null: unit root), KPSS (null: stationary), both together with a joint verdict (default), Zivot-Andrews (unit root against stationarity with one structural break, whose date it reports) and the range unit-root test. | core |
| `stats_engle_granger` | Engle-Granger two-step cointegration test of y on one to five x columns: an ADF test on the residual of the cointegrating regression with MacKinnon p-values (null: no cointegration). | |
| `stats_bds_test` | BDS test of the null that a series is independent and identically distributed, at embedding dimensions 2 to max\_dim. | |
| `stats_breakvar_test` | Test of a change in variance between the first and last parts of a series (usually model residuals): the ratio of the sums of squares of the last and first subsets. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Time-series models
Source: https://docs.fincept.in/reference/stats/tsa-models
Forecasting models for one series: ARIMA/SARIMAX with seasonality and regressors, autoregression and ARDL/error correction, exponential smoothing (Holt-Winters, ETS), Theta, unobserved components, Markov regime switching, STL forecasting, ARMA order selection and theoretical ARMA processes.
Toolset `stats_tsa_models`: 11 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_arima` | ARIMA / seasonal SARIMA with optional exogenous regressors (ARIMAX/SARIMAX), fitted by maximum likelihood, forecasting steps periods ahead with confidence intervals (series + line chart with band). | core, up to 180 s |
| `stats_autoreg` | Autoregression AR(p) by least squares, optionally choosing p by AIC/BIC/HQIC, with trend, seasonal dummies and exogenous regressors. | up to 120 s |
| `stats_ardl` | Autoregressive distributed-lag model ARDL(p, q): y on its own lags and current/lagged regressors by least squares, optionally choosing the orders by AIC/BIC. | up to 120 s |
| `stats_arma_order_select` | Fits every ARMA(p, q) with p up to max\_ar and q up to max\_ma by maximum likelihood and tabulates AIC, BIC or HQIC for each (lower is better), naming the best order per criterion. | up to 240 s |
| `stats_arma_process` | The theoretical properties of an ARMA(p, q) process given its coefficients: stationarity and invertibility with the characteristic roots, the theoretical ACF and PACF, the impulse response (the MA(infinity) psi weights) and the AR(infinity) representation, as tables and charts. | |
| `stats_exponential_smoothing` | Classical exponential smoothing: Holt-Winters (additive or multiplicative trend and seasonality, optionally damped), Holt's linear or exponential trend, or simple exponential smoothing, with smoothing weights fitted by least squares. | up to 120 s |
| `stats_ets` | ETS(error, trend, seasonal) exponential smoothing as a state-space model fitted by maximum likelihood: additive or multiplicative error, trend (optionally damped) and seasonality. | up to 240 s |
| `stats_theta` | Theta method (Assimakopoulos-Nikolopoulos, as SES with drift): a strong, simple benchmark forecaster that deseasonalizes when a seasonality test says so. | up to 120 s |
| `stats_stl_forecast` | STL forecasting: decomposes the series into trend, seasonal and remainder by LOESS (STL), forecasts the seasonally adjusted series with ARIMA or ETS, and adds the last seasonal cycle back. | up to 180 s |
| `stats_unobserved_components` | Unobserved components (structural time-series) model by Kalman filter maximum likelihood: the series as level plus trend, seasonal, cycle, autoregressive and regression parts. | up to 240 s |
| `stats_markov_switching` | Markov regime-switching model (Hamilton) by maximum likelihood: a regression or autoregression whose mean, variance and coefficients switch between hidden regimes following a Markov chain. | up to 300 s |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Multivariate time series
Source: https://docs.fincept.in/reference/stats/tsa-multivariate
Vector autoregression with lag selection, forecasts, impulse responses, variance decompositions, Granger and instantaneous causality, whiteness, normality and stability checks; structural VAR; VARMAX; vector error correction with Johansen cointegration rank; dynamic factor models (including mixed monthly/quarterly) and pairwise Granger causality tests.
Toolset `stats_tsa_multivariate`: 9 tools.
| Tool | What it does | Notes |
| - | - | - |
| `stats_var` | Vector autoregression of several stationary series (use growth rates or differences of prices and levels). | |
| `stats_var_causality` | Granger causality inside a fitted VAR: whether the past of the causing variable(s) improves the forecast of the caused variable(s), for every ordered pair (and each variable against all others jointly) or for the groups given. | |
| `stats_granger_causality` | Bivariate Granger causality tests for every ordered pair of columns at each lag from 1 to maxlag: does the past of the cause improve a regression of the effect on its own past? Returns the SSR F, SSR chi-squared, likelihood-ratio and parameter F tests with p-values per pair and lag, and per pair the smallest F p-value. | |
| `stats_dynamic_factor` | Dynamic factor model: a few unobserved common factors, following a VAR, drive many observed series. | up to 300 s |
| `stats_var_irf` | Impulse responses of a VAR: how every variable responds over time to a shock in each variable, plain or Cholesky-orthogonalized (ordering = variables), optionally cumulative, with asymptotic or Monte Carlo error bands. | up to 180 s |
| `stats_svar` | Structural VAR identified by short-run restrictions on A (contemporaneous relations among the variables) and / or B (impact of the structural shocks), each a matrix whose numbers are fixed and whose "E" entries are estimated by maximum likelihood. | up to 180 s |
| `stats_varmax` | Vector ARMA model (VARMAX) estimated by maximum likelihood in state-space form: a VAR with moving-average terms, useful when a pure VAR needs many lags. | up to 300 s |
| `stats_johansen_test` | Johansen test of how many independent cointegrating relations tie a set of non-stationary series (levels, e.g. log prices): the trace and maximum-eigenvalue statistics for every rank with their critical values, the rank each sequential procedure selects, the eigenvalues and the cointegrating vectors. | |
| `stats_vecm` | Vector error-correction model for cointegrated series in levels (e.g. log prices or rates): short-run dynamics plus adjustment toward long-run equilibrium relations. | |
Inputs, limits and outputs are described in [Fincept Stats](/guides/fincept-stats). Full schemas: `fincept_describe_tool`.
# Cycle indicators (Hilbert transform)
Source: https://docs.fincept.in/reference/technicals/cycle
Hilbert-transform dominant cycle period and phase, in-phase and quadrature components, sine and lead-sine waves, and the trend-versus-cycle mode.
Toolset `ta_cycle`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `ta_cycle` | A Hilbert-transform cycle indicator of the closes (or source, or one series): its output(s) aligned to the dates with the warm-up (63 bars for most) reported, the last values and a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Any indicator
Source: https://docs.fincept.in/reference/technicals/indicators
Every indicator by name: many at once over the same bars (one aligned table and chart), and each indicator's documentation: inputs, parameters with defaults and meaning, outputs, warm-up and unstable period, moving-average types.
Toolset `ta_indicators`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `ta_indicators` | Computes up to 30 indicators (any of the 201: moving averages, bands, RSI, MACD, stochastics, ADX, ATR, volume, cycle, statistics, math, candlestick patterns) over the same OHLCV bars or series in one call. | |
| `ta_describe` | Documents the indicators: with indicator, its display name, group, the tool that computes it, the bar columns it reads, every parameter (kind, default, meaning), its outputs (as returned) with their flags, the warm-up in bars at the defaults and for given params/unstable\_period, and whether it has an unstable period; without, a table of all 201 (or one group's) with their parameters and outputs. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Math transforms and operators
Source: https://docs.fincept.in/reference/technicals/math
Element-wise arccosine, arcsine, arctangent, ceiling, cosine, hyperbolic cosine, exponential, floor, natural and base-10 logarithm, sine, hyperbolic sine, square root, tangent and hyperbolic tangent; addition, subtraction, multiplication and division of two series; cumulative sum; rolling sum, highest, lowest, both, and the bar positions of the highest and lowest.
Toolset `ta_math`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `ta_math_transform` | An element-wise math function of the closes (or source, or one series): the transformed series aligned to the dates with a line chart. | |
| `ta_math_operator` | Arithmetic on two series (a spread with SUB, a ratio with DIV) or a rolling sum, extreme or extreme's position on one: the result aligned to the dates with a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Momentum indicators
Source: https://docs.fincept.in/reference/technicals/momentum
RSI, ADX/ADXR/DX with the directional indicators and movement, Aroon, CCI, CMO, MFI, momentum and rate of change, TRIX, Williams %R, ultimate oscillator, balance of power, Coppock, DPO, efficiency ratio, Elder ray, forecast oscillator, Williams fractals, IMI, Qstick, TSI, VHF, vortex, Williams A/D; MACD (standard, any MA type, fixed 12/26), APO, PPO, awesome and accelerator oscillators; stochastic (slow, fast, of RSI), KDJ and the stochastic momentum index.
Toolset `ta_momentum`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `ta_momentum` | A momentum or trend-strength indicator on OHLCV bars (or one series for the close-only ones such as RSI, CMO, MOM, ROC, TRIX, TSI): its output(s) aligned to the dates with the warm-up reported, the last values and a line chart. | |
| `ta_oscillator` | A moving-average oscillator on the closes (or source, or one series; AO and AC read high/low): its lines aligned to the dates with the warm-up reported, a line chart and a bar chart of the histogram. | |
| `ta_stochastic` | A stochastic oscillator from high/low/close bars (STOCHRSI from the closes or one series): %K and %D (KDJ also J) aligned to the dates, 0-100 scale, with the warm-up reported and a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Overlap studies
Source: https://docs.fincept.in/reference/technicals/overlap
Indicators on the price's own scale: simple, exponential, weighted, double and triple exponential, triangular, Kaufman adaptive, MESA adaptive, T3, Hull, zero-lag, Wilder and volume-weighted moving averages, variable-period MA, Hilbert trendline, midpoint and midprice; Bollinger, Keltner, Donchian and acceleration bands; parabolic SAR (standard and extended) and SuperTrend.
Toolset `ta_overlap`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `ta_moving_average` | A moving average of the closes (or of source, or of one series): any of 18 kinds, with every parameter. | |
| `ta_bands` | Price bands: upperband, middleband and lowerband aligned to the dates, with the warm-up reported and a line chart over the price. | |
| `ta_trailing_stop` | Trailing stop-and-reverse levels from high/low bars (SUPERTREND also reads close): the stop for every bar aligned to the dates, with the warm-up reported, and a line chart over the price. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Fincept Technicals
Source: https://docs.fincept.in/reference/technicals/overview
Every Fincept Technicals module and its toolset.
17 tools in 10 modules, plus `ta_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Cycle indicators (Hilbert transform)](/reference/technicals/cycle) | `ta_cycle` | Hilbert-transform dominant cycle period and phase, in-phase and quadrature components, sine and lead-sine waves, and the trend-versus-cycle mode. | 1 |
| [Any indicator](/reference/technicals/indicators) | `ta_indicators` | Every indicator by name: many at once over the same bars (one aligned table and chart), and each indicator's documentation: inputs, parameters with defaults and meaning, outputs, warm-up and unstable period, moving-average types. | 2 |
| [Math transforms and operators](/reference/technicals/math) | `ta_math` | Element-wise arccosine, arcsine, arctangent, ceiling, cosine, hyperbolic cosine, exponential, floor, natural and base-10 logarithm, sine, hyperbolic sine, square root, tangent and hyperbolic tangent; addition, subtraction, multiplication and division of two series; cumulative sum; rolling sum, highest, lowest, both, and the bar positions of the highest and lowest. | 2 |
| [Momentum indicators](/reference/technicals/momentum) | `ta_momentum` | RSI, ADX/ADXR/DX with the directional indicators and movement, Aroon, CCI, CMO, MFI, momentum and rate of change, TRIX, Williams %R, ultimate oscillator, balance of power, Coppock, DPO, efficiency ratio, Elder ray, forecast oscillator, Williams fractals, IMI, Qstick, TSI, VHF, vortex, Williams A/D; MACD (standard, any MA type, fixed 12/26), APO, PPO, awesome and accelerator oscillators; stochastic (slow, fast, of RSI), KDJ and the stochastic momentum index. | 3 |
| [Overlap studies](/reference/technicals/overlap) | `ta_overlap` | Indicators on the price's own scale: simple, exponential, weighted, double and triple exponential, triangular, Kaufman adaptive, MESA adaptive, T3, Hull, zero-lag, Wilder and volume-weighted moving averages, variable-period MA, Hilbert trendline, midpoint and midprice; Bollinger, Keltner, Donchian and acceleration bands; parabolic SAR (standard and extended) and SuperTrend. | 3 |
| [Candlestick patterns](/reference/technicals/patterns) | `ta_patterns` | All 61 Japanese candlestick patterns (doji family, hammer and hanging man, engulfing, harami, stars, three white soldiers and black crows, kicking, marubozu, hikkake, ...) on OHLC bars: one pattern's signal at every bar, or a scan of many patterns listing which fired on which dates. | 2 |
| [Price transforms](/reference/technicals/price-transform) | `ta_price_transform` | Average price, median price, typical price, weighted close, Heikin-Ashi candles and the average (mean absolute) deviation. | 1 |
| [Rolling statistics](/reference/technicals/statistics) | `ta_statistics` | Rolling beta and Pearson correlation of two series, rolling linear regression (end value, slope, intercept, angle, one-bar forecast), standard deviation, variance, nearest-rank percentile and percent rank. | 1 |
| [Volatility indicators](/reference/technicals/volatility) | `ta_volatility` | True range, average true range (ATR) and normalized ATR, average day range, Chaikin's volatility, the mass index and the relative volatility index. | 1 |
| [Volume indicators](/reference/technicals/volume) | `ta_volume` | On-balance volume, Chaikin accumulation/distribution line and oscillator, Chaikin money flow, Elder's force index, market facilitation index, negative and positive volume indexes, percentage volume oscillator, price-volume trend, relative volume and the cumulative VWAP. | 1 |
# Candlestick patterns
Source: https://docs.fincept.in/reference/technicals/patterns
All 61 Japanese candlestick patterns (doji family, hammer and hanging man, engulfing, harami, stars, three white soldiers and black crows, kicking, marubozu, hikkake, ...) on OHLC bars: one pattern's signal at every bar, or a scan of many patterns listing which fired on which dates.
Toolset `ta_patterns`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `ta_candlestick` | One candlestick pattern on OHLC bars: its signal at every bar aligned to the dates (null over the warm-up; 0 none, + bullish, - bearish), the bars where it fired (newest first) and a candlestick chart with the signal. | |
| `ta_candlestick_scan` | Scans OHLC bars for candlestick patterns (all 61 by default) and lists which fired on which dates, newest first: the date, pattern, its name, the signal (+ bullish, - bearish) and direction; per-pattern bullish/bearish counts; the patterns on the last bar; and a candlestick chart with the hits. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Price transforms
Source: https://docs.fincept.in/reference/technicals/price-transform
Average price, median price, typical price, weighted close, Heikin-Ashi candles and the average (mean absolute) deviation.
Toolset `ta_price_transform`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `ta_price_transform` | A price transform of OHLC bars: the transformed price aligned to the dates with a line chart over the close (Heikin-Ashi as a candlestick chart). | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Rolling statistics
Source: https://docs.fincept.in/reference/technicals/statistics
Rolling beta and Pearson correlation of two series, rolling linear regression (end value, slope, intercept, angle, one-bar forecast), standard deviation, variance, nearest-rank percentile and percent rank.
Toolset `ta_statistics`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `ta_statistics` | A rolling statistic over a window of the closes (or source, or one series; BETA and CORREL compare two series): the value at every bar aligned to the dates, with the warm-up reported and a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Volatility indicators
Source: https://docs.fincept.in/reference/technicals/volatility
True range, average true range (ATR) and normalized ATR, average day range, Chaikin's volatility, the mass index and the relative volatility index.
Toolset `ta_volatility`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `ta_volatility` | A volatility indicator from high/low(/close) bars (RVI from the closes or one series): its output aligned to the dates in price units (NATR in %), with the warm-up reported, the last value and a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Volume indicators
Source: https://docs.fincept.in/reference/technicals/volume
On-balance volume, Chaikin accumulation/distribution line and oscillator, Chaikin money flow, Elder's force index, market facilitation index, negative and positive volume indexes, percentage volume oscillator, price-volume trend, relative volume and the cumulative VWAP.
Toolset `ta_volume`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `ta_volume` | A volume indicator from OHLCV bars (a volume column is required): its output aligned to the dates with the warm-up reported, the last value and a line chart. | |
Inputs, limits and outputs are described in [Fincept Technicals](/guides/fincept-technicals). Full schemas: `fincept_describe_tool`.
# Account
Source: https://docs.fincept.in/reference/toolsets/account
Your profile, credit balance, usage, the credit ledger and account notices.
Toolset `account`: 5 tools. List them all with `?toolsets=account`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `account_get_profile` | The signed-in user's profile: user\_id, username, email, email\_verified, created\_at (member since), tier, active (subscription live), phone, country\_code, country, country\_iso2, contact\_complete and profession (field\_name, category\_name, role). | Read, core |
| `account_get_credits` | The account's credit balance: credits (the total), granted\_credits (this period's allowance, which can expire), purchased\_credits (bought, never expire) and tier. | Read, core |
| `account_get_usage` | Credit consumption over the last N days: total\_credits\_used, total\_credits\_granted, total\_calls, total\_tokens, and breakdowns by\_model, by\_surface (the tab that spent it) and daily. | Read |
| `account_get_credit_ledger` | The itemised credit statement, newest first: entries (kind grant, debit, refund or adjust. | Read |
| `account_list_notices` | One page of the notices addressed to the account (global, its tier or the user): notices (title, body, level, pinned, links, published\_at, expires\_at), unread and next\_cursor. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Agents
Source: https://docs.fincept.in/reference/toolsets/agents
Server-side agent runs, schedules and memories: inspect, cancel, pause and delete.
Toolset `agents`: 9 tools. List them all with `?toolsets=agents`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `agents_list_runs` | The account's server agent runs under "runs", newest first: id, kind (task, team, workflow, desk, chat), goal, status, question (when waiting for the user), error and timestamps. | Read, core |
| `agents_get_run` | One server agent run under "run": goal, status, config, plan, per-step checkpoints, result (the final output once completed), the pending question when status is waiting\_input, and error. | Read |
| `agents_cancel_run` | Cancels a run that has not finished. | Write |
| `agents_list_schedules` | The account's recurring agent schedules under "schedules": id, name, goal, kind, cadence (every \s\|m\|h, daily HH:MM, weekdays HH:MM), timezone, next\_run\_at, enabled and last\_run\_id. | Read |
| `agents_pause_schedule` | Stops a schedule from firing until the user resumes it in the terminal. | Write |
| `agents_delete_schedule` | Deletes a recurring agent schedule. | Delete |
| `agents_list_memories` | What the account's server agents remember across tasks, under "memories": id, kind (fact, skill, reflexion), content, tags, run\_id, created\_at. | Read |
| `agents_add_memory` | Stores a memory the account's server agents recall in later runs. | Write |
| `agents_delete_memory` | Deletes one server-agent memory. | Delete |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Algo strategies
Source: https://docs.fincept.in/reference/toolsets/algo
Algorithm library, versions, baskets and paper deployments with their metrics and trades.
Toolset `algo`: 21 tools. List them all with `?toolsets=algo`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `algo_list_strategies` | The account's algo trading strategies: id, name, timeframe, direction, entry/exit condition trees, stop loss, take profit, trailing stop (percent), position size percent, scale-in settings, eval\_on and version. | Read, core |
| `algo_get_strategy` | One algo strategy in full. | Read |
| `algo_list_strategy_versions` | The saved versions of one strategy (\{version, created\_at}, newest first). | Read |
| `algo_get_strategy_version` | The full strategy as it was at one version number. | Read |
| `algo_save_strategy` | Creates a strategy, or with id replaces that strategy whole (omitted fields reset. | Write |
| `algo_delete_strategy` | Deletes one algo strategy. | Delete |
| `algo_list_deployments` | Every deployment (paper and live) with its strategy, symbol, mode, status, owner device and limits, plus the latest metrics per deployment id (P\&L, trades, win rate, drawdown, position). | Read |
| `algo_get_deployment` | One deployment in full, including its frozen strategy snapshot. | Read |
| `algo_list_stale_deployments` | Running or starting deployments whose desktop heartbeat is older than threshold\_secs, with seconds\_stale. | Read |
| `algo_deploy_paper` | Creates a PAPER deployment of a strategy (mode is always paper and status pending. | Write, credits |
| `algo_stop_deployment` | Sets a deployment's status to stopped. | Write |
| `algo_get_metrics` | A deployment's latest metrics snapshot: total, realized and unrealized P\&L, trade count, win rate, max drawdown, current price and position (qty, side, entry), as heartbeated by the terminal. | Read |
| `algo_list_trades` | A deployment's fills, newest first: side, quantity, price, P\&L, slippage and fill model. | Read |
| `algo_get_deploy_charges` | Daily runtime charges billed over the last days, credits spent, active deployments and the credits per day they will cost (2 per active deployment). | Read |
| `algo_list_basket_catalog` | The prebuilt symbol baskets (index constituents such as NIFTY 50, S\&P 500, Nasdaq-100): key, name, region, exchange, currency, symbols, quote symbols, source, as\_of and whether the sync is stale. | Read |
| `algo_resolve_basket` | Resolves an index or basket name ("nifty it") or catalog key to one catalog basket with its members. | Read |
| `algo_list_baskets` | The account's own named order baskets (groups of order legs), or the one named name. | Read |
| `algo_get_basket` | One order basket with its legs. | Read |
| `algo_create_basket` | Saves a named basket of order legs. | Write |
| `algo_update_basket` | Replaces a basket's name and legs. | Write |
| `algo_delete_basket` | Deletes one order basket. | Delete |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Alternative data
Source: https://docs.fincept.in/reference/toolsets/altdata
Geopolitical events, sovereign bonds and yield curves, maritime and AIS data, shipping flows, ports and trade statistics.
Toolset `altdata`: 44 tools. List them all with `?toolsets=altdata`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `altdata_get_geopolitical_events` | Geopolitical news events extracted from crawled articles, newest first: url, source, event\_category, title, city, country, latitude, longitude, extracted\_date, confidence, event\_summary, with pagination. | Read, core, credits |
| `altdata_list_geopolitics_filters` | The values the geopolitics feed can be filtered by, with event counts: set exactly one of get\_unique\_countries, get\_unique\_cities, get\_unique\_categories or get\_unique\_sources. | Read |
| `altdata_get_economic_calendar` | Past and scheduled economic releases from the platform's calendar corpus, paged. | Read |
| `altdata_get_economic_calendar_filters` | The filter values of one calendar feed with row counts (global: sources, regions, impacts. | Read |
| `altdata_get_sovereign_bonds` | Every covered sovereign: 10Y and other yields (percent), spreads vs US/CN/JP (bp), policy rate, S\&P/Moody's/Fitch/DBRS ratings, CDS (bp), curve slopes, real rate, plus a summary, yield forecasts and data freshness. | Read |
| `altdata_get_sovereign_bond` | One country's sovereign row (yields in percent, spreads and CDS in bp, policy rate, ratings, curve slopes), its yield forecasts and its rank among all covered countries on 10Y yield, CDS and policy rate. | Read, core |
| `altdata_get_yield_curve` | One country's government bond curve: each maturity's yield (percent) with 1, 6 and 12 month changes (bp), the whole curve as it stood 1, 6 and 12 months ago, and past year-end curves. | Read |
| `altdata_get_bond_yield_history` | Daily government bond yields (percent) for up to four maturities of one country, listed daily, weekly or monthly, with each maturity's changes, high and low, and the spread when two are asked for. | Read |
| `altdata_get_mcx_futures` | Daily prices of one MCX (India) commodity future in INR at the contract's quote unit (GOLD per 10 g, SILVER per kg, CRUDEOIL per barrel): front-month, most-active or one expiry, with OHLC, volume, open interest, changes, range, rolls and every contract's latest close. | Read |
| `altdata_search_vessels` | Find ships by name, IMO (7 digits) or MMSI (9 digits): ship\_id, mmsi, imo, name, tracked (whether AIS positions exist) and, for tracked hulls, type, segment, flag, build year, GT and DWT. | Read |
| `altdata_get_vessel` | One vessel's identity card by IMO (7 digits), MMSI (9 digits) or register ship id, saying which key matched. | Read |
| `altdata_get_vessel_position` | A vessel's latest AIS row as stored (last\_pos\_latitude, last\_pos\_longitude, last\_pos\_speed, last\_pos\_angle, last\_pos\_updated\_at, fetched\_at. | Read, credits |
| `altdata_get_vessel_history` | Every stored AIS fix of one vessel, newest first, with total\_records. | Read, credits |
| `altdata_get_vessel_positions` | Latest AIS fix for up to 50 vessels in one call, with the IMOs not found. | Read, credits |
| `altdata_search_vessels_in_area` | Every vessel whose latest fix (or, with days\_ago, its fix nearest that many days ago, within 12 h) lies in a latitude/longitude box. | Read, credits |
| `altdata_get_maritime_data_status` | Freshness of the maritime analytics tables: fleet size, ships active in 7 days, voyage and position counts (estimates), ports located, days processed through and the last position time. | Read |
| `altdata_get_maritime_meta` | The values the maritime analytics filter on: segments, regions, top flags (vessels, DWT), the 400 busiest ports (port\_key, country, region), countries, chokepoints and the data span. | Read |
| `altdata_get_maritime_summary` | Fleet KPIs now (active, moving, median speed in knots, laden share, idle and unfixed ships and DWT, AIS-dark ships), the last 16 weeks of the same, and chokepoint transits in the last 7 days against a 90-day baseline. | Read |
| `altdata_get_shipping_flows` | Voyages under way in the window aggregated origin to destination at region, country or port level (or flag to destination with by=flag): voyages, vessels, DWT, arrivals, under way, median days, laden share and segment mix, largest first. | Read |
| `altdata_get_lane_vessels` | Ships under way now between two endpoints (seen in the last 5 days), largest DWT first, with position, speed, laden flag, origin, destination and ETA. | Read |
| `altdata_get_lane_transit_times` | Weekly transit-time index for one lane over the window plus the year before: voyages, median and p90 days, median ETA slip in hours, DWT. | Read |
| `altdata_get_ship_density` | Vessel-days per grid cell over the window (or one day): cell lower-left corner in 0.5 degree units, vessel\_days, peak, dwt\_days. | Read |
| `altdata_get_chokepoint_transits` | Daily transits of each maritime chokepoint (Suez, Hormuz, Malacca ...) over the window with DWT and bulk/tanker/container/gas counts, plus each chokepoint's per-day baseline over the prior 90 days. | Read |
| `altdata_get_vessel_positions_latest` | Latest fix of every ship active in 7 days matching the filter, largest DWT first: position, speed, draught, laden, origin, destination, ETA. | Read |
| `altdata_get_country_port_calls` | Per country over the window: arrivals, departures, distinct vessels, DWT in and out, laden counts. | Read |
| `altdata_get_country_inbound` | Ships under way whose declared ETA falls in the next horizon days, bucketed by ETA day and destination country (by segment when iso is given), with vessels and DWT. | Read |
| `altdata_get_country_sea_partners` | Which countries one country trades with by sea over the window, in voyages and DWT. | Read |
| `altdata_get_port_calls` | Busiest ports by arrivals over the window, with country, region, calls in the previous window of equal length and the top segments. | Read |
| `altdata_get_port_congestion` | Ships stationary near their declared destination port but not at berth (last 3 days), per port with how long they have waited and how many are laden. | Read |
| `altdata_get_port_matrix` | Voyages between the top n ports over the window, one cell per origin-destination pair. | Read |
| `altdata_get_fleet_breakdown` | Ships seen in 30 days grouped by segment (default), flag, build year, size band or segment and flag: vessels, DWT, GT, average age, ships 20+ years old, moving and laden counts. | Read |
| `altdata_get_shipping_signals` | Weekly series per segment: active, moving, median speed, laden, idle vessels and DWT, unfixed vessels and DWT, AIS-dark ships. | Read |
| `altdata_get_idle_vessels` | Ships stationary for at least min\_days (floating storage, lay-up) with position, draught and laden flag, plus totals by segment. | Read |
| `altdata_get_unfixed_vessels` | Ships moving with no declared destination or sailing "for orders" (spot-market overhang), with position and laden flag, plus totals by segment. | Read |
| `altdata_get_ais_anomalies` | Ships whose AIS went dark for over 72 hours (longest gap first) and implausible position jumps in the window. | Read |
| `altdata_get_vessel_profile` | One ship's fleet record (particulars, last position, destination, age, idle days) and its voyages. | Read |
| `altdata_get_trade_meta` | What the trade tools can be asked: the loaded years, the countries (ISO3 id, name, continent), the HS product sections, classification (HS 1992), levels and limits. | Read |
| `altdata_get_trade_partners` | A country's goods trade partners for one year, ranked by total trade: exports, imports, total and balance in current USD, plus totals over the returned partners. | Read, credits |
| `altdata_get_trade_products` | What a country exports or imports in one year (optionally with one partner) by HS section, HS2, HS4 or HS6, in current USD, largest first. | Read, credits |
| `altdata_get_trade_timeseries` | A country's goods trade for every loaded year, in current USD, optionally narrowed to one partner or one HS6 product. | Read, credits |
| `altdata_get_trade_complexity` | The Economic Complexity Index league table for a year (rank 1 most complex). | Read, credits |
| `altdata_get_trade_services` | A country's trade in services for one year by top-level EBOPS category (travel, transport, financial ...), exports or imports, optionally with one partner, in current USD. | Read, credits |
| `altdata_get_development_indicators` | World Bank development indicators for one country: with indicator, that series' whole history. | Read, credits |
| `altdata_get_tariffs` | Applied and predicted tariff rates an importer levies on an exporter's goods, by HS4 line (hs4 is OEC's section-prefixed numeric id). | Read, credits |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Analytics
Source: https://docs.fincept.in/reference/toolsets/analytics
Portfolio analytics, attribution, technicals, macro factors, market regimes, option strategies, volatility surfaces and rule backtests.
Toolset `analytics`: 18 tools. List them all with `?toolsets=analytics`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `analytics_run_quantstats` | QuantStats-style report over one year of daily history for a saved portfolio: performance (total and annualised return, best/worst day), risk (annualised volatility, max drawdown, daily 95% VaR and CVaR, downside deviation), ratios (Sharpe, Sortino, Calmar, profit factor) and the return distribution. | Read, core, credits |
| `analytics_run_montecarlo` | Monte Carlo of a saved portfolio over 252 daily steps from one year of history: median, 5th and 95th percentile returns, probability of loss and expected max drawdown (percent), plus sample paths. | Read, credits |
| `analytics_optimize_portfolio` | Optimal weights for a saved portfolio's holdings from one year of daily prices, with expected annual return, volatility and Sharpe, the other strategies for comparison, risk contributions and an efficient frontier. | Read, credits |
| `analytics_run_ffn` | FFN-style analysis of a saved portfolio over one year of daily prices: per-asset and portfolio return, CAGR, volatility, Sharpe, drawdown and streak statistics, and alternative weightings (equal risk contribution, inverse volatility, equal) compared with the current one. | Read, credits |
| `analytics_run_attribution` | Where a saved portfolio's return came from over a window: contribution by position and sector, the mark-to-market split, and the active return against a benchmark split into beta-explained and selection. | Read, credits |
| `analytics_list_attribution_runs` | The stored end-of-day attribution reports of one portfolio, newest first, each with its trigger (manual or auto), benchmark, lookback, credits paid and full result. | Read |
| `analytics_get_attribution_schedule` | Whether a portfolio is enrolled in the daily automatic attribution report, with its benchmark, lookback, last charge date and the price per day (credits\_per\_day). | Read |
| `analytics_compute_technicals` | Daily technical-indicator grid for a symbol (SMA, EMA, MACD, ADX, Aroon, RSI, stochastic, Williams %R, ROC, MFI, ATR, Bollinger, OBV, VWAP, CMF and more), one row per bar plus a summary with buy/neutral/sell tallies per indicator group and an overall signal. | Read, core |
| `analytics_get_risk_free_rate` | The current risk-free rate as an annual decimal (0.043 = 4.3%) from FRED DGS10 (10-year Treasury), cached for 24 hours, with its source. | Read |
| `analytics_get_macro_factors` | Dated observations (YYYY-MM-DD, value) for one or more FRED series ids such as DGS10, CPIAUCSL, UNRATE, FEDFUNDS. | Read |
| `analytics_scan_market_regime` | Cross-sectional read of a universe of at least 5 distinct symbols: regime (RISK-ON, RISK-OFF, CORRELATED, BROAD ADVANCE, BROAD DECLINE, MIXED) and a one-line reading, breadth above each symbol's own moving average, advancing breadth, dispersion, average pairwise correlation, annualised realised volatility, leaders and laggards. | Read, credits |
| `analytics_model_option_strategy` | Black-Scholes risk profile of a multi-leg option strategy: per-leg theoretical value and Greeks, aggregated delta/gamma/vega/theta, net premium, breakevens, a spot x volatility scenario P\&L grid with worst and best cells, and a non-authoritative margin estimate (worst grid loss, floored at 5% of short notional). | Read, credits |
| `analytics_calibrate_vol_surface` | Joint SVI calibration of an implied-volatility surface across at least two expiries under a no-calendar-arbitrage constraint, multi-started per slice. | Read, credits |
| `analytics_list_surface_fits` | The account's stored surface calibrations, newest first: underlying, as-of, fitted time, slice count, calendar\_ok, slices repaired, worst RMSE (IV) and the fit. | Read |
| `analytics_simulate_alt_program` | Seeded correlated Monte Carlo of a private-markets commitment program (Takahashi-Alexander pacing): percentile bands per period of capital calls, distributions, net and cumulative cash flow and NAV, the probability of a funding shortfall against reserves plus credit line, the need at the stated confidence and the largest sustainable annual commitment. | Read, credits |
| `analytics_backtest_rules` | Backtests one symbol with entry and exit rules in the screener's condition DSL, stop loss, take profit, trailing stop and position sizing, on the fincept engine with a default cost model for the asset class. | Read, credits |
| `analytics_list_rule_backtests` | The account's stored rule backtests, newest first. | Read |
| `analytics_get_rule_backtest` | One stored rule backtest of this account with its result. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Backtests
Source: https://docs.fincept.in/reference/toolsets/backtest
Strategy backtests and parameter sweeps, templates, validation, cost profiles, saved strategies and run history.
Toolset `backtest`: 26 tools. List them all with `?toolsets=backtest`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `backtest_run` | Runs one backtest of a complete spec on the native engine and returns the engine's result document with its run\_id, warnings and cached flag. | Write, core, credits |
| `backtest_optimize` | Sweeps the parameter ranges in spec.optimize (method, objective, max\_evals, params) and returns the engine's document for the best configuration, the sweep summary under optimization, in the same frame shape as backtest\_run. | Write, credits |
| `backtest_list_templates` | The engine's strategy template catalog: each template's id, name, category, description, whether it is a portfolio strategy, the data it needs and its params (name, type, default, range or options). | Read, core |
| `backtest_validate_spec` | Checks a complete backtest spec exactly as a run would prepare it, free. | Read, core |
| `backtest_preview_splits` | The walk-forward / CPCV train-test windows a sweep over this spec would use, computed on the real data frame without running the sweep. | Read |
| `backtest_list_indicators` | The engine's indicator catalog for rules-based strategies: indicators with their parameters, and a count. | Read |
| `backtest_check_expression` | Validates one arithmetic expression of the strategy DSL (as used in rules and ranking). | Read |
| `backtest_get_instruments` | What each symbol is before a run: asset class, currency, exchange calendar, exchange, name, sector and, for futures, multiplier, tick and lot size. | Read |
| `backtest_list_cost_profiles` | The built-in cost profile names a spec may put in costs.profile (us\_equity\_cash, global\_equity\_cash, in\_equity\_delivery, in\_equity\_intraday, futures, crypto\_spot, crypto\_perp, fx\_spot) and the account's own saved profiles. | Read |
| `backtest_save_cost_profile` | Saves a named custom cost profile (a costs block) to the account. | Write |
| `backtest_update_cost_profile` | Replaces the name and costs block of one saved cost profile. | Write |
| `backtest_delete_cost_profile` | Deletes one saved cost profile. | Delete |
| `backtest_list_runs` | The account's stored backtest runs, pinned first then newest: id, kind (run or optimize), name, family, summary metrics, hashes and timestamps, without the full result. | Read |
| `backtest_get_run` | One stored run's full result document (summary, series, trades, validation battery, spec) with its metadata under run. | Read |
| `backtest_get_run_records` | One page of a run's per-event arrays (orders, positions, round\_trips or logs), which large runs keep outside the result document. | Read |
| `backtest_compare_runs` | Two to four stored runs side by side: each run's summary and its equity curve aligned on one shared time axis t. | Read |
| `backtest_pin_run` | Sets a run's pinned flag (pinned runs are exempt from the 90-day retention sweep). | Write |
| `backtest_delete_run` | Deletes one stored backtest run and its records. | Delete |
| `backtest_list_strategies` | The account's saved backtest specs, newest first (id, name, tags, notes, spec, version, template\_id), and limit: the plan's backtest\_strategies quota. | Read |
| `backtest_search_strategies` | Searches the account's saved strategies (name, tags, notes. | Read |
| `backtest_get_strategy` | One saved backtest strategy with its full spec and its version history. | Read |
| `backtest_save_strategy` | Saves a backtest spec under a name. | Write |
| `backtest_update_strategy` | Replaces a saved strategy's name, tags, notes and spec, keeping the previous version in its history. | Write |
| `backtest_delete_strategy` | Deletes one saved backtest strategy. | Delete |
| `backtest_get_uploaded_bars` | Reads a broker bar series the terminal uploaded (by its data\_id): symbol, exchange, interval, time zone, coverage and bars as \[t, o, h, l, c, v(, oi)] rows. | Read |
| `backtest_get_family` | The multiple-testing ledger of one strategy family (the trial count and Sharpe spread the deflated Sharpe uses) and its 20 most recent runs. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Credits by tool
Source: https://docs.fincept.in/reference/toolsets/credits
Every tool that can spend credits, and when it charges.
Every other tool is free. Prices are the terminal's, charged to the same balance; a refused, failed or empty call costs nothing unless stated. Daily and hourly spend caps apply. See [credits and limits](/guides/credits-and-limits).
| Tool | Cost |
| - | - |
| `backtest_run` | Costs 1 credit (action backtest\_run), charged only when a result is delivered; an identical repeat is served from history for free. |
| `backtest_optimize` | Costs 2 credits (action backtest\_optimizer), charged only on a delivered result. |
| `algo_deploy_paper` | The desktop terminal runs deployments; while one is running or starting it costs 2 credits a day (action algo\_deploy\_day). |
| `crypto_run_var` | Parametric and historical (the default) are free; adding monte\_carlo costs 1 credit (action crypto\_var\_mc). |
| `crypto_run_scenario` | Costs 1 credit per run (action crypto\_scenario\_replay). |
| `data_get_observations` | Re-loading a series already loaded this month is free; NEW series count against data\_series\_loads\_monthly and past it each call costs 0.1 credit (action data\_series\_load). |
| `data_ai_search_series` | Costs 1 credit (action data\_ai\_search), charged only when the model's interpretation is used; prefer data\_search\_series for a plain keyword search. |
| `data_create_schedule` | Each successful run costs 1 credit (action scheduled\_refresh\_run), about 31 a month for daily; quote it first with data\_quote\_schedule. |
| `filings_search_edgar_text` | A fetch counts against the plan's edgar\_pulls\_monthly allowance; cache hits are free and past the allowance each fetch costs 1 credit (action edgar\_filing\_pull). |
| `filings_get_edgar_submissions` | A fetch counts against the plan's edgar\_pulls\_monthly allowance; cache hits are free and past the allowance each fetch costs 1 credit (action edgar\_filing\_pull). |
| `deals_build_comps` | Costs 2 credits (action ma\_deal\_model); a repeat of the same request the same day is a free cache hit, and a failed or empty set is not charged. |
| `paper_place_order` | Each fill costs 0.05 credits (action paper\_trade\_fill). |
| `paper_close_position` | Each fill costs 0.05 credits (action paper\_trade\_fill). |
| `workspace_save_alert` | While any alert is active the account is charged 1 credit per day in total (action watchlist\_alert\_day), however many alerts are armed. |
| `research_ask_model` | Costs 1 credit per delivered answer (action chat\_message); a failed or empty answer costs nothing. |
| `analytics_run_quantstats` | Costs 2 credits (action portfolio\_ai\_analysis), not charged when the result carries an error (e.g. no holdings). |
| `analytics_run_montecarlo` | Costs 2 credits (action portfolio\_ai\_analysis), not charged when the result carries an error. |
| `analytics_optimize_portfolio` | Costs 2 credits (action portfolio\_ai\_analysis), not charged when the result carries an error. |
| `analytics_run_ffn` | Costs 2 credits (action portfolio\_ai\_analysis), not charged when the result carries an error. |
| `analytics_run_attribution` | Costs 1 credit (action eod\_attribution), not charged when the result carries an error. |
| `analytics_scan_market_regime` | Costs 1 credit (action market\_regime\_scan), not charged when the result carries an error (not enough history). |
| `analytics_model_option_strategy` | Costs 1 credit (action option\_strategy\_model), not charged when the result carries an error. |
| `analytics_calibrate_vol_surface` | Costs 1 credit (action surface\_calibrate), not charged when the result carries an error; a new underlying past the plan's tracked-surfaces quota is refused before any charge. |
| `analytics_simulate_alt_program` | Costs 1 credit (action alt\_program\_model), not charged when the result carries an error. |
| `analytics_backtest_rules` | Costs 1 credit (action backtest\_run); a cached identical run is free. |
| `screener_run_screen` | Costs 1 credit (action screener\_run), also for zero matches; not charged when no symbol could be priced. |
| `news_get_sentiment_aggregate` | Costs 1 credit (action news\_sentiment\_batch); an empty window is not charged. |
| `news_analyze_article` | Costs 2 credits (action news\_analyze\_article), charged only for a delivered result; a cached analysis (24 h, shared) is free and says cached=true. |
| `news_summarize_headlines` | Costs 1 credit (action news\_summarize), charged only for a non-empty summary; the same headlines within 15 minutes are served from cache free. |
| `news_list_monitors` | The user's keyword monitors (id, label, keywords, color, enabled) with the plan's news\_monitors limit and the rate: each monitor costs 1 credit per UTC day it is swept (action news\_monitor\_run), levied by the server's sweep, not by these calls. |
| `news_create_monitor` | Free to create, but an enabled monitor then costs 1 credit per UTC day it is swept (action news\_monitor\_run). |
| `news_update_monitor` | Enabled monitors cost 1 credit per UTC day swept (action news\_monitor\_run). |
| `news_list_automations` | The user's news automations with trigger, action and last sweep status, the shared news\_monitors limit and how much of it monitors and automations use, and the rate: 1 credit per automation per UTC day it is evaluated (action news\_monitor\_run). |
| `news_create_automation` | Free to create; an enabled automation costs 1 credit per UTC day the sweep evaluates it (action news\_monitor\_run) and counts against the news\_monitors quota with monitors. |
| `altdata_get_geopolitical_events` | Costs 1.5 credits (action geo\_events\_query) once per distinct filter set per UTC day; other pages and repeats that day are free. |
| `altdata_get_vessel_position` | Costs 0.5 credits (action vessel\_position); a vessel not found is refunded. |
| `altdata_get_vessel_history` | Costs 2 credits (action vessel\_history); no history is refunded. |
| `altdata_get_vessel_positions` | Costs 1.5 credits for the whole request (action vessel\_multi); refunded when none is found. |
| `altdata_search_vessels_in_area` | Costs 2 credits per sweep (action vessel\_area\_search), kept even when the box is empty. |
| `altdata_get_trade_partners` | Costs 0.5 credits (action trade\_flow\_query). |
| `altdata_get_trade_products` | Costs 1 credit (action trade\_product\_sweep). |
| `altdata_get_trade_timeseries` | Costs 0.5 credits (action trade\_flow\_query); the all-partner query can take several seconds. |
| `altdata_get_trade_complexity` | Costs 0.5 credits (action trade\_flow\_query). |
| `altdata_get_trade_services` | Costs 0.5 credits (action trade\_flow\_query). |
| `altdata_get_development_indicators` | Costs 0.5 credits (action trade\_flow\_query). |
| `altdata_get_tariffs` | Costs 1 credit (action trade\_product\_sweep). |
# Crypto
Source: https://docs.fincept.in/reference/toolsets/crypto
Crypto venues, markets, derivatives data, your crypto accounts and orders, risk, compliance, custody and DeFi. Read-only.
Toolset `crypto`: 76 tools. List them all with `?toolsets=crypto`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `crypto_list_venues` | Every exchange this build connects to: id, name, capabilities (a name-to-bool map of what the venue's connector supports), status (ok, degraded, unknown), latency and whether the account has a key registered there. | Read |
| `crypto_search_markets` | Searches the venues' instrument catalogs by symbol text, venue and type. | Read |
| `crypto_get_instrument` | One unified symbol on every venue that lists it (or one venue): contract terms, precision, limits and venue status. | Read |
| `crypto_get_tickers` | Per-venue tickers for up to 50 symbols (last, bid/ask with sizes, mid, 24h open/high/low, volume, change percent, mark and index) and Fincept's cross-venue index price. | Read, core |
| `crypto_get_index` | Fincept's fair index price for one symbol from the venues' books, with the method and the venues used. | Read |
| `crypto_get_order_book` | One symbol's order book merged across venues: bids and asks with per-venue size, best bid/ask, mid and spread in bps, optionally adjusted for each venue's taker fee. | Read |
| `crypto_get_candles` | OHLCV candles for one symbol on one venue (bars are per venue, never merged). | Read |
| `crypto_get_funding` | Current funding for up to 25 perpetuals on every venue: rate per interval, 8h-normalised rate, APR, predicted rate, next funding time, mark and index. | Read |
| `crypto_get_funding_history` | Funding payments of one perpetual on one venue over a window (default the last 30 days). | Read |
| `crypto_predict_funding` | The next funding rate of one perpetual per venue: the venue's published prediction, or one derived from mark and index. | Read |
| `crypto_get_basis` | Basis of every dated future and perpetual on an underlying against spot: mark, spot, basis in bps, annualised percent and days to expiry per venue, the term curve and calendar spreads. | Read |
| `crypto_get_open_interest` | Open interest of up to 25 derivatives per venue (contracts and notional) with totals. | Read |
| `crypto_get_liquidations` | Recent forced liquidations of one derivative across venues (default the last hour): venue, side, price, size and notional per event, longs/shorts liquidated and per-venue totals. | Read |
| `crypto_get_option_chain` | The option chain of an underlying (BTC, ETH) from Binance, OKX and Bybit: expiries and instruments with quotes, implied volatility and greeks. | Read |
| `crypto_get_vol_surface` | Per-expiry SVI implied volatility surface fitted to the out-of-the-money options of an underlying, with the ATM term structure and any calendar-arbitrage violations. | Read |
| `crypto_get_correlation` | Daily-return correlation of a crypto asset with other series (default NDX, DXY, GOLD) over a window (default 90d) plus a rolling correlation (default 30 days). | Read |
| `crypto_get_exchange_flows` | Exchange reserves and net 1d/7d/30d flows per centralised venue, from DeFiLlama's CEX transparency feed (per venue, not per asset). | Read |
| `crypto_list_positions` | Open positions on every venue the organisation holds a key for, as each venue reports them (size, entry, mark, P\&L, unconverted), with per-venue errors. | Read |
| `crypto_list_balances` | Asset balances (total, free, locked) per venue key, zero balances hidden unless all is true. | Read |
| `crypto_list_orders` | The organisation's crypto orders, newest first. | Read |
| `crypto_get_order` | One crypto order with its fills, state events and child orders. | Read |
| `crypto_list_algos` | The organisation's execution algos (TWAP, VWAP and the like) with progress and status. | Read |
| `crypto_get_algo` | One execution algo with its child orders and whether it is running on this instance. | Read |
| `crypto_list_multileg_orders` | The organisation's multi-leg (spread) orders, newest first. | Read |
| `crypto_get_multileg_order` | One multi-leg order with its legs. | Read |
| `crypto_get_tca_summary` | Transaction cost analysis over a window (default the last 30 days): overall and per-venue scores and the per-order rows. | Read |
| `crypto_get_order_tca` | Transaction cost analysis of one order, recomputed now (benchmarks improve as reversion windows close) unless stored is 1. | Read |
| `crypto_list_rfqs` | The organisation's requests for quote with their quotes and status. | Read |
| `crypto_get_rfq` | One request for quote with its quotes. | Read |
| `crypto_get_nav` | The organisation's crypto net asset value now, broken down by venue, asset and strategy, with any unpriced holdings listed as gaps. | Read |
| `crypto_get_pnl_attribution` | Realised and unrealised P\&L attributed by strategy (default), venue or asset over a window (default the last 30 days). | Read |
| `crypto_get_tax_lots` | Open and closed tax lots with realised gains under a cost-basis method (default fifo). | Read |
| `crypto_optimise_margin` | Where each venue's margin stands against its requirement plus a buffer, and the collateral moves that would balance it. | Read |
| `crypto_propose_rebalance` | Computes the trades that would move the book to target asset weights (fractions of NAV, summing to at most 1. | Read |
| `crypto_list_bots` | The organisation's trading bots with their configuration and live state (equity, realised P\&L, drawdown, fills), and how many are running. | Read |
| `crypto_get_bot` | One trading bot in full. | Read |
| `crypto_list_bot_events` | A bot's event log, newest first. | Read |
| `crypto_build_bot_backtest` | Translates a bot into a backtest-svc spec (with notes on every translation choice) without running it. | Read |
| `crypto_get_exposure` | The organisation's USD-normalised risk view: equity, gross/net notional, net delta, leverage, margin used and usage percent, unrealised P\&L, DeFi net, and breakdowns by asset, venue, chain, strategy and instrument type. | Read |
| `crypto_get_risk_limits` | The organisation's configured pre-trade and portfolio risk limits. | Read |
| `crypto_list_limit_breaches` | Recorded risk-limit breaches, newest first. | Read |
| `crypto_get_breakers` | The state of the organisation's circuit breakers and kill switch (read only). | Read |
| `crypto_run_var` | Value at risk and expected shortfall of the current crypto book in USD, per method, with liquidity-adjusted VaR and excluded assets. | Read, credits |
| `crypto_get_latest_var` | The organisation's most recent stored VaR run (404 when none has been run). | Read |
| `crypto_list_scenarios` | The historical replay windows (terra\_2022\_05, ftx\_2022\_11, covid\_2020\_03, carry\_unwind\_2024\_08) and the fields and units of a custom scenario, with the price of a run. | Read |
| `crypto_run_scenario` | Stresses the current crypto book under a library replay, a custom dated window or explicit shocks, and returns the P\&L per asset and in total. | Read, credits |
| `crypto_get_solvency` | A per-venue counterparty solvency score from measured public evidence only, each component with its source. | Read |
| `crypto_get_greeks` | Delta, gamma, vega and theta of the organisation's derivatives book per underlying. | Read |
| `crypto_get_greeks_ladder` | Re-prices the book for one underlying across a ladder of spot moves, implied volatility held constant per instrument (sticky strike). | Read |
| `crypto_list_surveillance_alerts` | Market-abuse surveillance alerts on the organisation's own trading (compliance or risk role). | Read |
| `crypto_screen_addresses` | Screens up to 1000 wallet addresses against the loaded OFAC sanctions list. | Read |
| `crypto_get_sanctions_status` | Whether the sanctions list is loaded, and its source, publish date and digest. | Read |
| `crypto_get_travel_rule` | Travel-rule readiness. | Read |
| `crypto_get_report` | A compliance report (nav, blotter, gains or capital) for a period (compliance or risk role). | Read |
| `crypto_list_custody_accounts` | The organisation's accounts at its connected custodians. | Read |
| `crypto_list_custody_balances` | Asset balances held at the organisation's custodians. | Read |
| `crypto_get_custody_whitelist` | The withdrawal address whitelist each active custodian reports, with per-custodian errors. | Read |
| `crypto_get_proof_of_reserves` | Exchanges' published proof-of-reserves reports (one venue, or every covered venue). | Read |
| `crypto_get_custody_credit` | Credit lines with custodians and prime brokers. | Read |
| `crypto_get_custody_insurance` | Custody insurance coverage. | Read |
| `crypto_plan_collateral` | Computes the collateral transfers between venues that would keep each one's free margin above keep\_free\_usd. | Read |
| `crypto_get_org` | The caller's crypto organisation: its members with roles, and its policy. | Read |
| `crypto_list_audit` | The organisation's hash-chained audit log, newest first (compliance or risk role). | Read |
| `crypto_verify_audit` | Recomputes the audit log's hash chain. | Read |
| `crypto_list_approvals` | Held actions awaiting a second approver and their history (read only. | Read |
| `crypto_list_defi_yields` | DeFi lending and liquidity pools from DeFiLlama with TVL and APY, filtered by asset, chain, project or pool id and sorted by tvl (default) or apy. | Read |
| `crypto_get_defi_tvl` | Total value locked by chain (default, largest first, with the total) or by protocol, filtered by chain, category or name. | Read |
| `crypto_list_stablecoins` | Stablecoins from DeFiLlama: peg type and mechanism, price and peg deviation, depeg flag and supply (now, 1 and 7 days ago). | Read |
| `crypto_list_bridges` | Cross-chain bridges with TVL and their exploit history over a window (default 1825 days). | Read |
| `crypto_list_defi_hacks` | Recorded DeFi and bridge exploits with date, classification, technique, chains, amount lost and returned (USD), from DeFiLlama. | Read |
| `crypto_get_cex_transparency` | Centralised exchanges' published reserve wallets: total and clean reserves (USD), own-token share, 24h/7d/30d inflows, spot volume and open interest, per venue. | Read |
| `crypto_list_defi_positions` | The DeFi positions the user registered in the terminal, enriched with pool data and impermanent loss unless enrich is false. | Read |
| `crypto_get_impermanent_loss` | Impermanent loss of a liquidity position: v2 constant product (default) or v3 concentrated range (set lower/upper prices or ticks). | Read |
| `crypto_get_liquidation_risk` | Health factors of lending positions for a wallet (or the user's registered wallets), flagging any below warn\_below. | Read |
| `crypto_list_staking` | Staking and liquid-staking pools with APY and TVL, filtered by asset, chain or project. | Read |
| `crypto_list_governance` | Snapshot governance proposals for tokens (AAVE, UNI ...) or spaces, by state. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Data
Source: https://docs.fincept.in/reference/toolsets/data
Global economic and financial series from every provider, datasets, vendor fundamentals, adjusted prices, options data and scheduled refreshes.
Toolset `data`: 43 tools. List them all with `?toolsets=data`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `data_list_providers` | Every data provider in the series catalog (fred, imf, worldbank, eurostat, ecb, bis, oecd, bls, boe ...): id, name, kind, series\_count, licence\_class, homepage, synced\_at and whether exact point-in-time vintages exist. | Read |
| `data_list_topics` | The subject taxonomy the series catalog is labelled with: id, parent\_id, level, name, description and series\_count (whole subtree) / direct\_series\_count. | Read |
| `data_search_series` | Search 1.7M+ economic and financial time series across every provider, best match first: provider\_id, native\_id, title, units, frequency, geo, start\_date, end\_date, status. | Read, core |
| `data_search_datasets` | Which datasets, across every provider, are about a subject ('unemployment rate', 'house prices'): provider\_id, provider\_name, id, name, series\_count and rank, a few per provider. | Read |
| `data_list_provider_datasets` | One provider's dataset tree: each dataset's id, parent\_id, name and series\_count. | Read |
| `data_get_series` | Metadata for one series: title, unit, canonical currency and scale, frequency, geo, dates covered, last sync, plus the provider's licence\_class and attribution. | Read |
| `data_get_observations` | Values of up to 50 series between two dates: per series title, unit, frequency and \[\{date, value}] oldest first, with status ok, fetching (a first fill was queued: call again shortly) or missing. | Read, core, credits |
| `data_get_cross_section` | One indicator family across every country on one date (the map view): per country geo, label, value, date and native\_id. | Read |
| `data_list_families` | The indicator families of a provider (or one of its datasets) that exist for many countries and can feed data\_get\_cross\_section: dataset\_id, family, title, units and members. | Read |
| `data_resolve_identifier` | The entity that held an identifier on a date (recycled tickers resolve to the right company), the interval it held it (valid\_from, valid\_to) and the series linked to that entity across providers. | Read |
| `data_ai_search_series` | Turns a plain-language question into the catalog's own terms (topic, provider, frequency, geography, exact series ids) and runs the search: interpretation, results, count. | Read, credits |
| `data_list_infra_layers` | The infrastructure map layers loaded: id, title, category, geometry\_kind, asset\_count, coverage, licence\_class and attribution. | Read |
| `data_get_infra_layer` | One infrastructure layer as a GeoJSON FeatureCollection, filtered by status, country, name text and bounding box. | Read |
| `data_get_financial_statements` | Income statement, balance sheet and cash flow of an SEC filer as filed in XBRL, by ticker or CIK: periods (newest first), each line keyed by period, in the filing currency, plus derived lines named in derived and as\_of = latest filing date. | Read, core |
| `data_list_vendors` | The equity vendor connectors registered on the data plane (fundamentals, prices, index membership): name, licence\_class, requires\_key (the user's own key) and requests\_per\_sec. | Read |
| `data_get_vendor_fundamentals` | A company's fundamental concepts (revenue, net\_income, eps\_diluted ...) per fiscal period from the vendor plane, the ticker resolved as of the read date (recycled tickers handled). | Read |
| `data_get_adjusted_prices` | Daily closes for a ticker from the vendor plane, adjusted at read time: none (as traded), splits, or total\_return (splits and reinvested dividends). | Read |
| `data_get_index_universe` | Constituents of an index (e.g. SPX) from the membership series the caller's own vendor uploads hold: today's members, or with as\_of (point-in-time capability) the members on that date including later-delisted names, survivorship-free. | Read |
| `data_list_frames` | Which cross-company XBRL frames are captured: concept, tag, unit, frame (CY2024, CY2024Q1, CY2024Q1I) and filer count. | Read |
| `data_rank_frame` | Every SEC filer's value of one XBRL concept for one calendar frame, ranked (largest first by default): cik, entity\_name, val, unit, period\_start, period\_end. | Read |
| `data_snapshot_dataset` | Records a content-addressed version of a named set of series (listed, or selected by a pattern. | Write |
| `data_list_dataset_versions` | The versions recorded for one of your dataset keys, newest first: version\_seq, created\_at, as\_of, row\_count, content\_hash. | Read |
| `data_diff_dataset_versions` | What changed between two versions of a dataset: rows added, removed and revised, revision rate, per-series counts and the largest value changes. | Read |
| `data_verify_dataset` | Recomputes the current content hash of a dataset's latest membership and compares it with a hash you recorded: match, current\_hash, current\_rows, latest\_seq. | Read |
| `data_list_schedules` | Your scheduled data refreshes: id, label, provider, series, cadence, hour\_utc, next\_run\_at, paused, credits\_paused, last\_run\_at, plus the plan's limit and used count. | Read |
| `data_quote_schedule` | What a schedule would cost before creating it: credits\_per\_run (1, whatever the number of series), runs\_per\_month and credits\_per\_month for a cadence. | Read |
| `data_list_schedule_runs` | Past runs of your scheduled refreshes, newest first: job\_id, scheduled\_for, credits, status, series\_total, series\_ok, error, started\_at, finished\_at. | Read |
| `data_create_schedule` | Creates a server-side refresh of up to 100 series of one provider on a daily, weekly or monthly cadence at an hour (UTC). | Write, credits |
| `data_update_schedule` | Changes a schedule's label, provider, series, cadence or hour, or pauses/resumes it. | Write |
| `data_delete_schedule` | Deletes one of your scheduled refreshes. | Delete |
| `data_list_option_venues` | The option exchanges held: venue code, name, country, MIC, currency, timezone, quote\_basis, delay\_minutes and licence\_class. | Read |
| `data_get_options_coverage` | What the options store holds per venue and when each was last refreshed, so an empty answer can be told apart from a venue never loaded. | Read |
| `data_search_option_underlyings` | Underlyings with listed options, ordered by venue: venue, symbol, name, category, kind, currency, plus total and has\_more. | Read |
| `data_search_option_contracts` | Individual option series across venues: venue, contract\_symbol, underlying, side, strike, expiry\_date, contract\_size, exercise\_style and the latest quote. | Read |
| `data_get_option_quotes` | Latest held quote (or the quote on a date) for up to 500 contracts of one venue: bid, ask, last, settlement, volume, open\_interest and the quote's own trade\_date. | Read |
| `data_get_option_chain` | One underlying's option chain from the venue's end-of-day or delayed snapshot: each contract (side, strike, expiry\_date) with its quote, the session trade\_date and truncated. | Read |
| `data_list_option_chain_dates` | The session dates for which an underlying's chain is held, newest first. | Read |
| `data_list_option_expiries` | The expiries listed for an underlying: expiry, strikes, calls, puts, strike\_min, strike\_max. | Read |
| `data_get_iv_history` | Constant-tenor at-the-money implied volatility, one point per held session, oldest first: date, iv (decimal fraction), expiry\_date, dte, strike. | Read |
| `data_get_mx_catalog` | The Montreal Exchange (TMX) datasets this plane holds and where each lands, with the licence note. | Read |
| `data_list_mx_series` | The Montreal Exchange statistics series held (put/call ratios, monthly volume and open interest): series\_id, dataset, product, metric, latest\_period, latest\_value. | Read |
| `data_get_mx_series` | One Montreal Exchange statistics series as \[\{period, value}] between two dates. | Read |
| `data_get_mx_records` | Rows of one Montreal Exchange dataset stored exactly as published (TMX's columns, which can change). | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Deals
Source: https://docs.fincept.in/reference/toolsets/deals
M&A deals, comparable-company builds, private placements, private raises and private credit.
Toolset `deals`: 19 tools. List them all with `?toolsets=deals`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `deals_list_deals` | M\&A deals extracted from SEC filings (newest announced first by default): deal\_id, target and acquirer (cik, name, tickers), announced, status, deal\_type, consideration\_type, offer\_per\_share, equity\_value, enterprise\_value, premium\_pct. | Read |
| `deals_search` | One lookup over the M\&A index: matching deals and matching SEC companies (cik, name, tickers, sic\_description, has\_fundamentals). | Read |
| `deals_get_deal` | One M\&A deal: its terms, the filings it was extracted from, the extraction log with the quoted evidence, and both parties. | Read |
| `deals_get_flow` | SEC filings that signal M\&A (8-K items 1.01, 1.02, 2.01, 5.01. | Read |
| `deals_resolve_company` | Company-name, former-name or ticker lookup against the SEC register: up to 25 candidates with cik, name, tickers and matched\_kind (which spelling matched). | Read |
| `deals_get_company` | A filer's profile and its deal-signal filings of the last five years: company, deal\_filings, deal\_count, deal\_window. | Read |
| `deals_get_fundamentals` | The latest SEC XBRL values a comps card needs for one filer (revenue, operating income, D\&A, net income, shares, debt, cash, equity, assets, capex, interest ...) with period and basis. | Read |
| `deals_get_owners` | Institutional 13F holders of a listed ticker, ranked on value\_common (options excluded): cusip used, period, holders, holders\_count and totals in whole USD. | Read |
| `deals_build_comps` | Screens up to 15 candidate peers against a subject's SIC code and returns a comps table: peers normalised to one fiscal year from XBRL and priced at a live quote with computed multiples and medians, plus rejected candidates with reasons. | Write, credits |
| `deals_list_comps_history` | The comps sets you have built, newest first, and the current price of a new one. | Read |
| `deals_search_private_placements` | Form D private-placement notices: accession, entity\_name, cik, state, industry\_group, investment\_fund\_type, filing\_date, total\_offering\_amount, total\_amount\_sold (USD), investors. | Read |
| `deals_get_private_placement` | One Form D notice with its issuers, sales agents, related persons and its amendment chain. | Read |
| `deals_list_placement_industries` | The industry groups of the Form D corpus with counts, for the industry filter. | Read |
| `deals_search_private_raises` | Private raises grouped from their Form D vehicles (main fund, feeders, parallel LPs): raise\_id, sponsor, family, vintage\_number, strategy\_label, child\_count, total\_sold\_latest (MAX over vehicles, USD), investors\_total, first\_sale\_date, latest\_filing\_date. | Read |
| `deals_get_private_raise` | One grouped private raise with its child Form D vehicles. | Read |
| `deals_list_private_credit_funds` | Business development companies (private-credit lenders), largest book first: cik, bdc\_name, period\_end, positions, fair\_value\_total, cost\_total, top\_industries. | Read |
| `deals_search_private_credit_borrowers` | One private borrower across every BDC's latest schedule of investments: cik, bdc\_name, period\_end, issuer\_display, industry, fair\_value, cost, interest\_rate, basis\_spread, mark\_to\_cost. | Read |
| `deals_get_private_credit_schedule` | One BDC's schedule of investments for a period: each position's issuer, industry, investment type, fair\_value, cost, principal, interest\_rate, basis\_spread, pik\_rate. | Read |
| `deals_get_private_credit_summary` | One BDC's portfolio shape for a period: industry mix, weighted rate, floating, non-USD, PIK and rated shares, and marks. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Filings
Source: https://docs.fincept.in/reference/toolsets/filings
SEC EDGAR companies and filings, insiders, 13F holders, funds and SEDAR+.
Toolset `filings`: 32 tools. List them all with `?toolsets=filings`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `filings_search_companies` | Search the SEC company master by name or ticker, or browse a sector/industry: cik, display\_name, tickers, exchange, sector, industry, is\_fund, is\_bdc, is\_active, latest\_filing. | Read, core |
| `filings_get_company` | One SEC registrant from the company master: names, tickers, exchange, SIC, sector, industry, entity type, state of incorporation, fiscal year end, fund/BDC flags, latest filing. | Read |
| `filings_list_sectors` | The sector facet of the company master with counts: 11 sectors plus Unclassified. | Read |
| `filings_list_company_filings` | One SEC filer's filings from the parsed index, newest first: accession, form, filed, period, items, primary\_document, size, XBRL flags. | Read |
| `filings_search_filings` | Market-wide sweep of the parsed SEC filings index by form, 8-K item and date (e.g. every 8-K item 5.02 this month), newest first. | Read |
| `filings_get_latest` | The newest SEC submissions, one row each: company, ticker, exchange, form, filed, accepted\_at, items, description and url, covering the last N filing dates indexed. | Read |
| `filings_get_filer_profile` | A filer's registrant record and name history from the filings index, indexed\_at, and complete (whether every reported filing is indexed). | Read |
| `filings_search_edgar_text` | SEC EDGAR full-text search: filings whose text contains q (quoted text is a phrase), answered in SEC's own JSON (hits with form, filer, file date, accession). | Read, credits |
| `filings_get_edgar_submissions` | SEC's submissions document for a CIK, verbatim: company facts and the recent filings table (large. | Read, credits |
| `filings_get_insider_graph` | The Form 4 insider graph of one issuer assembled live from its latest filings: edges (owner, role flags, shares and value bought/sold/awarded ...), filings\_examined and truncated. | Read |
| `filings_get_edgar_usage` | This month's EDGAR pulls against the plan's allowance: period, pulls, limit, relmap\_hops and overage\_cost (credits per pull past the limit). | Read |
| `filings_screen_insiders` | Market-wide Form 3/4/5 transactions from the stored dataset: issuer\_cik, owner, role flags, category, shares, price, value, txn\_date, filed. | Read |
| `filings_get_insider_person` | Every stored Form 3/4/5 transaction of one reporting owner across all the issuers they file on. | Read |
| `filings_find_insider_clusters` | Issuers where several different insiders made open-market buys in a window (default the last 90 days): issuer\_cik, people, buys, shares, value, names, first, last, most people first. | Read |
| `filings_list_13f_quarters` | The SEC 13F bulk files loaded: quarter (the file, i.e. what was received), dominant\_period (the report date most filings carry), filings, holdings, status. | Read |
| `filings_get_security_holders` | Institutional managers holding one CUSIP per 13F, largest first: manager, value\_usd (whole dollars), shares, value\_common / value\_call / value\_put, plus totals and the period resolved. | Read |
| `filings_get_manager_portfolio` | One 13F filer's positions for a period, largest first, with the cover filing, totals and every period the manager has on file. | Read |
| `filings_search_funds` | Find a registered fund by symbol prefix or by series/fund name: symbol, class\_id, series\_id, cik, series\_name, registrant\_name. | Read |
| `filings_get_fund` | A fund's identity, latest N-PORT cover (report\_date, net\_assets, total\_assets), N-CEN flags and class returns, with coverage of what is loaded. | Read |
| `filings_get_fund_holdings` | A fund's N-PORT portfolio for one report date, largest position first: holdings with issuer, cusip, isin, ticker, value\_usd and pct\_net\_assets (a PERCENT), totals, asset\_cat\_mix over the whole filing. | Read |
| `filings_get_fund_returns` | A fund share class's monthly returns from N-PORT, in PERCENT, oldest month first. | Read |
| `filings_get_fund_providers` | A fund's N-CEN counterparties (adviser, custodian, auditor, administrator, transfer agent ...) grouped by role and LEI, for the registrant and the series, with period\_end. | Read |
| `filings_search_sedar_profiles` | Find a Canadian issuer or investment fund on SEDAR+ by name: profile\_number, legal\_name, previous and operating names, profile\_type, industry, principal jurisdiction, status, in\_default, active\_cto. | Read |
| `filings_get_sedar_profile` | One SEDAR+ profile with its per-jurisdiction reporting-issuer rows, any orders against it and filings\_crawled (false means a zero filing count is not an absence). | Read |
| `filings_list_sedar_profile_filings` | One SEDAR+ profile's filings: filing\_number, filing\_type, filing\_category, taxonomy\_key, submitted\_date, document\_count, permalink. | Read |
| `filings_search_sedar_filings` | SEDAR+ filings across issuers by type, category, jurisdiction and date, same rows as filings\_list\_sedar\_profile\_filings plus issuer\_name. | Read |
| `filings_list_sedar_documents` | The documents of one SEDAR+ filing: document\_id, document\_type, document\_name, filed\_date, size\_bytes, format and access\_level (private documents exist but are not public). | Read |
| `filings_get_sedar_taxonomy` | The CSA filing inventory: key, filer\_type, filing\_category, filing\_type, document\_type. | Read |
| `filings_list_sedar_reporting_issuers` | The Canadian reporting-issuer register per (profile, jurisdiction): status, in\_default with default\_since and reason, active\_cto. | Read |
| `filings_search_sedar_orders` | Cease trade orders and the disciplined list from Canadian regulators, by party name or profile. | Read |
| `filings_search_sedar_participants` | Registered firms and individuals on SEDAR+ by name: participant\_kind, categories, jurisdictions, status, firm\_name. | Read |
| `filings_get_sedar_coverage` | What the SEDAR+ index holds: each register, whether and when it was crawled and whether the crawl completed, and row counts. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Markets
Source: https://docs.fincept.in/reference/toolsets/market
Quotes, candles, fundamentals, profiles, peers, option chains, futures curves, corporate actions, holidays and the economic calendar.
Toolset `market`: 15 tools. List them all with `?toolsets=market`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `market_search_instruments` | Search the instrument universe by ticker, name or ISIN. | Read, core |
| `market_query_universe` | Every instrument matching a filter (country, exchanges, type, sector, market-cap band, index membership, metrics), 500 rows per page with `next_offset` for the rest. Use it for complete listings such as all NSE stocks. | Read, core |
| `market_get_quote` | Latest quote for one symbol: price, change, change percent, day range, volume, currency, exchange time and the feed's delay. | Read, core |
| `market_get_quotes` | Latest quotes for up to 300 symbols in one call. | Read, core |
| `market_get_candles` | OHLCV candles for a symbol, oldest first. Daily and coarser bars carry `date`, their trading day at the exchange; weekly, monthly and quarterly answers have one bar per period and say in `last_bar_partial` whether the last one is still running; `adjust: "splits"` gives price-only bars. | Read, core |
| `market_get_returns` | Returns of up to 100 symbols over up to 12 calendar periods in one call: a month, quarter, year or date range, each as the last close inside the period over the last close before it, in percent, on price (default) or total-return closes. Takes symbols as `scan_run` answers them. | Read |
| `market_get_snapshot` | An instrument's row in the symbol index: identity, listing, classification (type, sector, country, currency) and the index's stored metrics stamped with metrics\_as\_of. | Read |
| `market_get_fundamentals` | Key fundamentals for an equity: valuation ratios, margins, growth, balance-sheet figures, dividend and share data as the provider reports them. | Read, core |
| `market_get_profile` | Company profile: name, sector, industry, country, website, employees and business summary. | Read |
| `market_get_peers` | Comparable companies for a symbol from the classification index, most similar first. | Read |
| `market_get_options_chain` | The listed option chain for an underlying at its nearest expiry: calls and puts with strike, bid, ask, implied volatility and open interest. | Read |
| `market_get_corporate_actions` | Splits and dividends for a symbol between two dates (YYYY-MM-DD). | Read |
| `market_get_holidays` | Trading holidays and half days of one exchange calendar between two dates (default: the current calendar year). | Read |
| `market_get_futures_curve` | The term structure of a futures root (e.g. CL, ES, GC): each listed contract with expiry and last price, nearest first. | Read |
| `market_get_economic_calendar` | Upcoming macro releases and central-bank events in UTC, soonest first, deduplicated. | Read, core |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# News
Source: https://docs.fincept.in/reference/toolsets/news
News feed and search, sentiment, AI analysis and summaries, keyword monitors and automations.
Toolset `news`: 22 tools. List them all with `?toolsets=news`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `news_get_feed` | Latest articles from the curated feeds, newest first: title, summary, source, url, category, published\_at (UTC), sentiment label and score, tickers. | Read, core |
| `news_search_articles` | Search the article corpus, newest first, same row shape as news\_get\_feed. | Read, core |
| `news_list_sources` | The enabled news feeds: id, name, url, category, region, publisher, tier and last poll status, plus the plan's news\_sources limit. | Read, core |
| `news_score_text` | Lexicon sentiment of one piece of text: label (positive, negative, neutral) and score. | Read |
| `news_get_sentiment_aggregate` | Aggregate sentiment over many articles: counts by label, mean score and std dev, mean by source and by UTC day, top title terms. | Read, credits |
| `news_analyze_article` | AI dossier on one article fetched from its url: the model's structured analysis plus headline and word count. | Read, credits |
| `news_summarize_headlines` | AI desk note summarising a list of headlines (the first 60 are used). | Read, credits |
| `news_list_monitors` | The user's keyword monitors (id, label, keywords, color, enabled) with the plan's news\_monitors limit and the rate: each monitor costs 1 credit per UTC day it is swept (action news\_monitor\_run), levied by the server's sweep, not by these calls. | Read, credits |
| `news_create_monitor` | Create a keyword monitor swept server-side against the corpus. | Write, credits |
| `news_update_monitor` | Replace a monitor's label, keywords, color and enabled state. | Write, credits |
| `news_delete_monitor` | Delete one of the user's news monitors. | Delete |
| `news_list_monitor_hits` | Articles the user's monitors matched, most recent match first, each with the monitor and the article. | Read |
| `news_list_monitor_charges` | What the user was billed for monitors and automations over the last 30 days: one row per charge with credits, plus credits\_30d, the total. | Read |
| `news_list_automations` | The user's news automations with trigger, action and last sweep status, the shared news\_monitors limit and how much of it monitors and automations use, and the rate: 1 credit per automation per UTC day it is evaluated (action news\_monitor\_run). | Read, credits |
| `news_dry_run_automation` | Evaluate an automation spec against the last N days of the corpus (1-14) without saving it: what it would have fired on, the normalised spec and a plain-language summary. | Read |
| `news_create_automation` | Save an automation. | Write, credits |
| `news_get_automation` | One automation with its trigger, action, status and a plain-language summary. | Read |
| `news_update_automation` | Change an automation's name, trigger or action. | Write |
| `news_set_automation_enabled` | Set an automation enabled (true) or paused (false). | Write |
| `news_delete_automation` | Delete one of the user's automations. | Delete |
| `news_get_automation_history` | What an automation fired on: instrument, trading day, article, filing type, importance, entity confidence and the queued action id. | Read |
| `news_list_automation_user_feeds` | The user's own RSS feeds as automations name them (source\_key "user:\"), whether the server polls each and why not, and the plan's rss\_feeds limit. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Toolsets
Source: https://docs.fincept.in/reference/toolsets/overview
Every platform toolset and what it covers.
443 platform tools in 18 toolsets, plus 17 engines: [Fincept Scanner](/reference/scanner/overview), [Fincept Performance](/reference/performance/overview), [Fincept Stats](/reference/stats/overview), [Fincept Forecast](/reference/forecast/overview), [Fincept Allocation](/reference/allocation/overview), [Fincept Portfolio Optimizer](/reference/portfolio-optimizer/overview), [Fincept Quant](/reference/quant/overview), [Fincept Volatility](/reference/volatility/overview), [Fincept Panel](/reference/panel/overview), [Fincept TS Forecast](/reference/ts-forecast/overview), [Fincept Technicals](/reference/technicals/overview), [Fincept Change Points](/reference/change-points/overview), [Fincept Regimes](/reference/regimes/overview), [Fincept Copula](/reference/copula/overview), [Fincept Multi-Period](/reference/multi-period/overview), [Fincept Portfolio Lab](/reference/portfolio-lab/overview) and [Fincept Pricing](/reference/pricing/overview). Each tool belongs to one toolset; a toolset name is what `?toolsets=` and `fincept_search_tools` take.
| Toolset | Covers | Tools |
| - | - | - |
| [`market`](/reference/toolsets/market) | Quotes, candles, fundamentals, profiles, peers, option chains, futures curves, corporate actions, holidays and the economic calendar. | 15 |
| [`backtest`](/reference/toolsets/backtest) | Strategy backtests and parameter sweeps, templates, validation, cost profiles, saved strategies and run history. | 26 |
| [`algo`](/reference/toolsets/algo) | Algorithm library, versions, baskets and paper deployments with their metrics and trades. | 21 |
| [`crypto`](/reference/toolsets/crypto) | Crypto venues, markets, derivatives data, your crypto accounts and orders, risk, compliance, custody and DeFi. Read-only. | 76 |
| [`data`](/reference/toolsets/data) | Global economic and financial series from every provider, datasets, vendor fundamentals, adjusted prices, options data and scheduled refreshes. | 43 |
| [`filings`](/reference/toolsets/filings) | SEC EDGAR companies and filings, insiders, 13F holders, funds and SEDAR+. | 32 |
| [`deals`](/reference/toolsets/deals) | M\&A deals, comparable-company builds, private placements, private raises and private credit. | 19 |
| [`portfolio`](/reference/toolsets/portfolio) | Portfolios, valuation, performance, attribution, risk, scenarios, ledger, tax lots, limits, marks and benchmarks. | 39 |
| [`paper`](/reference/toolsets/paper) | The Fincept Paper account: books, orders, positions, trades and equity curves. No real money. | 21 |
| [`workspace`](/reference/toolsets/workspace) | Watchlists, alerts, notes, notebooks, reports, chat sessions, custom indices, news monitors and scan watches. | 35 |
| [`research`](/reference/toolsets/research) | Ask Fincept's research model and list the available models. | 2 |
| [`agents`](/reference/toolsets/agents) | Server-side agent runs, schedules and memories: inspect, cancel, pause and delete. | 9 |
| [`account`](/reference/toolsets/account) | Your profile, credit balance, usage, the credit ledger and account notices. | 5 |
| [`analytics`](/reference/toolsets/analytics) | Portfolio analytics, attribution, technicals, macro factors, market regimes, option strategies, volatility surfaces and rule backtests. | 18 |
| [`screener`](/reference/toolsets/screener) | Stock screens and their past runs. | 3 |
| [`quantlab`](/reference/toolsets/quantlab) | Research experiments, trials, deflated Sharpe ratios, signals, correlation checks and lineage. | 13 |
| [`news`](/reference/toolsets/news) | News feed and search, sentiment, AI analysis and summaries, keyword monitors and automations. | 22 |
| [`altdata`](/reference/toolsets/altdata) | Geopolitical events, sovereign bonds and yield curves, maritime and AIS data, shipping flows, ports and trade statistics. | 44 |
# Paper trading
Source: https://docs.fincept.in/reference/toolsets/paper
The Fincept Paper account: books, orders, positions, trades and equity curves. No real money.
Toolset `paper`: 21 tools. List them all with `?toolsets=paper`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `paper_get_account_summary` | The Fincept Paper account totalled across its main book and every sleeve in the base currency: equity, cash, unrealised, today's realised, day and total P\&L, margin used, open orders, positions, exposure by asset class and currency, top 5 positions, and each book's id, name, sleeve\_key and equity. | Read, core |
| `paper_ensure_account` | Find or create the user's Fincept Paper account and its main book (an existing account is returned unchanged and the arguments ignored). | Write |
| `paper_list_books` | Every paper book of the user (main book, sleeves and user books) with its settings, positions, today's order book, its 100 most recent trades and trade statistics. | Read |
| `paper_get_book` | One paper book in full: settings (currency, cash balance, initial balance, fee rate, leverage, market-hours rule), positions, today's order book, its 100 most recent trades and trade statistics. | Read |
| `paper_get_book_summary` | One book's compact summary in its base currency: equity, cash, unrealised, today's realised, day and total P\&L, margin used, open orders, positions, exposures and top 5 positions. | Read |
| `paper_get_positions` | A book's open positions: id, symbol, canonical instrument, exchange, side (long/short), quantity, entry and current price (quote currency), unrealised and realised P\&L and held margin (base currency), product, attached stop\_loss/take\_profit. | Read, core |
| `paper_get_orders` | A book's orders for one trading day (IST, default today. | Read, core |
| `paper_get_trades` | A book's fills, newest first: price (quote currency), quantity, fee and realised P\&L (base currency), the fill's FX rate, source and tag. | Read |
| `paper_get_stats` | A book's trade statistics in its base currency: total and today's P\&L, win rate, winning/losing trades, largest and average win and loss, gross profit and loss, profit factor, fees and turnover. | Read |
| `paper_get_equity_curve` | A book's daily equity history (one row per UTC day, oldest first) over the last N days, in its base currency, with each day's net deposits. | Read |
| `paper_place_order` | Place a SIMULATED order in a paper book (the main book is portfolio\_id of paper\_get\_account\_summary). | Write, credits |
| `paper_close_position` | Close (or reduce) an open paper position with a reduce-only MARKET order: side sell closes a long, buy closes a short. | Write, credits |
| `paper_cancel_order` | Cancel an open paper order and release its blocked margin. | Write |
| `paper_set_position_bracket` | Set, change or clear the stop-loss and take-profit attached to an open paper position. | Write |
| `paper_convert_position` | Move an open paper position to another product (e.g. intraday MIS to delivery CNC). | Write |
| `paper_create_book` | Create a separate paper book inside the Fincept Paper account, with its own cash and margin. | Write |
| `paper_rename_book` | Rename a paper book. | Write |
| `paper_set_cash_balance` | Set a paper book's cash to balance (base currency). | Write |
| `paper_set_book_config` | Replace a paper book's leverage per product and its market-hours rule. | Write |
| `paper_reset_book` | Reset a paper book to its starting state: ERASES every order, position, trade and the equity history, and puts cash back to the initial balance. | Write |
| `paper_delete_book` | Delete a paper sleeve or user book with all its orders, positions and trades. | Delete |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Portfolios
Source: https://docs.fincept.in/reference/toolsets/portfolio
Portfolios, valuation, performance, attribution, risk, scenarios, ledger, tax lots, limits, marks and benchmarks.
Toolset `portfolio`: 39 tools. List them all with `?toolsets=portfolio`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `portfolio_list_portfolios` | The user's tracked portfolios (books): id, name, base currency, cost method, cash tracking, benchmark, source, version and archived flag. | Read, core |
| `portfolio_get_portfolio` | One portfolio's header: name, description, base currency, cost method, cash tracking, benchmark, inception date, version. | Read |
| `portfolio_get_summary` | Everything a first look needs in one call: the header, the priced valuation (NAV, cash, P\&L, exposures, positions, in the base currency), the daily NAV series, the performance headline (1d, mtd, ytd, 1y and since-inception returns, 1-year stats, money-weighted return), limit breach counts and the cached risk headline (volatility, 95% VaR/CVaR, beta). | Read, core |
| `portfolio_get_valuation` | The book priced now, in its base currency: NAV, holdings value, cash, cost basis, unrealised, day and realised P\&L (total and YTD), dividends, fees, long/short/gross/net exposure, leverage, every valued position, cash by currency, weights grouped by asset class, sector, industry, country, currency and exchange, and the FX rates used. | Read |
| `portfolio_get_positions` | The book's positions as the ledger derives them (quantity, average cost, lots, realised P\&L, income and fees in each instrument's own currency) and cash balances by currency, with no market prices. | Read |
| `portfolio_get_consolidated` | Several books valued together in one base currency: NAV, cash, P\&L, exposures, positions, cash by currency and groups, as one valuation. | Read |
| `portfolio_get_broker_links` | The broker accounts a book is synced from: broker, account, label, the last applied statement date and its result. | Read |
| `portfolio_create_portfolio` | Create a tracked portfolio. | Write |
| `portfolio_update_portfolio` | Change a portfolio's header: rename, describe, archive, or change base currency, cost method, cash tracking, benchmark or inception date. | Write |
| `portfolio_delete_portfolio` | Delete a portfolio with its whole ledger, limits and marks. | Delete |
| `portfolio_get_nav` | The book's daily NAV replayed from its ledger: per day nav and cost in the base currency, the time-weighted index (100 on the first funded day), the benchmark index and drawdown, plus the benchmark and replay warnings. | Read |
| `portfolio_get_performance` | Time-weighted and money-weighted performance: period returns (1d to since inception), cumulative series, drawdown, monthly and calendar-year tables, a rolling series, full and 1-year statistics (annual return, volatility, Sharpe, max drawdown, beta, tracking error) and, with start/end, stats\_custom over that window. | Read, core |
| `portfolio_get_attribution` | Brinson-Fachler attribution of the book against its benchmark over a window: portfolio, benchmark and active return, allocation, selection, interaction and currency effects, per bucket and per security (with local and FX return), and the daily series. | Read |
| `portfolio_get_risk` | Ex-ante risk of the priced book: annualised and EWMA volatility, beta, correlation and tracking error to the benchmark, active share, VaR and CVaR rows (parametric, historical, Monte Carlo, Cornish-Fisher, Student-t) at the confidence asked and at 99%, risk contributions by position and group, correlation, concentration, factor exposures, liquidity, option greeks and a VaR backtest, with the NAV and base currency used. | Read |
| `portfolio_run_scenarios` | Stress the book (or a proposed allocation given as weights): historical crisis windows replayed on today's positions, optional factor shocks, and a Monte Carlo fan. | Read |
| `portfolio_simulate_trades` | Simulate trades on the book without booking them: the valuation before and after, each trade sized and priced, group weight changes, cash after, and limit status before and after when the book has limits. | Read |
| `portfolio_propose_rebalance` | Propose the trades that move the book to target weights, to an optimiser's allocation, or that spread a cash flow pro rata: target weights, trade list, turnover, cash before and after, before/after statistics, optional cost and realised-tax estimates. | Read |
| `portfolio_get_ledger` | The book's transactions, oldest first, each with the signed cash it moved (cash\_effect, in the row's currency). | Read |
| `portfolio_get_realized` | Closed lots with their realised P\&L, and totals by currency (\{total, ytd}) in each instrument's own currency. | Read |
| `portfolio_get_tax_lots` | Open tax lots with cost, unrealised P\&L and short/long term, realised-YTD totals by term, and tax-loss harvest candidates, in the base currency. | Read |
| `portfolio_get_income` | Dividend and interest income for a year: received by month and by symbol, projected next-12-month income and yields, in the base currency. | Read |
| `portfolio_get_corporate_actions` | Upcoming dividends and splits on held lines, and past ones the ledger never recorded, each with a suggested transaction to record it. | Read |
| `portfolio_add_transactions` | Record one or more ledger rows (at most 5000) in a book: buys, sells, dividends, interest, fees, deposits, withdrawals, splits, FX conversions or adjustments. | Write |
| `portfolio_update_transaction` | Edit one ledger row by its id (from portfolio\_get\_ledger). | Write |
| `portfolio_delete_transaction` | Delete one ledger row by its id. | Delete |
| `portfolio_import_csv` | Parse CSV text with a header row into ledger rows and record them. | Write |
| `portfolio_list_limits` | The book's compliance limit rules: id, name, kind, params, severity (warn or breach) and enabled. | Read |
| `portfolio_get_limits_status` | Each limit evaluated on the current book: status ok, warn, breach or unknown, the measured value against the threshold, and counts. | Read |
| `portfolio_check_pretrade_limits` | Which limits would these transactions break if booked? Returns limit status before and after, new\_breaches and cleared rule names, and warnings for rows that would open a short. | Read |
| `portfolio_create_limit` | Add a compliance rule to a book. | Write |
| `portfolio_update_limit` | Edit a limit rule by id. | Write |
| `portfolio_delete_limit` | Delete a limit rule by id. | Delete |
| `portfolio_list_marks` | The manual prices set on a book for instruments no feed prices: symbol, price, currency, as\_of and note. | Read |
| `portfolio_set_mark` | Set or replace the manual price of one symbol in a book, used to value an instrument no feed prices (a private holding, an unlisted bond). | Write |
| `portfolio_delete_mark` | Remove a book's manual price for one symbol. | Delete |
| `portfolio_list_benchmarks` | The user's saved custom benchmark blends: id, name, weighted components and rebalance rule. | Read |
| `portfolio_save_benchmark` | Save a reusable custom benchmark blend of weighted symbols. | Write |
| `portfolio_update_benchmark` | Replace a saved benchmark blend: send the full name and components. | Write |
| `portfolio_delete_benchmark` | Delete a saved benchmark blend by id. | Delete |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Quant lab
Source: https://docs.fincept.in/reference/toolsets/quantlab
Research experiments, trials, deflated Sharpe ratios, signals, correlation checks and lineage.
Toolset `quantlab`: 13 tools. List them all with `?toolsets=quantlab`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `quantlab_record_experiment` | Records one research trial (a backtest, signal evaluation, model fit or optimisation) against a strategy family in the append-only trials ledger, and returns the stored record with the family's updated trial counts. | Write |
| `quantlab_list_experiments` | The account's recorded experiments, newest first, optionally filtered by family or kind. | Read |
| `quantlab_get_experiment` | One recorded experiment of this account: family, kind, config and its hash, results, status, tags and retirement state. | Read |
| `quantlab_get_trials` | The multiple-testing ledger for one strategy family: n\_trials (every run), n\_eff (distinct configurations), first and last trial time, the cross-trial Sharpe dispersion and the best Sharpe. | Read |
| `quantlab_deflate_sharpe` | Deflates a Sharpe ratio by the number of trials recorded for its family: PSR, the DSR range between n\_trials and n\_eff, a PASS/FAIL verdict at the 0.95 gate, the observed t-statistic, the minimum track record length and a one-line headline. | Read |
| `quantlab_register_signal` | Stores one representative return series for a strategy family in the signal library (60 to 20000 finite observations, daily intended), replacing any earlier series for that family. | Write |
| `quantlab_list_signals` | The account's signal library index: each family's series length, hash, period and interval, without the return vectors. | Read |
| `quantlab_correlate_family` | Correlates a registered family's return series with the rest of the library: pairwise correlations, top 3, max \|corr\| and its family, a DISTINCT/RELATED/REDUNDANT/UNKNOWN verdict (below 0.3 distinct, above 0.7 redundant) and the residual Sharpe after the closest signal is regressed out. | Read |
| `quantlab_correlate_candidate` | Same check as quantlab\_correlate\_family for a return series that is not stored: correlations against the library, the redundancy verdict and the residual Sharpe. | Read |
| `quantlab_record_lineage` | Records that one strategy family descends from another. | Write |
| `quantlab_get_lineage` | Ancestors and descendants of a strategy family, two levels each way. | Read |
| `quantlab_retire_experiment` | Moves an experiment to the graveyard with a mandatory cause of death. | Write |
| `quantlab_search_graveyard` | Retired experiments, most recently retired first, with the reason, the family's current trial counts, best Sharpe and its deflated Sharpe when the run reported n\_obs. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Research
Source: https://docs.fincept.in/reference/toolsets/research
Ask Fincept's research model and list the available models.
Toolset `research`: 2 tools. List them all with `?toolsets=research`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `research_ask_model` | One completion from Fincept AI over a conversation you supply. | Read, core, credits |
| `research_list_models` | The branded model ids research\_ask\_model accepts, with display\_name, capabilities and cost\_weight. | Read, core |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Screener
Source: https://docs.fincept.in/reference/toolsets/screener
Stock screens and their past runs.
Toolset `screener`: 3 tools. List them all with `?toolsets=screener`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `screener_run_screen` | Evaluates technical rules on the latest bar of every symbol in a universe (up to 250. | Read, core, credits |
| `screener_list_runs` | The account's recent screens, newest first: id, strategy name, timeframe, universe size, match count and time. | Read |
| `screener_get_run` | One stored screen of this account with its matches. | Read |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# Workspace
Source: https://docs.fincept.in/reference/toolsets/workspace
Watchlists, alerts, notes, notebooks, reports, chat sessions, custom indices, news monitors and scan watches.
Toolset `workspace`: 35 tools. List them all with `?toolsets=workspace`, or let the agent find them with `fincept_search_tools`. Full descriptions and input schemas: `fincept_describe_tool`.
| Tool | What it does | Type |
| - | - | - |
| `workspace_list_watchlists` | The account's saved watchlists under "watchlists": each with id, name, description, color, is\_default, stocks (symbol, name, exchange, notes) and created\_at/updated\_at in UTC. | Read, core |
| `workspace_get_watchlist` | One watchlist by id: name, description, color, is\_default and its stocks. | Read |
| `workspace_create_watchlist` | Saves a new watchlist to the account. | Write |
| `workspace_update_watchlist` | Replaces a watchlist's whole document: fields and stocks left out are removed. | Write |
| `workspace_delete_watchlist` | Deletes a watchlist from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_alerts` | The account's server-side price alerts under "alerts": id, watchlist\_id, symbol, condition, threshold, cooldown\_min, active, last\_fired\_at/last\_fired\_price. | Read, core |
| `workspace_save_alert` | Creates a price alert, or updates the one whose id is given. | Write, credits |
| `workspace_delete_alert` | Deletes one price alert. | Delete |
| `workspace_get_alert_charges` | What the daily alert meter billed over the last 30 days: charges (charge\_date, credits, alert\_count), credits\_spent, active\_alerts and the current credits\_per\_day. | Read |
| `workspace_list_notes` | The account's financial notes under "notes": id, title, content, category, priority, tags, tickers, sentiment, is\_favorite, is\_archived and created\_at/updated\_at in UTC. | Read, core |
| `workspace_get_note` | One note by id with its full content. | Read |
| `workspace_create_note` | Saves a new note to the account. | Write |
| `workspace_update_note` | Replaces a note's whole document: fields left out are removed. | Write |
| `workspace_delete_note` | Deletes a note from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_notebooks` | The account's AI Quant Lab notebooks under "notebooks": id, name, description, cells (the notebook's cells as the terminal stores them), metadata and timestamps. | Read |
| `workspace_get_notebook` | One research notebook by id with its cells and metadata. | Read |
| `workspace_delete_notebook` | Deletes a research notebook from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_reports` | The account's Report Builder reports under "reports": id, title, content (the report document as JSON, or content\_raw when it is not JSON) and timestamps. | Read |
| `workspace_get_report` | One Report Builder report by id with its content. | Read |
| `workspace_delete_report` | Deletes a report from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_chat_sessions` | The account's saved AI chat conversations under "sessions", newest first, always paged (default 200, max 500, next\_cursor when more exist). | Read |
| `workspace_get_chat_session` | One saved AI chat conversation by id with its full message transcript. | Read |
| `workspace_list_custom_indices` | The account's user-defined market indices under "indices": id, name, method, base\_value, portfolio\_id and constituents (symbol, weight in percent, price\_at\_create). | Read |
| `workspace_get_custom_index` | One user-defined index by id with its constituents and weights. | Read |
| `workspace_create_custom_index` | Saves a new user-defined index (constituents with percentage weights) to the account. | Write |
| `workspace_update_custom_index` | Replaces a custom index's whole document: fields and constituents left out are removed. | Write |
| `workspace_delete_custom_index` | Deletes a user-defined index from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_news_monitors` | The desktop News tab's keyword monitors under "monitors": id, label, keywords, color, enabled. | Read |
| `workspace_get_news_monitor` | One desktop news keyword monitor by id. | Read |
| `workspace_create_news_monitor` | Saves a desktop news keyword monitor, which the user's terminals evaluate while open. | Write |
| `workspace_update_news_monitor` | Replaces a desktop news keyword monitor's whole document: fields left out are removed. | Write |
| `workspace_delete_news_monitor` | Deletes a desktop news keyword monitor from the account and, on their next sync, from the user's terminals. | Delete |
| `workspace_list_scan_watches` | The Algo tab's saved universe scans under "watches": id, name, conditions and logic (the strategy's entry rules), symbols or universe, timeframe, broker and account the scan reads, mode, interval\_sec, cooldown\_min, alert actions and active. | Read |
| `workspace_get_scan_watch` | One saved universe scan by id. | Read |
| `workspace_delete_scan_watch` | Deletes a saved universe scan from the account. | Delete |
**Type:** Read tools only read. Write tools change your account; Delete tools remove something from it. `core` tools are listed by default. `credits` tools can spend credits; see [credits](/reference/toolsets/credits).
# ARIMA models
Source: https://docs.fincept.in/reference/ts-forecast/arima
Automatic and fixed-order (seasonal) ARIMA and autoregression with exogenous regressors, fitted series by series: orders, coefficients with standard errors, AIC/AICc/BIC, forecasts with intervals; unit-root and seasonal-strength tests that choose the differencing.
Toolset `tsforecast_arima`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_arima` | Fits ARIMA-family models to one series (y) or every series of a panel (data): automatic seasonal ARIMA (stepwise AICc search after unit-root tests), ARIMA with given (p,d,q)(P,D,Q) orders, drift, Box-Cox and fixed coefficients, or autoregression on chosen lags; numeric exogenous columns become regressors (give future\_exog). | |
| `tsforecast_differencing` | The differencing the automatic ARIMA would choose for each series: d from repeated KPSS stationarity tests (null: stationary) and D from the STL seasonal strength (seasonally differenced when it exceeds 0.64), with the seasonal strength itself (0 none to 1 pure seasonality). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Backtesting and evaluation
Source: https://docs.fincept.in/reference/ts-forecast/backtest
Rolling-origin cross-validation of statistical models (expanding or fixed window, refit schedule, conformal or native intervals) scored with MAE, RMSE, MAPE, sMAPE, MASE, RMSSE, bias, quantile, coverage and Winkler metrics per model, window and series; scoring of any forecasts against actuals.
Toolset `tsforecast_backtest`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_cross_validation` | Rolling-origin backtest of one series (y) or a panel (data): for each of n\_windows origins (step\_size apart) the models are fitted on the history before it (all of it, or the last input\_size points; re-estimated every refit windows) and forecast the next h periods, which are scored against the actuals. | |
| `tsforecast_evaluate` | Scores model forecasts against actuals with any of 25 metrics: point (MAE, MSE, RMSE, MAPE, sMAPE, WAPE, ND, bias, cumulative error, periods in stock, relative MAE, Tweedie deviance, LINEX), scaled by the in-sample seasonal naive (MASE, MSSE, RMSSE, scaled PIS), quantile (pinball, multi-quantile, scaled CRPS) and interval (coverage, Winkler, calibration). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Benchmarks and intermittent demand
Source: https://docs.fincept.in/reference/ts-forecast/benchmarks
Benchmark forecasters every model should beat (naive, seasonal naive, random walk with drift, historic and window averages, conformal seasonal pool, constant) and intermittent-demand methods for series with many zero periods (Croston classic, optimized and SBA, ADIDA, IMAPA, TSB).
Toolset `tsforecast_benchmarks`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_baselines` | Forecasts one series (y) or every series of a panel (data) with benchmark methods: naive (last value), seasonal naive, random walk with drift, historic average, window and seasonal window averages, the conformal seasonal pool (seasonal naive with sample-based intervals) and constant, zero or missing forecasts (fallbacks). | |
| `tsforecast_intermittent` | Forecasts series with many zero periods (spare parts, slow-moving stock, rainfall, sporadic trades) with intermittent-demand methods: Croston classic, optimized and Syntetos-Boylan (SBA), ADIDA (temporal aggregation), IMAPA (multiple aggregation) and TSB (demand probability times size, handles obsolescence). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Sample data
Source: https://docs.fincept.in/reference/ts-forecast/data
The monthly international airline passengers series (1949-1960) and synthetic panels of seasonal series of chosen length, frequency and static features, in the long id/date/value layout every tool accepts.
Toolset `tsforecast_data`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_sample_data` | Returns sample series in the long layout (unique\_id, ds, y \[, static\_\*]) that every tool accepts as data: the monthly international airline passengers series 1949-1960 (thousands of passengers, strong trend and multiplicative seasonality), or a synthetic panel of seasonal series with chosen count, frequency, length range, static features and seed. | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Statistical forecasting
Source: https://docs.fincept.in/reference/ts-forecast/forecasting
Forecast one series or a panel with any mix of statistical models (automatic ARIMA, ETS, CES, Theta, TBATS, MSTL, boosted decomposition, structural, intermittent, GARCH, benchmarks, regression), native or conformal intervals, exogenous regressors and a fallback model; the model and parameter reference; transfer of fitted models to new or extended series.
Toolset `tsforecast_forecasting`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_forecast` | Fits statistical models to one series (y) or every series of a panel (data: id, time, value) and forecasts h periods ahead: any mix of automatic ARIMA, ETS, CES, Theta, TBATS, MSTL, boosted decomposition, structural, intermittent-demand, GARCH, benchmark and regression models (tsforecast\_models lists them and their parameters), with native or conformal prediction intervals, numeric exogenous regressors (future\_exog) and a fallback model for series a model cannot fit (its forecasts then fill that model's column). | |
| `tsforecast_models` | Lists the forecasting models any multi-model tool accepts: each model key, the family tool that also returns its fitted summary, its default column name, a one-line description and what it supports (exogenous regressors, native intervals, transfer to new data, simulation), with every parameter's type, default, allowed range and meaning. | |
| `tsforecast_forward` | Fits the models on one history (data or y) and applies them, parameters unchanged, to new data (new\_data or new\_y): the same series with more observations (update a forecast without re-estimating) or other series (forecast a short or new series with a model learned elsewhere). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Fincept TS Forecast
Source: https://docs.fincept.in/reference/ts-forecast/overview
Every Fincept TS Forecast module and its toolset.
19 tools in 11 modules, plus `tsforecast_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [ARIMA models](/reference/ts-forecast/arima) | `tsforecast_arima` | Automatic and fixed-order (seasonal) ARIMA and autoregression with exogenous regressors, fitted series by series: orders, coefficients with standard errors, AIC/AICc/BIC, forecasts with intervals; unit-root and seasonal-strength tests that choose the differencing. | 2 |
| [Statistical forecasting](/reference/ts-forecast/forecasting) | `tsforecast_forecasting` | Forecast one series or a panel with any mix of statistical models (automatic ARIMA, ETS, CES, Theta, TBATS, MSTL, boosted decomposition, structural, intermittent, GARCH, benchmarks, regression), native or conformal intervals, exogenous regressors and a fallback model; the model and parameter reference; transfer of fitted models to new or extended series. | 3 |
| [Backtesting and evaluation](/reference/ts-forecast/backtest) | `tsforecast_backtest` | Rolling-origin cross-validation of statistical models (expanding or fixed window, refit schedule, conformal or native intervals) scored with MAE, RMSE, MAPE, sMAPE, MASE, RMSSE, bias, quantile, coverage and Winkler metrics per model, window and series; scoring of any forecasts against actuals. | 2 |
| [Benchmarks and intermittent demand](/reference/ts-forecast/benchmarks) | `tsforecast_benchmarks` | Benchmark forecasters every model should beat (naive, seasonal naive, random walk with drift, historic and window averages, conformal seasonal pool, constant) and intermittent-demand methods for series with many zero periods (Croston classic, optimized and SBA, ADIDA, IMAPA, TSB). | 2 |
| [Sample data](/reference/ts-forecast/data) | `tsforecast_data` | The monthly international airline passengers series (1949-1960) and synthetic panels of seasonal series of chosen length, frequency and static features, in the long id/date/value layout every tool accepts. | 1 |
| [Regression on exogenous columns](/reference/ts-forecast/regression) | `tsforecast_regression` | Per-series regression of the target on its exogenous columns (linear, regularized, robust, quantile, tree ensembles, gradient boosting, nearest neighbours, support vector and kernel ridge) forecast from future exogenous values, with conformal intervals and coefficients or importances. | 1 |
| [Scenario simulation](/reference/ts-forecast/scenarios) | `tsforecast_scenarios` | Sample future paths of fitted statistical models (ARIMA, ETS, CES, Theta, exponential smoothing, benchmarks) with normal, Student t, Laplace, skew-normal, generalized-error or bootstrapped errors: quantile fans, path statistics and raw sample paths for risk and scenario analysis. | 1 |
| [Multiple seasonality](/reference/ts-forecast/seasonal) | `tsforecast_seasonal` | Models for series with several seasonal cycles (daily data with weekly and yearly patterns, hourly data with daily and weekly ones): TBATS, MSTL decomposition with a trend model, and gradient-boosted decomposition; components, harmonics, Box-Cox and forecasts with intervals. | 3 |
| [Exponential smoothing and Theta](/reference/ts-forecast/smoothing) | `tsforecast_smoothing` | Automatic ETS state-space models, Holt and Holt-Winters, simple and seasonal exponential smoothing, complex exponential smoothing, and the standard, optimized and dynamic Theta methods: smoothing weights, damping, initial states, AIC/AICc/BIC and forecasts with intervals. | 2 |
| [Unobserved components](/reference/ts-forecast/structural) | `tsforecast_structural` | Structural time-series models estimated by Kalman filter: local level, local linear trend, smooth trend, seasonal, cycle and autoregressive components with exogenous regressors; component variances, smoothed components and forecasts with intervals. | 1 |
| [Volatility (GARCH)](/reference/ts-forecast/volatility) | `tsforecast_volatility` | GARCH(p,q) and ARCH(p) conditional-variance models of return series: coefficients, persistence, unconditional variance, in-sample conditional volatility and the volatility forecast. | 1 |
# Regression on exogenous columns
Source: https://docs.fincept.in/reference/ts-forecast/regression
Per-series regression of the target on its exogenous columns (linear, regularized, robust, quantile, tree ensembles, gradient boosting, nearest neighbours, support vector and kernel ridge) forecast from future exogenous values, with conformal intervals and coefficients or importances.
Toolset `tsforecast_regression`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_regression` | Regresses the target of one series (y with exog) or of every series of a panel (data with exogenous columns) on its exogenous columns, each series separately, with a regressor chosen from linear, ridge, lasso, elastic net, Huber, Bayesian ridge, quantile, decision tree, random forest, extra trees, gradient boosting, histogram gradient boosting, k-nearest neighbours, SVR and kernel ridge, then forecasts from future\_exog (scenario or what-if forecasts). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Scenario simulation
Source: https://docs.fincept.in/reference/ts-forecast/scenarios
Sample future paths of fitted statistical models (ARIMA, ETS, CES, Theta, exponential smoothing, benchmarks) with normal, Student t, Laplace, skew-normal, generalized-error or bootstrapped errors: quantile fans, path statistics and raw sample paths for risk and scenario analysis.
Toolset `tsforecast_scenarios`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_simulate` | Simulates n\_paths future paths of h periods from statistical models fitted to one series (y) or every series of a panel (data), with normal, Student t, Laplace, skew-normal, generalized-error or bootstrapped errors. | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Multiple seasonality
Source: https://docs.fincept.in/reference/ts-forecast/seasonal
Models for series with several seasonal cycles (daily data with weekly and yearly patterns, hourly data with daily and weekly ones): TBATS, MSTL decomposition with a trend model, and gradient-boosted decomposition; components, harmonics, Box-Cox and forecasts with intervals.
Toolset `tsforecast_seasonal`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_tbats` | Fits TBATS (trigonometric seasonality, Box-Cox, ARMA errors, trend and seasonal components) to one series (y) or every series of a panel (data), for one or several seasonal periods that may be long (e.g. \[7, 365] for daily data). | |
| `tsforecast_mfles` | Fits the gradient-boosted decomposition model to one series (y) or every series of a panel (data): rounds of median, Fourier seasonality (several periods), piecewise-linear trend with changepoints, exogenous regression and smoothing, each shrunk by its learning rate; auto\_mfles picks the settings by a backtest search. | |
| `tsforecast_mstl` | Multiple seasonal-trend decomposition by LOESS (MSTL) of one series (y) or every series of a panel (data) for one or several periods (e.g. \[7, 365] for daily data, \[24, 168] for hourly), forecasting each seasonal component by seasonal naive and the trend plus remainder with a chosen non-seasonal model (automatic ETS by default, or ARIMA, Theta, CES, ...). | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Exponential smoothing and Theta
Source: https://docs.fincept.in/reference/ts-forecast/smoothing
Automatic ETS state-space models, Holt and Holt-Winters, simple and seasonal exponential smoothing, complex exponential smoothing, and the standard, optimized and dynamic Theta methods: smoothing weights, damping, initial states, AIC/AICc/BIC and forecasts with intervals.
Toolset `tsforecast_smoothing`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_ets` | Fits exponential-smoothing models to one series (y) or every series of a panel (data): automatic ETS (error/trend/season components and damping chosen by AICc, or given as e.g. MAM), Holt, Holt-Winters, simple and seasonal exponential smoothing (given or fitted alpha) and complex exponential smoothing. | |
| `tsforecast_theta` | Fits Theta-method models to one series (y) or every series of a panel (data): standard Theta (theta = 2), optimized Theta, the dynamic variants and AutoTheta (best of the four by in-sample error), after a classical multiplicative or additive deseasonalization when the series is seasonal. | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Unobserved components
Source: https://docs.fincept.in/reference/ts-forecast/structural
Structural time-series models estimated by Kalman filter: local level, local linear trend, smooth trend, seasonal, cycle and autoregressive components with exogenous regressors; component variances, smoothed components and forecasts with intervals.
Toolset `tsforecast_structural`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_ucm` | Fits unobserved-components (structural) models to one series (y) or every series of a panel (data) by Kalman-filter maximum likelihood: a level or trend specification (local level, local linear trend, smooth trend, random walk with drift, deterministic trend ...), stochastic seasonal of any period, cycle, autoregressive component and exogenous regressors. | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Volatility (GARCH)
Source: https://docs.fincept.in/reference/ts-forecast/volatility
GARCH(p,q) and ARCH(p) conditional-variance models of return series: coefficients, persistence, unconditional variance, in-sample conditional volatility and the volatility forecast.
Toolset `tsforecast_volatility`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `tsforecast_garch` | Fits GARCH(p,q) or ARCH(p) to a zero-mean return series (y, e.g. daily log returns in percent) or every series of a panel (data) by maximum likelihood. | |
Inputs, limits and outputs are described in [Fincept TS Forecast](/guides/fincept-ts-forecast). Full schemas: `fincept_describe_tool`.
# Bootstrap inference
Source: https://docs.fincept.in/reference/volatility/bootstrap
Bootstrap confidence intervals (percentile, basic, studentized, normal, bias-corrected, BCa) and replicate distributions for return statistics (mean, volatility, Sharpe, Sortino, quantiles, expected shortfall, correlation, beta, differences) under IID, stationary, circular-block, moving-block and independent-samples resampling; optimal block lengths; block-bootstrapped return paths.
Toolset `vol_bootstrap`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `vol_bootstrap_ci` | Bootstrap confidence intervals for a return statistic of each column (or of the first column against each other one): mean, volatility, Sharpe, Sortino, quantile, expected shortfall, skewness, kurtosis, correlation, beta, mean or Sharpe difference. | |
| `vol_optimal_block_length` | Politis-White (with the Patton-Politis-White correction) optimal block lengths for the stationary and the circular/moving block bootstrap, per column. | |
| `vol_bootstrap_replicates` | The bootstrap distribution of a return statistic: each output's estimate, replicate mean, bias, standard error, 2.5/97.5% quantiles, the covariance matrix of the outputs, and a histogram of the first output (chart). | |
| `vol_bootstrap_paths` | Resamples a return series into many paths (stationary, circular or moving-block bootstrap, or iid) and reports the fan of the cumulative return (5/25/50/75/95 percentiles per step, chart), the terminal return's mean, dispersion, probability of loss, VaR and expected shortfall, and the first resampled index sets. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.
# Forecast comparison
Source: https://docs.fincept.in/reference/volatility/comparison
Compare forecasting models on their losses: superior predictive ability (SPA) and reality check p-values and the StepM set of models that beat a benchmark, and the model confidence set of the best models, all with block-bootstrap inference.
Toolset `vol_comparison`: 2 tools.
| Tool | What it does | Notes |
| - | - | - |
| `vol_spa` | Tests whether any of several forecasting models beats a benchmark on their losses, with block-bootstrap inference that accounts for data snooping: Hansen's SPA (lower, consistent and upper p-values, critical values, the models significantly better), White's reality check, or Romano-Wolf StepM (the set of superior models at the given size). | |
| `vol_mcs` | The model confidence set of Hansen, Lunde and Nason: the models whose losses are not significantly worse than the best, at confidence 1 - size, found by sequential elimination with block-bootstrap p-values. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.
# Long-run covariance
Source: https://docs.fincept.in/reference/volatility/covariance
Kernel (HAC) long-run covariance estimators: Bartlett/Newey-West, Parzen/Gallant, quadratic spectral/Andrews, Parzen-Riesz, Parzen geometric, Parzen-Cauchy, Tukey-Hamming, Tukey-Hanning and Tukey-Parzen, with data-driven bandwidths, kernel weights and HAC standard errors of the mean.
Toolset `vol_covariance`: 1 tool.
| Tool | What it does | Notes |
| - | - | - |
| `vol_long_run_covariance` | Kernel (HAC) estimate of the long-run covariance of one or more series: Bartlett/Newey-West, Parzen, quadratic spectral and six other kernels, with a fixed or data-driven bandwidth. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.
# Volatility forecasting and VaR backtests
Source: https://docs.fincept.in/reference/volatility/forecast
Out-of-sample volatility, Value-at-Risk and expected-shortfall forecasts with rolling or expanding re-estimation and hit-rate backtests; forecasts from many origins (hedgehog view, origin or target alignment); scenario forecasts from crisis-window or scaled shocks.
Toolset `vol_forecast`: 3 tools.
| Tool | What it does | Notes |
| - | - | - |
| `vol_rolling_forecast` | Backtests a volatility model out of sample: re-estimates it on a rolling or expanding window (every refit\_every steps), forecasts the conditional mean, volatility, Value-at-Risk and expected shortfall horizon steps ahead, and scores them against the realized returns. | |
| `vol_forecast_origins` | Forecasts a fitted volatility model from every origin since start, each h steps ahead, with the parameters estimated once (in-sample forecasts, the hedgehog view of how forecasts revert to the long-run level). | |
| `vol_scenario_forecast` | Simulates a fitted volatility model forward from today under a scenario: shocks bootstrapped from the standardized residuals of a chosen historical window (crisis replay) or drawn from the fitted distribution and scaled. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.
# Volatility models
Source: https://docs.fincept.in/reference/volatility/models
GARCH-family conditional volatility models (GARCH, GJR, TARCH, EGARCH, APARCH, FIGARCH, HARCH, MIDAS hyperbolic, EWMA, RiskMetrics 2006, fixed variance) with constant, zero, AR, HAR, regression or volatility-in-mean means and normal, Student t, skewed t or GED errors: estimation, diagnostics, forecasts with VaR and expected shortfall, ARCH-effect tests, simulation and the error distributions.
Toolset `vol_models`: 4 tools.
| Tool | What it does | Notes |
| - | - | - |
| `vol_garch` | Fits a conditional volatility model (default constant mean, GARCH(1,1), normal errors; any mean, volatility process and distribution through model) and forecasts it. | |
| `vol_arch_effects` | Tests a return series for ARCH effects (volatility clustering) before any model is fitted: Engle's ARCH-LM test and the Ljung-Box (McLeod-Li) test on squared returns at each lag. | |
| `vol_simulate` | Simulates returns from a volatility model (any mean, process and distribution) at given parameters, or at parameters fitted to returns. | |
| `vol_distribution` | Evaluates the standardized error distributions of the volatility models (normal, Student t, Hansen skewed t, generalized error) at given shape parameters: quantiles (the VaR multipliers), CDF, moments, lower partial moments (expected-shortfall building blocks), random draws or the log-likelihood of values. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.
# Fincept Volatility
Source: https://docs.fincept.in/reference/volatility/overview
Every Fincept Volatility module and its toolset.
19 tools in 6 modules, plus `vol_catalog`, which lists them from inside your agent. All are free.
| Module | Toolset | Covers | Tools |
| - | - | - | - |
| [Bootstrap inference](/reference/volatility/bootstrap) | `vol_bootstrap` | Bootstrap confidence intervals (percentile, basic, studentized, normal, bias-corrected, BCa) and replicate distributions for return statistics (mean, volatility, Sharpe, Sortino, quantiles, expected shortfall, correlation, beta, differences) under IID, stationary, circular-block, moving-block and independent-samples resampling; optimal block lengths; block-bootstrapped return paths. | 4 |
| [Forecast comparison](/reference/volatility/comparison) | `vol_comparison` | Compare forecasting models on their losses: superior predictive ability (SPA) and reality check p-values and the StepM set of models that beat a benchmark, and the model confidence set of the best models, all with block-bootstrap inference. | 2 |
| [Long-run covariance](/reference/volatility/covariance) | `vol_covariance` | Kernel (HAC) long-run covariance estimators: Bartlett/Newey-West, Parzen/Gallant, quadratic spectral/Andrews, Parzen-Riesz, Parzen geometric, Parzen-Cauchy, Tukey-Hamming, Tukey-Hanning and Tukey-Parzen, with data-driven bandwidths, kernel weights and HAC standard errors of the mean. | 1 |
| [Volatility models](/reference/volatility/models) | `vol_models` | GARCH-family conditional volatility models (GARCH, GJR, TARCH, EGARCH, APARCH, FIGARCH, HARCH, MIDAS hyperbolic, EWMA, RiskMetrics 2006, fixed variance) with constant, zero, AR, HAR, regression or volatility-in-mean means and normal, Student t, skewed t or GED errors: estimation, diagnostics, forecasts with VaR and expected shortfall, ARCH-effect tests, simulation and the error distributions. | 4 |
| [Volatility forecasting and VaR backtests](/reference/volatility/forecast) | `vol_forecast` | Out-of-sample volatility, Value-at-Risk and expected-shortfall forecasts with rolling or expanding re-estimation and hit-rate backtests; forecasts from many origins (hedgehog view, origin or target alignment); scenario forecasts from crisis-window or scaled shocks. | 3 |
| [Unit roots and cointegration](/reference/volatility/unitroot) | `vol_unitroot` | Unit-root and stationarity tests (ADF, DF-GLS, Phillips-Perron, KPSS, Zivot-Andrews with a break), variance-ratio random-walk tests, Engle-Granger and Phillips-Ouliaris cointegration tests, cointegrating vectors by dynamic OLS, fully modified OLS and canonical cointegrating regression, and p-values and critical values for any of these statistics. | 5 |
# Unit roots and cointegration
Source: https://docs.fincept.in/reference/volatility/unitroot
Unit-root and stationarity tests (ADF, DF-GLS, Phillips-Perron, KPSS, Zivot-Andrews with a break), variance-ratio random-walk tests, Engle-Granger and Phillips-Ouliaris cointegration tests, cointegrating vectors by dynamic OLS, fully modified OLS and canonical cointegrating regression, and p-values and critical values for any of these statistics.
Toolset `vol_unitroot`: 5 tools.
| Tool | What it does | Notes |
| - | - | - |
| `vol_unit_root` | Unit-root and stationarity tests on one series: augmented Dickey-Fuller, DF-GLS (Elliott-Rothenberg-Stock), Phillips-Perron (tau or rho), KPSS (null: stationary) and Zivot-Andrews (one structural break, dated), or the first four together with a joint verdict. | |
| `vol_variance_ratio` | Lo-MacKinlay variance-ratio test of a random walk on a level series (log prices; transform log turns prices into log prices) at several horizons. | |
| `vol_cointegration_test` | Residual-based cointegration tests of y on x (null: no cointegration): Engle-Granger (ADF on the cointegrating residual) or Phillips-Ouliaris (Zt, Za, Pu, Pz with a kernel long-run variance). | |
| `vol_cointegrating_vector` | Efficient estimates of the cointegrating vector of y on x: dynamic OLS (Stock-Watson, with leads and lags of the differenced regressors), fully modified OLS (Phillips-Hansen) or canonical cointegrating regression (Park). | |
| `vol_unit_root_pvalue` | p-value and 1/5/10% critical values of a unit-root or cointegration statistic computed elsewhere: MacKinnon response surfaces for Dickey-Fuller t and z and DF-GLS, simulated tables for KPSS, Engle-Granger and the four Phillips-Ouliaris statistics. | |
Inputs, limits and outputs are described in [Fincept Volatility](/guides/fincept-volatility). Full schemas: `fincept_describe_tool`.