Compute trade P&L statistics from caller-supplied realized P&L values
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.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
735 msmedian answer time
$0.011listed price per call
$0.011price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.edifiedlab.com/v1/market/pnl-stats
| Category | Market data |
|---|---|
| Provider host | api.edifiedlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.011 | 735 ms |
Example input (from the provider)
{
"body": {
"pnls": [
120.5,
-45,
300.25
],
"rolling_window": 20
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"pnls": {
"items": {
"maximum": 1e+150,
"minimum": -1e+150,
"type": "number"
},
"maxItems": 5000,
"minItems": 1,
"type": "array"
},
"rolling_window": {
"default": 20,
"maximum": 5000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"pnls"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"action": {
"const": "calculate",
"type": "string"
},
"avg_loss": {
"type": "number"
},
"avg_win": {
"type": "number"
},
"expectancy": {
"type": "number"
},
"expectancy_pvalue": {
"type": "number"
},
"expectancy_pvalue_method": {
"const": "student_t_two_sided",
"type": "string"
},
"expectancy_pvalue_sample_size": {
"minimum": 1,
"type": "integer"
},
"kelly": {
"type": "number"
},
"longest_loss_streak": {
"type": "integer"
},
"max_drawdown": {
"type": "number"
},
"n": {
"type": "integer"
},
"payload": {
"const": "pnl_stats",
"type": "string"
},
"profit_factor": {
"type": [
"number",
"null"
]
},
"rolling_expectancy": {
"type": "number"
},
"rolling_kelly": {
"type": "number"
},
"rolling_n": {
"type": "integer"
},
"rolling_win_rate": {
"type": "number"
},
"trailing_loss_streak": {
"type": "integer"
},
"win_rate": {
"type": "number"
}
},
"required": [
"payload",
"action",
"n",
"win_rate",
"avg_win",
"avg_loss",
"expectancy",
"profit_factor",
"max_drawdown",
"longest_loss_streak",
"trailing_loss_streak",
"kelly",
"rolling_n",
"rolling_expectancy",
"rolling_win_rate",
"rolling_kelly",
"expectancy_pvalue",
"expectancy_pvalue_sample_size",
"expectancy_pvalue_method"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}