Explorer

Get Portfolio Activity

Get the portfolio activity of a user.

The getPortfolioActivity function retrieves the portfolio activity for the authenticated user.

Available on

Ethereum
Ethereum
Polygon
Polygon
Avalanche
Avalanche
Arbitrum
Arbitrum
BSC
BSC
Fantom
Fantom
Linea
Linea
Metis
Metis
Optimism
Optimism
Base
Base
Base Sepolia
Base Sepolia
HyperEVM Testnet
HyperEVM Testnet
Polygon Amoy
Polygon Amoy

To enable these chains for your application, please configure them in the Okto Dashboard.

Not available on

Method Overview

MethodsDescription
async getPortfolioActivityGet the portfolio activity of a user

Get Portfolio Activity

async getPortfolioActivity(OktoClient) retrieves the user's portfolio activity history.

Parameters

ParameterTypeDescription
oktoClientOktoClientOkto client

Response

Success Response

Field NameTypeDescription
resultPromise<UserPortfolioActivity[]>Returns the portfolio activity of the user

Example

Note

In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.

On this page