> For the complete documentation index, see [llms.txt](https://docs.tokenbot.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tokenbot.com/home/api-docs/readme.md).

# Overview

Welcome to the TokenBot developer documentation. TokenBot provides programmatic access to automated crypto trading, trade synchronization (copiers), and portfolio management.

> 💡 Most users drive TokenBot through the **`tokenbot` CLI** (`npm install -g tokenbot`). These APIs are for building integrations, automation, and custom tooling on top of the platform.

## APIs

| API                                                   | Description                                                                        | Base URL               |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------- |
| [REST API](/home/api-docs/rest-api/overview.md)       | CRUD operations for exchanges, strategies, copiers, trades                         | `api.tokenbot.com/v1`  |
| [GraphQL API](/home/api-docs/graphql-api/overview.md) | Full platform access: exchanges, strategies, copiers, trades, and admin operations | `gql-api.tokenbot.com` |
| [Webhooks](/home/api-docs/webhooks/overview.md)       | Outbound, signed event notifications (46 event types)                              | N/A (push-based)       |
| [MCP Server](/home/api-docs/mcp/overview.md)          | AI/LLM tool integration via Model Context Protocol                                 | Local server (stdio)   |

## Getting Started

1. [Quickstart Guide](/home/api-docs/quickstart.md) — Make your first API call in minutes
2. [Authentication](/home/api-docs/authentication.md) — API keys, signed requests, and GraphQL auth
3. [Rate Limits](/home/api-docs/rate-limits.md) — Usage limits and best practices
4. [Error Handling](/home/api-docs/errors.md) — Standard error response format

## Key Concepts

* **Exchange Account** — A connected exchange (Binance, Bybit, etc.) with API credentials
* **Strategy** — The source account whose trades are replicated
* **Copier** — Replicates a strategy's trades onto another exchange account
* **Trade** — An individual order executed on an exchange
* **Trade Pair** — A trading pair (e.g., BTC/USDT) available on an exchange

## Token

The platform token is **TBOT**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tokenbot.com/home/api-docs/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
