fetchOIChange method

  1. @override
Future<String?> fetchOIChange({
  1. required String underlyingSymbolId,
  2. required List<String> expiries,
  3. required int timeFrom,
  4. required int timeTo,
})
override

OI change (only) over the window timeFrom..timeTo (unix seconds), summed across expiries, per strike -- powers the OI Profile indicator's change values and the OI Change Analysis screen, as an alternative to the single feed-provided MarketData.oIChng.

Resolve to a JSON object:

{
  "calls": {"23450": 3770, ...},
  "puts": {"23450": 802750, ...}
}

Resolve to null when no data is available for the window.

Implementation

@override
Future<String?> fetchOIChange({
  required String underlyingSymbolId,
  required List<String> expiries,
  required int timeFrom,
  required int timeTo,
}) => _data.invokeMethod<String>('fetchOIChange', {
  'underlyingSymbolId': underlyingSymbolId,
  'expiries': expiries,
  'timeFrom': timeFrom,
  'timeTo': timeTo,
});