Pular para o conteúdo
The Consortium

Desenvolvedores

finance_trigger_backtest

NXS Risk Finance and Capital API

Open. Reading is free and needs no key.

GET /v1/gra/trigger-backtest EServed

All operations

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

Parâmetros
NomeEmTipoO que faz
observations requiredquerystringComma list of index:loss, in time order (6 to 2000)
lossThreshold requiredquerynumberThe loss at or above which a payout was wanted (required)
direction optionalquerystring (above, below)above or below (default above)
thresholds optionalquerystringTrigger thresholds, comma list (up to 40)
steps optionalqueryintegerWithout thresholds: the number of quantile steps of the index (default 9)
trainFraction optionalquerynumberShare 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)