getTotalUnrealizedPnl(params: WalletBalanceQuery)
getTotalUnrealizedPnl(params: WalletBalanceQuery)
Description
This method returns the sum of the overall token balances unrealized P&L, along with the currency specified.
Parameters
Name | Type | Description | Optional |
---|---|---|---|
params | WalletBalanceQuery | Query parameters | No |
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;
}