Forkast Developer Docs
...
Account
Get Portfolio Stats
2 min
returns a userβs trading performance summary (pnl, roi, volume, trades count) you can pass an accesstoken for the authenticated user or a userid to fetch stats for a specific user import { forkastsdk, network, portfoliostats } from "@forkastgg/client"; const sdk = new forkastsdk(network testnet, "your api key"); const accountservice = sdk getaccountservice(); const stats portfoliostats = await accountservice getportfoliostats({ accesstoken "your access token", // or userid 123 }); parameters field type required description accesstoken string no token from login response userid number no specific user id to query one of the above parameter is needed