P&L Drivers
tt_pnl_driversWhat drove the signed-in user's P&L TODAY (or in the latest session): every strategy ranked by its P&L for ONE session, the top gainers and losers in ₹ with their share of the move, and the instruments/legs that moved each one. Use it for "what drove my P&L", "why is my P&L down today", "which strategy made/lost money today / yesterday".
Needs NO strategy id — it reads the caller's own book, so never ask the
user for a SID for this. Live intraday when today has trades;
otherwise the latest completed session (reconciled). date
YYYY-MM-DD pins a session. It covers the book the user's SAVED
dashboard filter keeps (the phone's Today and the dashboard header) —
say which, from book.covers, and split live vs Live Offline (the
paper_pnl field) when both moved. Live, total_pnl is the dashboard
P&L card's figure on its default Expiry view (booked_pnl + open_pnl,
carried positions marked from yesterday's close); today_view_pnl is
the card's Today view. DESCRIPTIVE only — no stop/fund advice.
AUTH-REQUIRED.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tt_pnl_drivers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD to pin one session; omit for today (or the latest session with any P&L). | |
| top_n | No |