compare_swaps
Identifies optimal portfolio swaps by comparing scored tickers against current holdings, recommending swaps when a candidate's score exceeds the holding's score by a set threshold.
Instructions
Generate pairwise swap recommendations from scored tickers.
Compares each holding against each candidate. Recommends a swap when the candidate's composite score exceeds the holding's score by >= threshold.
Args: scores_json: JSON array of score dicts from score_tickers tool. holdings: Comma-separated current holding tickers. candidates: Comma-separated candidate tickers. threshold: Minimum score delta to recommend a swap (default 15).
Returns: JSON with swap recommendations and full scorecard ranking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scores_json | Yes | ||
| holdings | Yes | ||
| candidates | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |