Zoomed Image

AMSX Scripting Language - Command : checkassetvalue

Summary

Assert that the calculated value of an asset matches an expected figure

Description

Calls the financial valuation engine for the specified asset and value type, then compares the result to the expected value in argument 5. Throws an exception with a detailed message if the values do not match. Use in automated reconciliation tests.

Parameters

ParameterDescription
cmdwhich value
Argument 0AssetID
Argument 1ToDate
Argument 2BookId
Argument 3CurrencyCode
Argument 4Use asset exchange rate where available
Argument 5Value it should be

Syntax


CheckAssetValue "which value", "AssetID", "ToDate", "BookId", "CurrencyCode", "Use asset exchange rate where available", "Value it should be"

Return to the AMSX Command Reference