---
title: "Compare All Twins (GET /twin/compare) | Rallies API"
description: "Cross-model holdings matrix comparing your real weights against all unlocked AI Twins, with model buy/sell agreement and theses."
url: "https://rallies.ai/docs/twin/compare"
markdown_url: "https://rallies.ai/docs/twin/compare.md"
robots: "index, follow, max-image-preview:large, max-snippet:-1"
updated: "2026-12-05 00:46 UTC"
source: "Rallies (https://rallies.ai)"
mcp_server: "https://rallies.ai/mcp"
llms_txt: "https://rallies.ai/llms.txt"
llms_full_txt: "https://rallies.ai/llms-full.txt"
api_endpoint: "GET https://rallies.ai/api/v1/twin/compare"
mcp_tool: "get_twin"
---

# Compare All Twins: GET /api/v1/twin/compare

> Cross-model holdings matrix comparing your real weights against all unlocked AI Twins, with model buy/sell agreement and theses.

**Endpoint:** `GET https://rallies.ai/api/v1/twin/compare`

**MCP Tool Equivalent:** `get_twin` on `https://rallies.ai/mcp` ([MCP Setup Guide](https://rallies.ai/docs/mcp)).

Cross-model holdings matrix comparing your real weights against all unlocked AI Twins, with model buy/sell agreement and theses.

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `only_differences` | query | `boolean` | No | False | When true, return only tickers where Twins traded or diverge from your weight by at least 0.5%. |
| `include_pending` | query | `boolean` | No | True | When true (default), project pending orders into each Twin's weights. |
| `limit` | query | `integer` | No | 50 | Maximum number of results. |

## Quickstart (curl)

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://rallies.ai/api/v1/twin/compare"
```

## Quickstart (Python)

```python
import httpx

resp = httpx.get("https://rallies.ai/api/v1/twin/compare", headers={"Authorization": "Bearer YOUR_API_KEY"})
print(resp.json())
```

Authentication: pass your API key via `Authorization: Bearer rly_...`, `X-Rallies-API-Key`, or `apiKey` query parameter, or connect via OAuth 2.1 on the hosted MCP server ([/docs/mcp](https://rallies.ai/docs/mcp)). Quotas: Free 10/day (1/min), Pro $49/month or $299/year 1,000/day (10/min). Manage keys at [/docs/dashboard](https://rallies.ai/docs/dashboard).

## Related pages

- [All 30 API endpoints](https://rallies.ai/docs)
- [Hosted MCP Server](https://rallies.ai/docs/mcp)
- [Developer API Guide](https://rallies.ai/learn/rallies-developer-api-for-ai-agents)
- [Build an AI Investing Agent](https://rallies.ai/learn/how-to-build-an-ai-investing-agent-with-rallies-api)

## Agent & API access

- Any public Rallies page is available as clean Markdown by appending `.md` or passing `Accept: text/markdown`.
- Site index for LLMs: [https://rallies.ai/llms.txt](https://rallies.ai/llms.txt) | Full reference: [https://rallies.ai/llms-full.txt](https://rallies.ai/llms-full.txt)
- Hosted OAuth 2.1 MCP server (7 tools): `https://rallies.ai/mcp` (docs: [https://rallies.ai/docs/mcp](https://rallies.ai/docs/mcp))
- Developer REST API (30 endpoints): `https://rallies.ai/api/v1` (OpenAPI 3.1: [https://rallies.ai/api/v1/developer/openapi.json](https://rallies.ai/api/v1/developer/openapi.json))
