Get Swap MtM by ID
Fetches the mark-to-market value for a specific swap saved in the app.
=BlueGamma.SWAP_MTM_BY_ID(swap_id, [valuation_date])
Fetches the current mark-to-market (MTM) value for a previously saved swap.
Parameters:
swap_id: The unique identifier for the swap, which you can retrieve from the BlueGamma app.valuation_date(optional): Valuation date or datetime, interpreted as UTC. Accepts a date or datetime cell,DATE(y,m,d)+TIME(h,m,s), or an ISO string like"2026-07-17T14:30:00". Date-only values price at end of day (23:59:59 UTC). Defaults to live.
Returns: The swap MTM value as a number
Example Usage:
=BlueGamma.SWAP_MTM_BY_ID("swap_id")=BlueGamma.SWAP_MTM_BY_ID("swap_id", "2024-01-01")Notes
The MTM value represents the present value of the swap, including accrued interest
Last updated
Was this helpful?

