Total Unrealized Token P&L

getTotalUnrealizedPnl(params: WalletBalanceQuery)

Description

This method returns the sum of the overall token balances unrealized P&L, along with the currency specified.

Parameters

NameTypeDescriptionOptional
paramsWalletBalanceQueryQuery parametersNo
interface WalletBalanceQuery {
	cost_method?: "FIFO" | "LIFO" | "WAC";
	currency?: "AVAX" | "ETH" | "MATIC" | "USD" | "XDAI";
	period?: "1YR" | "3M" | "D" | "M" | "MAX" | "W" | "YTD";
	wallet: string;
}

Response

Interface: TotalBalance

{
	currency?: string;
	value: string | null;
}