QuantWorlds

v1.0.0
com.quantworlds.api/quantworlds Checked 4 days ago Published 22 days ago

Option, 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.

ParameterTypeDescription
dividend_yield *number
iv_array *array
risk_free_rate *number
spot *number
strikes *array
time_to_expiry_years *number
is_americanboolean
option_typestring

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.

ParameterTypeDescription
prices *array
raw_signals *array
fee_bpsnumber
order_book_depth_usdnumber
trade_size_usdnumber
trials_tested_by_agentinteger

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.

ParameterTypeDescription
asset_betas *array
asset_vols_annual *array
correlation_matrix *array
current_weights *array
proposed_weights *array
confidence_levelnumber
scenariostring

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.

ParameterTypeDescription
series_x *array
series_y *array
ask_volumes
bid_volumes