peg-deviation
Calculate a stablecoin's deviation from its target peg using a single mid price or a stored quote series, with threshold checks for out-of-peg conditions.
Instructions
Stablecoin deviation from its peg, from one mid price or from the lake.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask | No | ||
| bid | No | ||
| price | No | ||
| symbol | No | ||
| target | No | ||
| threshold | No | ||
| asset_class | No | Which market answers. Inferred from the symbol's source when omitted. |