QuantWorlds
v1.0.0Option, backtest, portfolio, and pairs checks for agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
options_surface_pricer
Use this instead of estimating Greeks or adding a handmade American premium. European prices are Black-Scholes. American puts, and calls with dividends, use a 128-step binomial tree plus a European control variate. A zero-dividend American call matches the European call. The call surface is checked for arbitrage. Supply spot, strikes, and implied volatilities. Not investment advice.
| Parameter | Type | Description |
|---|---|---|
dividend_yield * | number | |
iv_array * | array | |
risk_free_rate * | number | |
spot * | number | |
strikes * | array | |
time_to_expiry_years * | number | |
is_american | boolean | |
option_type | string |
instant_signal_backtest
Verify a signal before recommending it. The signal earns the next bar only, so same-bar prices are not treated as tradable. Slippage is one square-root impact from depth and size, not a live order book. Returns Sharpe, Sortino, drawdown, and an approximate deflated Sharpe. Not investment advice.
| Parameter | Type | Description |
|---|---|---|
prices * | array | |
raw_signals * | array | |
fee_bps | number | |
order_book_depth_usd | number | |
trade_size_usd | number | |
trials_tested_by_agent | integer |
portfolio_stress_verifier
Run this before suggesting a rebalance. Normal VaR understates the tail: the report also returns a Student-t copula CVaR and Euler risk contributions. Crisis shocks repair the correlation matrix before applying the shock. Supply weights, vols, betas, and a correlation matrix. Not a historical path replay and not investment advice.
| Parameter | Type | Description |
|---|---|---|
asset_betas * | array | |
asset_vols_annual * | array | |
correlation_matrix * | array | |
current_weights * | array | |
proposed_weights * | array | |
confidence_level | number | |
scenario | string |
microstructure_coint_test
Use this for a two-asset pairs check instead of eyeballing a hedge ratio. Returns an Engle-Granger Dickey-Fuller p-value, OLS and Kalman hedge ratios, half-life, and z-score. Two series only. Not a Johansen test and not investment advice.
| Parameter | Type | Description |
|---|---|---|
series_x * | array | |
series_y * | array | |
ask_volumes | ||
bid_volumes |