Security is one of the basic definitions in EagleML which represents a tradable financial asset. The corresponding EagleML object is Generic SMF.
Each security is uniquely defined by its identifier. Identifiers can be either standard, ticker, cusip, cusipPay, cusipReceive, isin, sedol, reuters, bloombergId, sicovmId, valorenId, cedel, internalId, cinsId, uniqueProductId, uniqueSwapId, either vendor-specific. Each identifier is described by two fields - its value (id) and its type. The process of unique identification of a security by its id and type is called Security Resolution.
What is actually resolved by Security Resolution?
Security Resolution process defines the unique number of the security called security alias. A database cannot contain two securities with matching security aliases, these aliases are unique.
When is Security Resolution used?
- When you load a security. The system resolves the alias by its id and type and if there is no such alias in DB, an INSERT is performed. If there is already a security in DB with matching alias, UPDATE is performed.
- When you load security-related objects, such as Warehouse, Accounting or some of the Reference. If the system cannot resolve a security with incoming identifiers, load is impossible and it will return an error.
Which DB tables are used in Security Resolution?
The main table to store information about a security is SECURITYDBO.SECURITY_MASTER
Identifiers for each security are stored in SECURITYDBO.XREFERENCE (identifiers are also called xreference (cross-reference) identifiers or xrefs).
SECURITYDBO.SECURITY_MASTER and SECURITYDBO.XREFERENCE tables are linked with the SECURITY_ALIAS field. This is a one-to-many relationship, one record in SECURITY_MASTER can have several corresponding records in SECURITYDBO.XREFERENCE table.
Which identifiers take part in Security Resolution?
- Primary Asset Id, Primary Asset Type – Eagle identifier, which uniquely defines a security record. It is stored in SECURITYDBO.SECURITY_MASTER.PRIMARY_ASSET_ID, SECURITYDBO.SECURITY_MASTER.PRIMAR_ASSET_TYPE fields. It is always involved into security resolution regardless of config and options as the 10th xreference identifier - so it is also stored in SECURITYDBO.XREFERENCE table.
- Standard widely used identifiers – ticker, cusip, cusipPay, cusipReceive, isin, sedol, reuters, bloombergId, sicovmId, valorenId, cedel, internalId, cinsId, uniqueProductId, uniqueSwapId
- Vendor-specific identifiers – <xId>AAAA</xId><XIdType>BBBB</xIdType>
The exact identifiers to be used for Security Resolution are set in Batting Order and Asset Resolution Options of the incoming message or in the configuration file w_config_custom.inc of the environment (if you want these settings to be applied to all records of the region). If Batting Order and Asset Resolution Options are not set, default values will be used. You can read more about these settings in the pages below.