Skip to main content

Module derive_oracle

Module derive_oracle 

Source
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:

  1. GET /public/get_instruments?currency=X&instrument_type=option&expired=false -> list of instruments with expiry timestamps
  2. POST /public/get_tickers {currency, instrument_type, expiry_date} -> bulk ticker data per expiry with IV in option_pricing.i

StructsΒ§

DeriveInstrument πŸ”’
DeriveInstrumentsResponse πŸ”’
DeriveOptionDetails πŸ”’
DeriveOptionPricing πŸ”’
DeriveSurfaceState πŸ”’
DeriveTicker πŸ”’
DeriveTickersResponse πŸ”’
Bulk tickers response. Keyed by instrument name with abbreviated fields.
DeriveTickersResult πŸ”’
DeriveVolOracle
DeriveVolOracleConfig

ConstantsΒ§

DEFAULT_DERIVE_BASE_URL

FunctionsΒ§

parse_strike_from_instrument πŸ”’
Parse strike price from a Derive instrument name.