Skip to content

Class: Position

A Position describes how much of a given Product is being held and constitutes the atomic element of a Portfolio.

URI: common_domain_model:Position

 classDiagram
    class Position
    click Position href "../Position/"
      PositionBase <|-- Position
        click PositionBase href "../PositionBase/"
      
      Position : asset
        
          
    
        
        
        Position --> "0..1" Asset : asset
        click Asset href "../Asset/"
    

        
      Position : cashBalance
        
          
    
        
        
        Position --> "0..1" Money : cashBalance
        click Money href "../Money/"
    

        
      Position : priceQuantity
        
          
    
        
        
        Position --> "1..*" PriceQuantity : priceQuantity
        click PriceQuantity href "../PriceQuantity/"
    

        
      Position : product
        
          
    
        
        
        Position --> "1" Product : product
        click Product href "../Product/"
    

        
      Position : tradeReference
        
          
    
        
        
        Position --> "0..1" TradeState : tradeReference
        click TradeState href "../TradeState/"
    

        
      
Name Cardinality and Range Description Inheritance
priceQuantity 1..*
PriceQuantity
Position with many price quantities PositionBase
product 1
Product
The product underlying the position PositionBase
asset 0..1
Asset
The asset that underlies the position PositionBase
cashBalance 0..1
Money
The aggregate cost of proceeds PositionBase
tradeReference 0..1
TradeState
Reference to the Contract, in case product is contractual and the contract ha… PositionBase
Expressions & Logic

The class must satisfy all of:

  • AnonymousClassExpression({ ‘description’: (’From PositionBase. ProductOrAsset: A Position must either refer to a ’ ‘grouping by product or a grouping by asset.’), ‘exactly_one_of’: [AnonymousClassExpression({ ‘slot_conditions’: {‘product’: SlotDefinition({‘name’: ‘product’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘asset’: SlotDefinition({‘name’: ‘asset’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} })] })
used by used in type used
PortfolioState positions range Position
Mapping Type Mapped Value
self common_domain_model:Position
native common_domain_model:Position
name: Position
description: A Position describes how much of a given Product is being held and constitutes
the atomic element of a Portfolio.
from_schema: https://w3id.org/lmodel/common-domain-model
is_a: PositionBase
slot_usage:
product:
name: product
description: The product underlying the position.
range: Product
required: true
all_of:
- description: 'From PositionBase. ProductOrAsset: A Position must either refer to
a grouping by product or a grouping by asset.'
exactly_one_of:
- slot_conditions:
product:
name: product
value_presence: PRESENT
- slot_conditions:
asset:
name: asset
value_presence: PRESENT
name: Position
description: A Position describes how much of a given Product is being held and constitutes
the atomic element of a Portfolio.
from_schema: https://w3id.org/lmodel/common-domain-model
is_a: PositionBase
slot_usage:
product:
name: product
description: The product underlying the position.
range: Product
required: true
attributes:
priceQuantity:
name: priceQuantity
description: Position with many price quantities.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_position
owner: Position
domain_of:
- ExecutionInstruction
- IndexTransitionInstruction
- PositionBase
- PayoutBase
- TradeLot
range: PriceQuantity
required: true
multivalued: true
product:
name: product
description: The product underlying the position.
from_schema: https://w3id.org/lmodel/common-domain-model
owner: Position
domain_of:
- ExecutionInstruction
- TermsChangeInstruction
- AggregationParameters
- PositionBase
- ExcludedProducts
- TradableProduct
range: Product
required: true
asset:
name: asset
description: The asset that underlies the position.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_position
owner: Position
domain_of:
- TransferBase
- PositionBase
- TransferableProduct
range: Asset
cashBalance:
name: cashBalance
description: The aggregate cost of proceeds.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_position
rank: 1000
owner: Position
domain_of:
- PositionBase
range: Money
tradeReference:
name: tradeReference
annotations:
rosetta_metadata:
tag: rosetta_metadata
value: reference
description: Reference to the Contract, in case product is contractual and the
contract has been formed.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_position
owner: Position
domain_of:
- Lineage
- AggregationParameters
- CounterpartyPosition
- PositionBase
range: TradeState
all_of:
- description: 'From PositionBase. ProductOrAsset: A Position must either refer to
a grouping by product or a grouping by asset.'
exactly_one_of:
- slot_conditions:
product:
name: product
value_presence: PRESENT
- slot_conditions:
asset:
name: asset
value_presence: PRESENT