> For the complete documentation index, see [llms.txt](https://docs.flash.trade/flash-trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts.md).

# Core concepts

The mental model behind the API — read before you build.

Four ideas explain everything else in these docs. Read them once and the endpoints stop feeling arbitrary.

| Concept                                                                                                                    | What it explains                                                       |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [The Basket model](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/basket-model.md)               | Where positions and orders live, and how you identify one              |
| [Funds lifecycle](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/funds-lifecycle.md)             | How collateral moves in and out: deposit → delegate → trade → withdraw |
| [Prices & markets](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/prices-and-markets.md)         | Where prices come from and how equity market hours work                |
| [How transactions work](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/how-transactions-work.md) | The build → sign → submit pattern, previews, and error surfaces        |

New here? Do the [Quickstart](/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/quickstart.md) first — these pages make more sense once you've seen a trade land.


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
