# Instant Liquidity API

## What Is It

The Mystic Instant Liquidity API gathers DEX liquidity and trading firm bids to find the best possible path to give instant liquidity to any supported asset, via a transparent and competitive auction mechanism. This can be used for a) instant redemptions or b) liquidating money market defaults that fallback to non-instant redemption mechanisms.

The API is custom-built for RWAs, and assumes trading firms advance the liquidity to fill the order and receive the corresponding collateral plus a premium for doing so. They can then redeem that asset for stablecoins after waiting for the asset's corresponding redemption time. The API is modeled after the[ 0x Protocol Orderbook](https://docs.0xprotocol.org/en/latest/basics/orders.html#the-orderbook) and[ RFQ Orders](https://docs.0xprotocol.org/en/latest/basics/orders.html#rfq-orders), and adapted for RWAs. Settlement is atomic, making sure no capital is at risk and only moves when a swap is confirmed.

A couple of things to note:

* The API has a **smart routing** feature, which enables it to settle a position across multiple bids (e.g. 20% on an AMM and 80% with the best trading firm quote).
* The API also has a **fallback feature** - if the winning bid backs out, the trade will go to the second-best bid and so on.


---

# 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://docs.mysticfinance.xyz/overview/instant-liquidity-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.
