> For the complete documentation index, see [llms.txt](https://traderfishs-organization.gitbook.io/trader-fish/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://traderfishs-organization.gitbook.io/trader-fish/overview/real-time-trading-powered-by-a-fish-controlled-ai-system..md).

# Real-Time Trading Powered by a Fish-Controlled AI System.

<figure><img src="https://1161007904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fjqb3U2Bu7HbGZps5ldRs%2Fuploads%2F2kfZqpyubLEekmQYZNpy%2Fhd2.png?alt=media&amp;token=59321589-e8e3-41d3-b25d-24a814d27723" alt=""><figcaption></figcaption></figure>

**1. Abstract**

*Fish That Trades* introduces an unconventional method of decentralized trading by leveraging biological behavior as an input for blockchain-based financial execution. Utilizing a live fish in a physically segmented aquatic grid and computer vision algorithms, the system translates environmental interactions into real-time trades on the Solana blockchain. This paper outlines the system architecture, behavioral logic, AI methodology, and economic implications of an organic agent executing trades in a live market.

***

### **2. Introduction**

Traditional algorithmic trading bots are deterministic systems based on market indicators, technical patterns, or predictive models. In contrast, *Fish That Trades* delegates decision-making to an **organic agent** — a live fish — whose stochastic movements are interpreted via a custom computer vision pipeline. The project serves as a commentary on algorithmic randomness, decentralized automation, and meme-driven finance.

***

### **3. System Design**

#### **3.1 Aquarium Grid Structure**

* Physical dimension: Standard aquarium fitted with a 7**x4 visual grid** (28 zones)
* Each tile represents a real-time tradable asset (e.g., $SOL, $PUMP, $BTC)
* Grid calibration aligns fish position with on-chain action targets

#### **3.2 Vision System**

* **Camera Feed**: 1080p top-down camera mounted above the aquarium
* **Software Stack**: Python, OpenCV, custom detection model
* **Position Detection**: Real-time tile recognition based on bounding box overlap
* **Stay-Time Logic**: Trade initiated if fish remains in a zone > 5 **seconds**

***

### **4. AI Processing Pipeline**

#### **4.1 Preprocessing**

* Frame rate normalization and tank lighting adjustment
* Water distortion compensation algorithm

#### **4.2 Object Detection**

* YOLOv8-based model trained on fish silhouettes
* Custom tracking algorithm to ignore drift/jitter

#### **4.3 Trade Signal Generation**

* Trigger threshold: 5-second sustained presence in a single tile
* Anti-noise filter: short jumps under 1.5s disregarded
* Output: Symbol, timestamp, and trade command payload

***

### **5. Smart Contract & Trading Logic**

#### **5.1 Execution Stack**

* Blockchain: Solana
* Platform: Axiom (DEX integration)
* Wallet: Auto-authenticated with hardware-stored private key

#### **5.2 Risk Parameters**

* **Stop-Loss**: -30% from entry price
* **Take-Profit**: 2x multiplier
* **Moonbag Logic**: On profit-taking, 90% is sold, 10% retained per asset

#### **5.3 Error Handling**

* Rate limit protection
* Fail-safe if fish crosses multiple tiles rapidly (no trade executed)

***

### **6. Trade Lifecycle Example**

```
csharp
CopyEdit
[INFO] 14:06:11 - Fish in tile_22 for 2.0s
[INFO] 14:06:12 - Fish in tile_22 for 3.0s - SIGNAL TRIGGERED
[TRADE] 14:06:12 - Initiating buy: $PUMP with 0.1 SOL
[TRADE] 14:06:13 - Execution confirmed. TX: XPUMP_0832192
[TRADE] 14:06:13 - SL/TP configured

```

***

### **7. System Components**

| Component       | Description                                                |
| --------------- | ---------------------------------------------------------- |
| Aquarium Grid   | Visual 7x4 overlay, coin-assigned                          |
| Fish            | Biological agent introducing randomness & natural movement |
| Camera          | Captures real-time behavior                                |
| Computer Vision | Interprets movement, generates trade triggers              |
| Solana Wallet   | Executes trades with built-in security                     |
| Axiom API       | Facilitates trade execution and logging                    |

***

### **8. Scientific Implications & Philosophical Perspective**

*Fish That Trades* poses fundamental questions about agency, randomness, and human intervention in decentralized systems. The system mimics **non-deterministic intelligence** while exposing the fragility and absurdity of automated financial decision-making. It offers a meta-commentary on predictive systems by replacing technical models with an unpredictable organic input.

***

### **9. Roadmap**

| Milestone            | Status     |
| -------------------- | ---------- |
| Vision tracking v1   | ✅ Complete |
| Trade logic pipeline | ✅ Live     |
| Whitepaper release   | 🔄 Today   |
| Livestream setup     | 🔜 Coming  |
| DAO voting for coins | 🧪 In R\&D |
| $FTT token           | 👀 Soon    |

***

### **10. References**

* Solana Developer Documentation
* Axiom Trade API Docs
* OpenCV GitHub Repository
* YOLOv8 Paper
* Prior Art: Tardigrade Trading (2021), Monkey NFT Picker (2022)

***

### **11. Contact & Community**

* Twitter: <https://x.com/fishthattrades>\
  \
  LIVE: TBA
