Context Data Specification 1.2
Introduction
To interoperate, apps need to exchange commonly recognized context structures that can indicate topic with any number of identifiers or mappings to different systems.
Exchanging context is the most basic entry point to desktop interoperability. The barriers to adoption for this interaction must be kept as low as possible.
There are two main use cases for exchanging context data:
-
Transmitting reference data between applications. The source application will send as many known identifiers as possible, and the target application will try to match the entity based on the identifiers. It may then choose to map to its own internal domain representation for rendering purposes.
An example of this is sending an instrument or contact, when only an ISIN or email is required to reference the same data in another application.
-
Transferring information between applications. The source application may have data required to compose a workflow with another application, e.g. a list of contacts that have been selected, or a complex object representing an RFQ request.
In many such cases there isn't any sensible reference identifiers that can be shared, it is instead the data itself being transferred.
Assumptions
- Context data objects are identified and routed according to their type, which is unique.
- Any names, identifiers or extra properties are optional.
- More complex objects can be composed from simpler objects by defining a new type, e.g a position from an instrument and a holding amount.
- If multiple pieces of data need to be sent, an embedded array can be used, identified as a collection type, e.g. "contactList" or "portfolio". This allows for additional metadata and data relationships to be expressed.
- There needs to be a way to reference or look up the structure of well-known context types, e.g. from a directory.
Other Standards
FDC3 recognizes that there are other object definitions for providing context between applications. Most, if not all of these definitions though are platform-specific. FDC3, as a rule, sets out to be platform-agnostic and focused on creating bridges between the various walled gardens on the financial desktop.
The Context Interface
interface Context {
type: string;
name?: string;
id?: {
[x:string]: string;
},
[x: string]: any;
}
Namespacing
All well-known types at FDC3 level should be prefixed with fdc3
. For private type definitions, or type definitions issued by other organisations, different namespaces can be used, e.g. blackrock.fund
, etc.
Versioning
The specification recognises that evolving context data definitions over time, and helping applications to deal with changes to types, are very important.
It may be as simple as adding an optional $version
property to types, but it could also be a set of guidelines for adding new properties, without removing or changing existing ones. For example, web technologies like REST or GraphQL do not take a particular opinion about versioning.
Identifiers
Where an identifier is the name of an existing standard, external to FDC3, it is represented in all caps. For example: FIGI, PERMID, CUSIP, ISO-2. When an identifier is a more general concept, it is represented in all lower case. For example: ticker, name, geocode, email.
All standard identifier names are reserved names. Applications may use their own identifiers ad hoc. For example:
"id": {
"CUSIP":"037833100",
"foo":"bar"
}
The identifier "foo" is proprietary, an application that can use it is free to do so. However, since multiple applications may want to use the "foo" name and may use it to mean different things, there is a need for applications to ensure that their identifiers use naming conventions that will avoid collision. The recommended approach here is to prefix the identifier name with a namespace. For example:
"id": {
"CUSIP":"037833100",
"com.company.foo": "000C7F-E"
}
Standard Context Types
The following are standard FDC3 context types. Note: The specification for these types are shared with the FINOS Financial Objects definitions, JSON schemas are hosted with FDC3.
- fdc3.contact
- A person contact that can be engaged with through email, calling, messaging, CMS, etc.
- Financial Objects Specification
- schema
- fd3.contactList
- A collection of contacts.
- Financial Objects Specification
- schema
- fdc3.country
- A standard country entity.
- Financial Objects Specification
- schema
- fdc3.instrument
- A financial instrument from any asset class.
- Financial Objects Specification
- schema
- fdc3.instrumentList
- A collection of instruments.
- Financial Objects Specification
- schema
- fdd3.organization
- A standard organization entity.
- Financial Objects Specification
- schema
- fdc3.portfolio
- A collection of positions.
- Financial Objects Specification
- schema
- fdc3.position
Note: The below examples show how the base context data interface can be used to define specific context data objects. It is not the purpose of the specification at this stage to define standard representations for objects. It establishes the framework in which such definitions could be created.
Examples
Contact
{
"type": "fdc3.contact",
"name": "John Smith",
"id":{
"email": "john.smith@company.com",
}
}
ContactList
{
"type": "fdc3.contactList",
"name": "client list",
"contacts":[
{
"type":"fdc3.contact",
"name":"joe",
"id":{
"email": "joe@company1.com",
}
},
{
"type":"fdc3.contact",
"name":"jane",
"id":{
"email": "jane@company2.com",
}
}
]
}
Country
{
"type":"fdc3.country",
"name":"the USA",
"id":{
"ISOALPHA2":"US",
"ISOALPHA3":"USA"
}
}
Instrument
{
"type" : "fdc3.instrument",
"name" : "Apple",
"id" :
{
"ticker" : "aapl",
"ISIN" : "US0378331005",
"CUSIP" : "037833100",
"FIGI" : "BBG000B9XRY4",
}
}
InstrumentList
{
"type" : "fdc3.instrumentList",
"name" : "my portfolio",
"instruments" : [
{
"type" : "fdc3.instrument",
"name" : "Apple",
"id": {
"ticker" : "aapl"
}
},
{
"type" : "fdc3.instrument",
"name" : "International Business Machines",
"id": {
"ticker" : "ibm"
}
}
]
}
Organization
{
"type": "fdc3.organization",
"name": "IBM",
"id": {
"PERMID" : "4295904307",
"LEI" : "VGRQXHF3J8VDLUA7XE92"
}
}
Portfolio
{
"type":"fdc3.portfolio"
"name":"my portfolio",
"positions":[
{
"type": "fdc3.position",
"instrument": {
"type" : "fdc3.instrument",
"name" : "Apple",
"id" :
{
"ISIN" : "US0378331005"
}
},
"holding": 500
},
{
"type": "fdc3.position",
"instrument": {
"type" : "fdc3.instrument",
"name" : "IBM",
"id" :
{
"ISIN" : "US4592001014"
}
},
"holding": 1000
}
]
}
Position
{
"type": "fdc3.position",
"instrument": {
"type" : "fdc3.instrument",
"name" : "Apple",
"id" :
{
"ISIN" : "US0378331005"
}
},
"holding": 500
}