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

# Global datastore definition

This section describes stores that are common to all cubes.  This includes FX rates and trade booking.

## FX Rates

The FX rates are stored in the [FXRates](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/fxrates.md) store.

## Trade Booking

The [TradeMapping](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/trademapping.md) store maps trades to books and legal entities by **TradeId** and **AsOfDate**.

**Note:** This mapping is only used for the trade-level cubes.
In the IMA, there are some summary cubes that do not include a trade-level. For these, each fact is at the book and legal entity level.

The multi-level book organizational hierarchy is indexed by **Book** and **AsOfDate**.
It is built from the [BookParentChild](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/bookparentchild.md) store
and stored in the [BookHierarchy](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/bookhierarchy.md) store.

The multi-level legal entity organizational hierarchy is indexed by **LegalEntity** and **AsOfDate**.
It is built from the [LegalEntityParentChild](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/legalentityparentchild.md) store
and stored in the [LegalEntityHierarchy](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/legalentityhierarchy.md) store.

The [LegalEntityAttributes](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/legal-entity-attributes.md) store provides a description of the legal entities.
