Skip to content

    Tools · Adapters

    Adapters

    Pure functions that transform external wire formats into canonical OptionsSchema payloads. Source lives at src/lib/options-schema-adapters.ts — dependency-free, lift into your own runtime.

    Input · OCC 21-char string

    Output · OptionSymbol parts

    Transformed
    {
      "parsed": {
        "root": "AAPL",
        "expiry": "2026-09-18",
        "side": "CALL",
        "strike": 235
      },
      "roundtrip": "AAPL  260918C00235000"
    }