> For the complete documentation index, see [llms.txt](https://docs.tradecraft.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradecraft.fi/integrations/integrate-tradecraft/integration.md).

# Integration

Tradecraft is a permissionless decentralized exchange, open for integration by wallets and other dApps.

We offer two integration options, with the tradeoffs shown below:

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><h3>Pool Addresses</h3></td><td>Interact using standard Daml <em>TransferOffers</em> and <em>Preapprovals</em>.</td><td><p><i class="fa-check" style="color:$warning;">:check:</i> Trade.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Deposit and withdraw liquidity.</p><p><i class="fa-x" style="color:$danger;">:x:</i> More expensive.</p><p><i class="fa-x" style="color:$danger;">:x:</i> Slower transactions.</p><p><i class="fa-x" style="color:$danger;">:x:</i> Lower TPS capacity.</p><p><i class="fa-x" style="color:$danger;">:x:</i> No flash accounting features.</p><p><i class="fa-x" style="color:$danger;">:x:</i> No built-in leg matching.</p><p><i class="fa-x" style="color:$danger;">:x:</i> No transaction failure insight.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Usable with basic transfer API access (no validator node required).</p></td><td><a href="/spaces/dF47DwfCAGYAD1QW2BrD/pages/jW5Hj6Wfe7wUYd73yrGN">Documentation</a></td></tr><tr><td><h3>Daml Package</h3></td><td>Interact using custom choices from our Tradecraft Daml package.</td><td><p><i class="fa-check" style="color:$warning;">:check:</i> Trade.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Deposit and withdraw liquidity.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Cheaper transactions.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Faster transactions.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Higher TPS capacity.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Flexible flash accounting features.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Leg matching built in.</p><p><i class="fa-check" style="color:$warning;">:check:</i> Transaction failure insight.</p><p><i class="fa-x" style="color:$danger;">:x:</i> Requires a validator node to use.</p></td><td><a href="/pages/acpJhBHDIZ7LWgwDsPv9">Documentation</a></td></tr></tbody></table>

Aside from the above documentation, other helpful documentation includes:

[Guide: Building a Trading Interface](/integrations/integrate-tradecraft/guide-building-a-trading-interface.md)

[Tradecraft API](/api/api.md)


---

# 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://docs.tradecraft.fi/integrations/integrate-tradecraft/integration.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.
