{"kind":"x402/quant-desk","profileVersion":"quant-desk/v1","methodologyVersion":"quant-methodology/v1","routes":[{"path":"POST /v1/strategy/verdict","priceUsd":"2.00"},{"path":"POST /v1/quant/significance","priceUsd":"0.05"},{"path":"POST /v1/quant/risk-of-ruin","priceUsd":"0.05"},{"path":"POST /v1/quant/overlap","priceUsd":"0.10"},{"path":"POST /v1/quant/monte-carlo","priceUsd":"0.15"},{"path":"POST /v1/market/regime","priceUsd":"0.05"},{"path":"POST /v1/verdict/batch","priceUsd":"5.00"}],"thresholds":{"minimumObservations":250,"minimumOverlap":60,"minimumBars":60,"minimumSignificanceObservations":30,"alpha":0.05,"monteCarloMaxRuns":20000},"methodologies":{"strategy":{"route":"POST /v1/strategy/verdict","minimumObservations":250,"multipleTesting":{"method":"deflated_sharpe","version":"deflated-sharpe/v1","form":"SR* = (SR_obs - SR0) / (sr_std * sqrt(1/n)); SR0 = sqrt((1-gamma)*Z^-1(1-1/N) + gamma*Z^-1(1-1/(N*e))) / sqrt(n-1) * sqrt(periods_per_year)","units":"the observed Sharpe and the threshold SR0 are BOTH ANNUALISED (SR0 is periodic by construction and is scaled by sqrt(periods_per_year) before the comparison, so the two can never be compared in different units)","provenance":"Bailey & Lopez de Prado (2014), 'The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting and Non-Normality'","trialsSource":"our own graded-strategy vault (anonymised aggregate) or a caller-supplied count"},"verdicts":["deployable","candidate","reject","insufficient_data"],"hardRule":"A verdict is NEVER 'deployable' when the deflated Sharpe is below the multiple-testing threshold.","stability":{"subperiods":4,"statistic":"annualised information ratio per contiguous subperiod"},"capacityHint":"a dimensionless 0-1 QUALITY hint, NOT a dollar figure: capacity in dollars needs the instrument's ADV, which the caller did not supply","readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"significance":{"route":"POST /v1/quant/significance","minimumObservations":30,"test":{"name":"sign-flip permutation test","statistic":"information ratio (order-DEPENDENT)","why":"A permutation test on a permutation-INVARIANT quantity is vacuous: reordering cannot change the statistic, so every permutation gives the same value and the p-value is meaningless. The mean and the IR depend on order, so the sign-flip null is a genuine one.","permutationTrials":1000,"seeded":true},"correction":{"method":"permutation_signflip","alpha":0.05},"verdicts":["significant","not_significant","insufficient_data"],"readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"riskOfRuin":{"route":"POST /v1/quant/risk-of-ruin","ruinModel":{"form":"P(hit zero within N trades) = Phi((-E0 - mu*N)/(sigma*sqrt(N))) + exp(-2*mu*E0/sigma^2) * Phi((-E0 + mu*N)/(sigma*sqrt(N)))","process":"a FIXED-STAKE bettor: the stake is risk_per_trade_pct of the INITIAL capital on every trade, so the equity is an additive random walk","provenance":"the classical first-passage formula for a drifted random walk, applied to the discrete bold-play process of Dubins & Savage, 'How to Gamble' (1965)","mu":"S * (p*avg_win_r - (1-p)*avg_loss_r),  S = f * E0","sigma2":"S^2 * (p*avg_win_r^2 + (1-p)*avg_loss_r^2 - (p*avg_win_r - (1-p)*avg_loss_r)^2)","E0":"the starting capital","N":"the number of trades"},"absorbingRuin":"once equity reaches 0 it stays 0; a path is never allowed to recover","kelly":{"form":"f* = (p*b - q) / b, where b = avg_win_r / avg_loss_r","provenance":"the classic bivariate Kelly criterion","halfKelly":"f*/2 — the conventional risk-scaled fraction"},"expectedGrowthPerTrade":"the expected increment per trade as a fraction of the INITIAL capital: f * (p*avg_win_r - (1-p)*avg_loss_r)","simulation":{"runs":2000,"seeded":true,"tolerance":0.05,"note":"the simulation is of the SAME fixed-stake process the analytic model describes, so the gap between them is a real diagnostic"},"verdicts":["safe","cautious","excessive","ruin_dominant","insufficient_input"],"thresholds":{"cautious":0.05,"excessive":0.2},"readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"overlap":{"route":"POST /v1/quant/overlap","statistic":"Pearson correlation of the aligned return series","minimumOverlap":60,"insufficientRule":"a pair with fewer than the minimum overlap is OMITTED and COUNTED in `insufficient_pairs`; it is NEVER zero-filled, because a zero correlation is a measurement and a missing one is not","clustering":"connected components of the crowded-pair graph","verdicts":["independent","partially_correlated","crowded","insufficient_data"],"readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"monteCarlo":{"route":"POST /v1/quant/monte-carlo","method":"iid_bootstrap","maxRuns":20000,"seeded":true,"limitation":"IID resampling ignores autocorrelation and the clustering of losing streaks, so the reported tail UNDERSTATES the risk of a real strategy. A block bootstrap is the right tool for a serially-correlated series; this service does not offer one.","readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"regime":{"route":"POST /v1/market/regime","minimumBars":60,"features":{"slope":"least-squares slope of close on the bar index, normalised by the mean close","atr_pct":"the mean True Range as a fraction of the mean close (needs high and low)","adx":"Wilder's 14-bar Average Directional Index (needs high and low)","realised_vol":"the annualised standard deviation of the periodic returns (252-bar assumption)","recent_vol_ratio":"the last 20 bars' volatility against the whole sample's"},"methods":["trend","volatility","combined"],"regimes":["trend_up","trend_down","range","high_vol","low_vol","unknown"],"dataSource":"the caller's OWN series only — no external data, no OANDA, no database","readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."},"batch":{"route":"POST /v1/verdict/batch","checks":["significance","risk_of_ruin","overlap"],"orderGuarantee":"the results are returned in the caller's order; the summary counts do not depend on it","isolationRule":"one insufficient item does NOT fail the batch — it is reported as `insufficient_data` in its own row and every other item is still judged","verdicts":["deployable","candidate","reject","insufficient_data"],"readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."}},"privacy":"Anonymised aggregate only. No strategy's parameters, identity, name or instrument ever appears in a response.","readOnly":true,"note":"Deterministic statistical judgement over caller-supplied data. No LLM in the answer path, no network call, no external market data. An ANONYMISED AGGREGATE calibration prior from our own graded-strategy vault is reported where the methodology uses one. This is a quantitative judgement, not investment advice."}