Expand description
Derive (Lyra) Volatility Oracle implementation.
TODO(clients): Move Derive HTTP transport and wire models into a dedicated client crate.
Polls Deriveβs public API for option tickers and populates a volatility surface with exchange-computed IV values. No API key required.
API pattern:
- GET /public/get_instruments?currency=X&instrument_type=option&expired=false -> list of instruments with expiry timestamps
- POST /public/get_tickers {currency, instrument_type, expiry_date} -> bulk ticker data per expiry with IV in option_pricing.i
StructsΒ§
- Derive
Instrument π - Derive
Instruments πResponse - Derive
Option πDetails - Derive
Option πPricing - Derive
Surface πState - Derive
Ticker π - Derive
Tickers πResponse - Bulk tickers response. Keyed by instrument name with abbreviated fields.
- Derive
Tickers πResult - Derive
VolOracle - Derive
VolOracle Config
ConstantsΒ§
FunctionsΒ§
- parse_
strike_ πfrom_ instrument - Parse strike price from a Derive instrument name.