LSEG Data Library for Python

recorder.stop

The recorder.stop method stops recording updates and cancels the repeat timer for creating open-high-low-close (OHLC) dataframes.

Module

lseg.data

Syntax

stream.recorder.stop()

Parameters

None

Returned value

None

Usage

The following example demonstrates how to stop recording updates:

import lseg.data as ld


stream = ld.open_pricing_stream(
    universe=['GBP=', 'EUR=', 'JPY='],
    fields=['BID', 'ASK'],
)

stream.recorder.record(frequency="5s", duration="15s")
stream.recorder.stop()

None

26 words (0:08 mins)