Compute trade P&L statistics from caller-supplied realized P&L values: win rate,...
https://api.edifiedlab.com/v1/market/pnl-statsOverview
Compute trade P&L statistics from caller-supplied realized P&L values: win rate, profit factor, max drawdown, and rolling-window statistics. No market data or account access -- purely a function of the numbers supplied.
Protocol
x402 (POST)
Price
$0.01
Payment Asset
USDC
Payment Network
eip155:8453
Category
uncategorized
Provider
P&L Stats Calculator
Source
bazaar
Indexed
2026-09-19 16:14:08
Health
Status
degraded
Latency (p50)
371ms
Uptime (30d)
100.0%
Reliability Score
95/100
Last Checked
2026-10-27 20:12:13
Last Healthy
2026-10-17 07:24:58
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
Invalid
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"pnls": [
120.5,
-45,
300.25
],
"rolling_window": 20
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"action": "calculate",
"avg_loss": 45,
"avg_win": 210.375,
"expectancy": 125.25,
"expectancy_pvalue": 0.335851,
"expectancy_pvalue_method": "student_t_two_sided",
"expectancy_pvalue_reason": null,
"expectancy_pvalue_sample_size": 3,
"kelly": 0.595365,
"longest_loss_streak": 1,
"max_drawdown": 45,
"n": 3,
"payload": "pnl_stats",
"profit_factor": 9.35,
"rolling_expectancy": 125.25,
"rolling_kelly": 0.595365,
"rolling_n": 3,
"rolling_win_rate": 0.666667,
"trailing_loss_streak": 0,
"win_rate": 0.666667
},
"type": "json"
}