Desarrolladores
finance_trigger_backtest
NXS Risk Finance and Capital API
GET /v1/gra/trigger-backtest EServed
Backtest of a parametric trigger across thresholds on the caller's own history (compact form)
Your paired history of an index and the realised loss, in time order, the loss at which a payout was wanted and a direction: the four basis-risk cells, agreement, false-trigger and missed-event shares with Wilson intervals at each threshold you give (or at quantiles of the index), and, with a train fraction, how the threshold that agreed most on the first part behaves on the rest. Descriptive: it chooses no trigger and is not advice. The series is yours and unverified; Protocol verifies trigger data. Compact form: every input in the query; the JSON form is the POST of the same path. Illustrative, stores nothing, and carries its method card and a replication digest. State: exists.
MCP tool: finance.trigger_backtest
Parámetros
| Nombre | En | Tipo | Lo que hace |
|---|---|---|---|
observations required | query | string | Comma list of index:loss, in time order (6 to 2000) |
lossThreshold required | query | number | The loss at or above which a payout was wanted (required) |
direction optional | query | string (above, below) | above or below (default above) |
thresholds optional | query | string | Trigger thresholds, comma list (up to 40) |
steps optional | query | integer | Without thresholds: the number of quantile steps of the index (default 9) |
trainFraction optional | query | number | Share of the history, in order, used as the training part, 0.3 to 0.9 |
Responses
- 200 Records with provenance
- 304 Not modified (If-None-Match matched the strong ETag) (a problem, RFC 9457)
- 400 Bad request (a problem, RFC 9457)
- 429 Open-tier rate limit (a problem, RFC 9457)
- 500 Internal error (a problem, RFC 9457)