UNPKG

@glue42/bbg-market-data

Version:

A high-level API that wraps existing Glue42 Bloomberg Bridge Market Data interop methods. The API is based on the jBloomberg open source wrapper.

15 lines (14 loc) 559 B
import { generateId, isNullOrUndefined } from './utils'; var CorrelationId = (function () { function CorrelationId() { var prefixes = []; for (var _i = 0; _i < arguments.length; _i++) { prefixes[_i] = arguments[_i]; } prefixes = prefixes.filter(function (prefix) { return !isNullOrUndefined(prefix); }); this.value = prefixes.length > 0 ? prefixes.join('-') + "-" + generateId() : generateId(); } return CorrelationId; }()); export { CorrelationId }; export default CorrelationId;