> For the complete documentation index, see [llms.txt](https://docs.trybasket.live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trybasket.live/developers-and-api/investment-and-redemption-integration.md).

# Investment & redemption integration

This page explains how a wallet or aggregator can plug into Basket flows.

### Core actions

An integration can send value into the invest flow or trigger redemption for a basket token holder.

### What the integration needs

* Basket identifier
* Desired input or output asset
* Amount
* Quote details
* Slippage settings, if supported

### Product surface

The exact invest and redeem interfaces are `TBD`.

Document final contract calls or API endpoints here when released.

### Integration caution

Execution depends on live routing and liquidity.

Integrators should treat quotes as time-sensitive.

***

### Core integration stages

| Stage            | What the integrator needs to handle        |
| ---------------- | ------------------------------------------ |
| Basket selection | Resolve basket metadata and current rules  |
| Quote            | Estimate output, costs, and route quality  |
| Submit           | Forward the invest or redeem transaction   |
| Confirm          | Show final balances and transaction result |

### Integration risks

Integrations should expect quote drift, partial market movement, and changing liquidity conditions between quote and execution.

That is normal for on-chain routing systems.


---

# 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.trybasket.live/developers-and-api/investment-and-redemption-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.
