Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize a context type representing a Valuation #652

Closed
Tracked by #643 ...
kriswest opened this issue Mar 31, 2022 · 1 comment · Fixed by #709 or #724
Closed
Tracked by #643 ...

Standardize a context type representing a Valuation #652

kriswest opened this issue Mar 31, 2022 · 1 comment · Fixed by #709 or #724
Labels
Context Data & Intents Contexts & Intents Discussion Group context-data FDC3 Context Data Working Group enhancement New feature or request
Milestone

Comments

@kriswest
Copy link
Contributor

Enhancement Request

Create a context type representing the price and value of a holding.

Use Case:

A Valuation may be used as a key component of a Trade or Position context, perhaps also an Order. Although it may be used rarely as a standalone context (although use-cases may exist), it is a multi-field type that is likely to be needed in the definition of multiple other types, yielding an advantage to standardizing it.

Contexts

Valuation

Represents the value of a holding in a specified currency.

Details
Property Type Required Example Value
type string Yes 'fdc3.valuation'
value number Yes '500.0'
price number No '5.0'
CURRENCY_ISOCODE * string Yes 'USD'

* CURRENCY_ISOCODE should conform to 3 character alphabetic codes standardized as part of ISO 4217.

Example
const valuation = {
    type: 'fdc3.valuation',
    value: 500.0,
    price: 5.0,
    CURRENCY_ISOCODE: 'USD'
}

Additional Information

An issue has also been raised to standardize recommended formats for 'primitive' fields, which might include ISO currency codes:

If that issue is NOT accepted the CURRENCY_ISOCODE field should be replaced with a currency field that makes use of the Currency context type prosed in issue:

@robmoffat
Copy link
Member

robmoffat commented May 12, 2022

I think this is already covered by FpML: https://www.fpml.org/spec/fpml-5-2-4-tr-1/html/confirmation/schemaDocumentation/schemas/fpml-valuation-5-2_xsd/complexTypes/AssetValuation.html

I think we should use existing specifications where they are available and well-defined, as we have done with currency, time, country code etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Context Data & Intents Contexts & Intents Discussion Group context-data FDC3 Context Data Working Group enhancement New feature or request
Projects
None yet
2 participants