# Component Diagram

The component diagram illustrates interactions between services and on-chain contracts:

1. **User Interaction:** Users connect wallets via Web3Modal in the dashboard.
2. **API Calls:** Frontend invokes backend REST/WebSocket endpoints for data retrieval and signal subscription.
3. **Signal Processing:** Backend forwards market data to the AI Signal Engine, which returns ranked trading signals.
4. **Trade Execution:** Upon user approval or automated rules, the backend triggers smart contract functions to execute trades on DEXs.
5. **Data Persistence:** All transactions, signals, and portfolio updates are logged in PostgreSQL and Redis cached for low-latency access.


---

# 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://vantix-ai-docs.gitbook.io/vantix-ai/architecture-and-design/component-diagram.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.
