nTokens

Get nToken Address

nTokenAddress = notional.nTokenAddress(currencyId)

Get nToken Total Supply

nTokenSupply = notional.nTokenTotalSupply(nTokenAddress)

Get nToken PV

nTokenPV = notional.nTokenPresentValueUnderlyingDenominated(currencyId)

Get the underlying value of one nToken

nTokenValue = nTokenPV / nTokenSupply

Get nToken Portfolio

An nToken portfolio can hold multiple positions (Prime Cash, fCash, Liquitity tokens):
nTokenPrimeCashBalance = notional.getNTokenAccount(nTokenAddress)["cashBalance"]
nTokenFCashPortfolio = notional.getNTokenPortfolio(nTokenAddress)["netfCashAssets"]
nToken3MFCashMaturity = notional.getNTokenPortfolio(nTokenAddress)["netfCashAssets"][0][1]
nToken3MFCashBalance = notional.getNTokenPortfolio(nTokenAddress)["netfCashAssets"][0][3]
nTokenLiquidityTokenPortfolio = notional.getNTokenPortfolio(nTokenAddress)["liquidityTokens"]
nToken3MLiquidityTokenMaturity = notional.getNTokenPortfolio(nTokenAddress)["liquidityTokens"][0][1]
nToken3MLiquidityTokenBalance = notional.getNTokenPortfolio(nTokenAddress)["liquidityTokens"][0][3]

nToken Annual Incentive Rate

The nToken annual incentive rate defines the number of NOTE tokens that are given as incentives annually to nToken holders:
incentiveAnnualRate = notional.getNTokenAccount(nTokenAddress)["incentiveAnnualEmissionRate"]