# Trading API

TheOne Trading API is designed for institutional partners, including crypto card issuers, wallets, and trading platforms, to manage the complexity of identifying optimal market prices for transactions in real-time. By bridging a partner’s existing user flow with TheOne’s infrastructure, the API provides access to one of the most efficient swap rates across both CEXs and DEXs without requiring any modifications to the front-end user experience.

### Getting Started

1. **Create an Account:** Register via [**Web app**](https://the-one.io/app#/settings) **or** [**Telegram app**](https://t.me/TheOneTGBot/app?startapp)**.**&#x20;
2. **Deposit funds:** Fund your institutional account to enable liquidity for your transactions.
3. **Connect via API:** Generate your API key in the Settings and integrate our endpoints into your existing backend.

### API Reference & Documentation

[API Client Library (GitHub)](https://github.com/the-one-io/api-client)

[REST API Documentation (Swagger)](https://github.com/the-one-io/api-client/blob/main/docs/API_DOCUMENTATION_EN.md)

[WebSocket API Documentation](https://github.com/the-one-io/api-client/blob/main/docs/WEBSOCKET_DOCUMENTATION_EN.md)

### Partnership & Support

For partnership inquiries or API setup, please [contact us](https://t.me/TheOneLiveSupportBot). <br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theonetradeai.gitbook.io/docs/resources/trading-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
