> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Legal relationship

<Badge color="gray" size="lg">[BA](../tags/ba)</Badge>
<Badge color="gray" size="lg">[SA](../tags/sa)</Badge>

Download sample file: [legal-relationship.csv](../assets/csv/legal-relationship.csv)

The file must contain pairs of all legally related entities: counterparty vs hedge reference names for BA approach and pairs of credit names in SA approach. Legal relaship is used to define correlations in BA and SA approaches.

If a pair of entities is missing, it is assumed that they are not legally related.

<table><tr><th>Field</th><th>Key</th><th>Null</th><th>FieldType</th><th>Description</th><th>Example</th></tr><tr><td>AsOfDate</td><td>Y</td><td>N</td><td>String with format ‘YYYY-MM-DD’</td><td>Risk value date</td><td>2018-09-28</td></tr><tr><td>Entity1</td><td>Y</td><td>N</td><td>String</td><td>For BA calculations: Counterparty identifier or hedge reference name identifier: For SA calculations: reference credit name identifier.</td><td>2</td></tr><tr><td>Entity2</td><td>Y</td><td>N</td><td>String</td><td>For BA calculations: Counterparty identifier or hedge reference name identifier: For SA calculations: reference credit name identifier.</td><td>3</td></tr><tr><td>LegallyRelated</td><td>N</td><td>N</td><td>String, Y or N</td><td>This field indicates whether two entities are legally related.</td><td>Y</td></tr></table>
