![]() |
Resolver One Library DocumentationAPI for ThomsonBack to documentation index page. FunctionsTHMdef THM(source, instrument, dataset): This module is only available in Resolver One Financial. This function requires that the Thomson Dataworks SDK has been installed, and that the RTClient is running. Otherwise, this function will raise an error. Also requires an appropriately licensed version of Resolver One (eg. the Financial edition.) Otherwise, this function will raise a LicenseError. The THM function takes the source, instrument name and the symbol set name, all as strings. For example THM('PGE', 'VOD.L|', ''). When first entered into a spreadsheet, the THM function will subscribe to Thomson for live updates of the requested instrument, and will then raise a FetchingDataWarning, which will be displayed as a yellow warning cross. When Thomson's first data update arrives, the warning will be replaced by the returned value, which will be updated (causing recalcs) whenever Thomson send an updated value. The data will be returned in the form of a Python dictionary, with each available field used as a key. So, for example, THM('PGE', 'VOD.L|', '')['BID'] will return the BID value from the requested data. |