API Reference / normalizeOptionChain
Function: normalizeOptionChain()
normalizeOptionChain(
response):NormalizedOptionChain
Defined in: src/resources/OptionChain.ts:135
Flattens the oc map (keyed by a stringified float strike) into a sorted array. Strikes that do not parse as numbers are dropped rather than sorted to the front as NaN. Each leg object is passed through by reference, so every field the API returns (including ones not yet typed here) survives.