API Reference
Token-Specific Wallet PnL
PnL for a given wallet and token mint
Returns token-specific performance (PnL) for a wallet.
Endpoint#
GET /wallet/performance/:wallet/:tokenMint
Request (curl)#
curl -H "x-api-key: YOUR_KEY" \
https://us-east.dritan.dev/wallet/performance/H8sH...Wallet/So11111111111111111111111111111111111111112
Request (TypeScript, SDK)#
import { DritanClient } from "dritan-sdk";
const client = new DritanClient({ apiKey: "YOUR_KEY" });
const res = await client.getWalletTokenPerformance(
"H8sHQQyx9p9gVJqdmXciYfDSeYhN7rPsrKFcYCRmVnDC",
"So11111111111111111111111111111111111111112"
);
console.log(res);