Investment Studio > Expressions > Functions > Lookup > PORTFOLIO_CURRENCY

string portfolio_currency(integer portfolio_index)

Returns the currency code for the currency used to express the value of the portfolio identified by portfolio_index.

Portfolio indices are references to entries in Investment Studio's internal table of loaded portfolios. The table is automatically created and maintained behind the scene, and may be rearranged at any time. Portfolio indices should therefore never be specified using constants, but rather obtained through the interface methods provided by the object hosting the expression. See e.g. the discussion of lookup cells in Grid objects.

See also asset_currency, currency_convert, portfolio_converted_currency_part, portfolio_currency_part.