Explorer

Get Portfolio Activity

Learn how to retrieve a user's portfolio activity using the Okto SDK.

The getPortfolioActivity function retrieves the user's recent portfolio activity and transactions.

Method Overview

MethodDescription
async getPortfolioActivityGet user's portfolio activity

Get Portfolio Activity

async getPortfolioActivity(oktoClient: OktoClient) retrieves the user's recent portfolio activity.

Parameters

ParameterTypeDescription
oktoClientOktoClientInstance of OktoClient obtained from useOkto hook

Response

Success Response

Field NameTypeDescription
activityPromise<ActivityData[]>Array of portfolio activities

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