# Core Components (high-level)

### [FreqTrade](https://www.freqtrade.io/en/stable/) Trading Bot

**Technology**: Python with CCXT library integration&#x20;

**Function**: Algorithmic trading engine that executes proprietary custom strategies&#x20;

**Capabilities**:

* Real-time market data analysis
* Automated trading decision making
* Multi-asset strategy execution
* Standardized exchange communication through CCXT

***

### [GAINS](https://gains.trade/) API Adapter Service

**Technology**: Node.js TypeScript service with RESTful API&#x20;

**Function**: Bridge between Python trading bot and blockchain operations&#x20;

**Core Features**:

* CCXT-compatible API endpoints
* Command translation from Python to GAINS SDK
* Local database caching for performance
* Error handling and retry mechanisms

**Database Integration**:

* Caches blockchain data to reduce query overhead
* Stores trading history and system logs
* Optimized for high-frequency operations

***

### [GAINS](https://gains.trade/) Network Integration

**Platform**: Decentralized leveraged trading on Arbitrum blockchain&#x20;

**SDK**: TypeScript-based smart contract interaction library&#x20;

**Trading Features**:

* Up to 150x leverage on cryptocurrencies
* 1000x leverage on forex pairs
* 100x leverage on stocks
* Access to $1.5B daily trading volume

**Blockchain Benefits**:

* Immutable smart contract execution
* Non-custodial trading operations
* Transparent, verifiable transactions

***

### Asset Management Layer

**Provider**: [rethink.finance](https://www.rethink.finance/) non-custodial infrastructure&#x20;

**Security Model**:

* Users maintain full asset custody
* No private keys stored on our systems
* Automated fee handling through smart contracts
* Governance-based protocol control

***

### Infrastructure Components

**Compute**: AWS EC2 instance hosting both FreqTrade and adapter service&#x20;

**Storage**: Amazon RDS for centralized data management&#x20;

**Network**: Secure internal communication with external blockchain connectivity&#x20;

**Monitoring**: Real-time system health and performance tracking

***


---

# 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://techno-trading-ai.gitbook.io/technotrading/onchain-trade-execution/core-components-high-level.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.
