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

# Lavarage API

Use our API to effortlessly spin up your own DeFi leverage trading platform.&#x20;

**What is LavaOS?**\
LavaOS (Lavarage On-Chain Stack) is a plug-and-play solution that powers decentralized spot margin trading on DEXs, providing an integrated stack of margin liquidity, smart contracts, and risk management. Built on Lavarage’s robust infrastructure, it allows protocols and platforms to integrate margin trading without the complexity of building from scratch.

**Benefits**

* Allow your community to trade any tokens on DEXs with leverage
* Direct access to our shared margin liquidity pool
* Earn fees

**Get Started**

* API documentation: [**Here**](https://www.notion.so/INTEGRATION-2c8d4b2f0d4f80d981a8d978affbbbe3)
* Get your API key: [**Here**](https://forms.gle/seWVEmNQfNoJheRcA)
* Subscribe to LavaOS updates: <https://t.me/lavarage_dev>

**Note:** Your API key requires whitelist approval. Fill out the Google form to get started, or reach out to us at <partnership@lavarage.xyz>.

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>🚀 Rapid Integration</strong></td><td><p></p><p>Go live in days, not months. Our API adapts to you.</p></td><td></td></tr><tr><td>👥 <strong>Your Unique Brand</strong></td><td><p></p><p>Full customization. Your vision, powered by our tech.</p></td><td></td></tr><tr><td>🛡️ <strong>Robust Trading Core</strong></td><td><p></p><p>Institutional-grade infrastructure and liquidity for on-chain margin trading.</p></td><td></td></tr></tbody></table>

***

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td></td><td>Join the ranks of trading innovators. Your success starts here.</td><td></td><td><a href="/files/hvjYOJz1dRZ4xQSAKRCN">/files/hvjYOJz1dRZ4xQSAKRCN</a></td></tr><tr><td></td><td>Don't miss out on the future of crypto trading.<br>Get started today.</td><td></td><td><a href="/files/T33fCi9498TZzXhvhM5Q">/files/T33fCi9498TZzXhvhM5Q</a></td></tr></tbody></table>

***

|                       | Who Can Benefit?   |                     |
| --------------------- | ------------------ | ------------------- |
| ⚡ Trading Communities | ⚡ Trading Platform | ⚡ Trading Bots      |
| ⚡ Influencers         | ⚡ Alpha Callers    | ⚡ Memecoin Projects |

***


---

# 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 dynamically by asking a question.

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

```
GET https://lavarage.gitbook.io/lavarage/platform/lavarage-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
