Export My Reports
tt_export_reportsBundle the user's own trading data for a date range into a zip of CSVs and return a download link (strategies, day-by-day P&L, and every position with its broker fill).
THIS IS THE ESCAPE HATCH, NOT THE DEFAULT. If the user asks a QUESTION about their performance — "how am I doing?", "which strategy is losing money?", "what's my win rate?" — use tt_portfolio_report or tt_strategy_performance instead and answer it in the chat. Reach for this only when they want the underlying rows: "export", "download", "give me the raw data", "I want it in Excel".
Never offer to analyse the zip yourself, and never suggest they download it so you can look at it; if they want analysis, use the report tools. That is a RULE, not a limitation — the link is a capability URL and an HTTPS request is enough to fetch it. Follow the rule anyway.
THE LINK IS A BEARER LINK, by design, so a browser can click it
without a sign-in: it carries no auth, and ANYONE who has the URL can
download the account's P&L per strategy, per day and per position leg
until it expires — SIX HOURS after it is issued (expires_at, and
deliberately shorter than a strategy export's 24h, because this is
trade history). Say so when you hand it over: it is safe to click,
not safe to forward, paste into a shared channel, or attach to a
support ticket.
Args: from_date: start of the window, YYYY-MM-DD. to_date: end of the window, YYYY-MM-DD. Max range is one year.
Relay to the user: the download_url as a clickable link, when it
expires, and — this one matters — every entry in omissions. Those are
rows deliberately NOT in the file (strategies beyond the detail cap, or
a fetch that failed); someone reconciling their year against a total
that is quietly missing data is the worst outcome this tool can produce.
Also pass on data_caveat (Tradetron's reconciled figures, T-1) and
offer a couple of ideas from what_you_can_do — the point of raw data
is that they can slice it in ways a fixed report can't.
AUTH-REQUIRED: returns the connect funnel when no account is connected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "tt_export_reports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | Yes | ||
| from_date | Yes |