UNPKG

@openfin/bloomberg

Version:

Connect apps running in OpenFin with the Bloomberg Terminal.

21 lines (20 loc) 1.17 kB
import * as fdc3 from '@finos/fdc3'; import { BloombergMarketSector } from '../bloomberg/bloomberg.types'; export declare const ensureBloombergSecurityString: (security?: string) => string | undefined; export declare const getApiVersion: () => string; export declare const getDateFromIsoString: (utcString: string) => Date | undefined; export declare const getInstrumentContextFromSecurity: (security: string) => fdc3.Instrument; export declare const getMarketSectorFromSecurity: (security: string) => BloombergMarketSector | undefined; /** * Extracts a Bloomberg Terminal-compatible security string from an FDC3 instrument context. * * The function first checks for a `BBG` or `FIGI` identifier in the context, and if not found, constructs an Equity security string * from the `ticker` identifier using the `market.BBG` property if set. Otherwise it defaults to `US` for the market code. * * @param context - FDC3 instrument context. */ export declare const getSecurityFromInstrumentContext: (context: unknown) => string | undefined; /** * Polyfills `crypto.randomUUID` if running in a non-secure context. */ export declare const randomUUID: () => string;