Wrap a Tier-2 descriptor as a normal IndicatorDescriptor.
IndicatorDescriptor
export const OPEN_INTEREST = createTier2Indicator({ id: 'open-interest', name: 'Open Interest', placement: 'pane', inputs: [{ key: 'symbol', type: 'text', label: 'Symbol', default: '' }], plots: [{ key: 'oi', type: 'line', title: 'OI' }], refetchOn: ['symbol'], fetch: async ({ settings, from, to }) => loadOi(settings.symbol, from, to),});registerIndicator(OPEN_INTEREST); Copy
export const OPEN_INTEREST = createTier2Indicator({ id: 'open-interest', name: 'Open Interest', placement: 'pane', inputs: [{ key: 'symbol', type: 'text', label: 'Symbol', default: '' }], plots: [{ key: 'oi', type: 'line', title: 'OI' }], refetchOn: ['symbol'], fetch: async ({ settings, from, to }) => loadOi(settings.symbol, from, to),});registerIndicator(OPEN_INTEREST);
Wrap a Tier-2 descriptor as a normal
IndicatorDescriptor.