> For the complete documentation index, see [llms.txt](https://docs.symm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.symm.io/exchange-builder-documentation/frontend-builder-technical-guidance.md).

# Frontend Builder Technical Guidance

Learn how to build a trading bot using SYMMIO

## Frontend Builder Technical Guidance

### Building with the Symmio architecture

Symmio is built on a modular architecture: the Diamond Standard for upgradeable contracts, the AccountLayer for account management, and a set of specialized facets that handle trading. This section is the guide to those core components, whether you're building a frontend or a utility on top of the protocol.

{% hint style="info" %}
To build a trading bot with Symmio, see [Building a Trading Bot](/trader-documentation/building-a-trading-bot.md).
{% endhint %}

#### Overview

These pages explain how the Symmio ecosystem is structured and how the pieces fit together: modularity, upgradeability, and separation of concerns, and how those choices keep trading secure and efficient. What's covered:

* **Diamond explainer:** the Diamond Standard (EIP-2535) at the core of Symmio, including facets, selectors, and storage management.
* **Account creation and funding:** creating a sub-account, then depositing and allocating collateral for trading.
* **Sending and closing quotes:** opening a trade by sending a quote, and the standard close flow, including the states involved and the roles of PartyA and PartyB.
* **Instant trading:** the instant-open and instant-close variants for immediate execution, and the trade-offs against the standard flow.

Each page includes function signatures, example usage, and event descriptions.


---

# 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.symm.io/exchange-builder-documentation/frontend-builder-technical-guidance.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.
