> ## 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.

# TRADE_MAPPING

The TRADE\_MAPPING store maps trades to books, desks and legal entities.

| Column Name | Type | Not Null | Cube Field | Description |
| - | - | - | - | - |
| AS\_OF\_DATE | DATE | Y | | Timestamp (at close of business) for the data. |
| TRADE\_KEY | STRING | Y | | Unique Trade (or Position) ID. |
| BOOK | STRING | Y | [Books](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/booking.md#books) | The book to map the trade to (must match the node in the Book Hierarchy). |
| LEGAL\_ENTITY | STRING | Y | [Legal Entities](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/organization.md#legal-entities) | Legal Entity to map the trade to (must match the node in the Legal Entity Hierarchy). |
| TRADE\_DATE | DATE | | [TradeDates](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/dates.md#tradedates) | The date on which the trade took place. |

## Unique Key

| Columns |
| - |
| AS\_OF\_DATE |
| TRADE\_KEY |

## Incoming Joins

| Source Table | Source Columns | Target Columns | Cube |
| - | - | - | - |
| [SASENSITIVITIES](https://docs.activeviam.com/solutions/frtb/6.0/database/sasensitivities.md) | AS\_OF\_DATE TRADE\_KEY | AS\_OF\_DATE TRADE\_KEY | StandardisedApproachCube |
| [IMATRADES](https://docs.activeviam.com/solutions/frtb/6.0/database/imatrades.md) | AS\_OF\_DATE TRADE\_KEY | AS\_OF\_DATE TRADE\_KEY | InternalModelApproachCube |

## Outgoing Joins

| Target Table | Source Columns | Target Columns |
| - | - | - |
| [BOOK\_DESCRIPTION](https://docs.activeviam.com/solutions/frtb/6.0/database/book_description.md) | AS\_OF\_DATE BOOK | AS\_OF\_DATE BOOK |
| [BOOK\_HIERARCHY](https://docs.activeviam.com/solutions/frtb/6.0/database/book_hierarchy.md) | AS\_OF\_DATE BOOK | AS\_OF\_DATE BOOK |
| [LEGAL\_ENTITY\_HIERARCHY](https://docs.activeviam.com/solutions/frtb/6.0/database/legal_entity_hierarchy.md) | AS\_OF\_DATE LEGAL\_ENTITY | AS\_OF\_DATE LEGAL\_ENTITY |
| [LEGAL\_ENTITY\_ATTRIBUTES](https://docs.activeviam.com/solutions/frtb/6.0/database/legal_entity_attributes.md) | AS\_OF\_DATE LEGAL\_ENTITY | AS\_OF\_DATE LEGAL\_ENTITY |
