API Reference
Wallet Performance (PnL)
Wallet-level performance and PnL
Returns wallet performance (PnL) metrics.
Endpoint#
GET /wallet/performance/:wallet
Query Params (optional)#
| Param | Type | Description |
|---|---|---|
| showHistoricPnL | boolean | Include historic PnL series where available |
| holdingCheck | boolean | Extra holding verification checks |
| hideDetails | boolean | Hide per-token details (summary only) |
Request (curl)#
curl -H "x-api-key: YOUR_KEY" \
"https://us-east.dritan.dev/wallet/performance/H8sHQQyx9p9gVJqdmXciYfDSeYhN7rPsrKFcYCRmVnDC?showHistoricPnL=true"
Request (TypeScript, SDK)#
import { DritanClient } from "dritan-sdk";
const client = new DritanClient({ apiKey: "YOUR_KEY" });
const res = await client.getWalletPerformance("H8sHQQyx9p9gVJqdmXciYfDSeYhN7rPsrKFcYCRmVnDC", {
showHistoricPnL: true,
holdingCheck: false,
hideDetails: false
});
console.log(res);