• Wrap a Tier-2 descriptor as a normal 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);

    Parameters

    Returns IndicatorDescriptor