Tutorial: interop.setContext

interop.setContext

Sets a context for the context group of the current entity. The entity must be part of a context group in order set a context.

Example

setInstrumentContext = async (ticker) => {
    fin.me.interop.setContext({type: 'instrument', id: {ticker}})
}

// The user clicks an instrument of interest. We want to set that Instrument context so that the rest of our workflow updates with information for that instrument
instrumentElement.on('click', (evt) => {
    setInstrumentContext(evt.ticker)
})