# Warp

TEOS users can look for offers and execute the trades in order to get specific amount of sparks of desired asset in exchange to specific amount of sparks of offered asset using warp search and warp execution functionality. **Warp** is a chain of supplies that is automatically defined on-the-fly based on a mathematical optimization algorithm where the supplies, available in TEOS Platform at the moment, play the role of chain links.

Warp search is referred to a process of identifying possible chains of supplies based on the following criteria:

* unique asset id of offered asset
* unique asset id of desired asset
* amount of sparks of desired asset to get OR amount of sparks of offered asset to pay - you can define **only one** of these parameters

### Warp search results

Warp search results are the identified warps which meet given search criteria.

* If the amount of sparks of offered asset to pay is set, search will result in
  * warps that allow you to get any amount of desired asset for the amount of sparks not more than *amount of sparks of offered asset to pay*
  * warps that allow you to get 1 spark of desired asset if you offered amount of sparks less than it is needed to get 1 spark of desired asset
* If the amount of sparks of desired asset to get is set, search will result in
  * warps that allow you to get the amount of sparks of desired asset not less than *amount of sparks of desired asset to get* which was set
  * warps that allow you to get maximum available amount of sparks of desired asset if you desired amount of sparks more than it is available on the market

Found warps can be different by amount of offered and desired assets and exchange rate for trading them.

TEOS user can select the warp matching his goals the most and run warp execution. Before executing the selected warp TEOS will check that user has enough amount of sparks of offered asset to pay.&#x20;


---

# 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://teos-docs.coreledger.net/resources/using-the-teos-api/concepts/warp.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.
