mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-06 20:41:14 +08:00
Gate.io Integration: - Add Gate trader with full Trader interface implementation - Add order_sync.go for background trade synchronization - Fix quantity display (convert contracts to actual tokens via quanto_multiplier) - Fix fill price return in OpenLong/OpenShort/CloseLong/CloseShort - Add Gate-specific CoinAnk K-line data source support - Add Gate to supported exchanges in frontend and backend - Add Gate/KuCoin logo SVG icons Trader Package Refactoring: - Move exchange-specific code into subdirectories (binance/, bybit/, okx/, bitget/, hyperliquid/, aster/, lighter/, gate/) - Create types/ package for shared types to avoid circular dependencies - Move TraderTestSuite to trader/testutil package to avoid import cycles - Update market.GetWithExchange to support exchange-specific data
167 lines
8.6 KiB
Markdown
167 lines
8.6 KiB
Markdown
<h1 align="center">NOFX — Open Source AI Торгова ОС</h1>
|
||
|
||
<p align="center">
|
||
<strong>Інфраструктурний рівень для AI-powered фінансової торгівлі</strong>
|
||
</p>
|
||
|
||
<p align="center">
|
||
<a href="https://github.com/NoFxAiOS/nofx/stargazers"><img src="https://img.shields.io/github/stars/NoFxAiOS/nofx?style=for-the-badge" alt="Stars"></a>
|
||
<a href="https://github.com/NoFxAiOS/nofx/releases"><img src="https://img.shields.io/github/v/release/NoFxAiOS/nofx?style=for-the-badge" alt="Release"></a>
|
||
<a href="https://github.com/NoFxAiOS/nofx/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=for-the-badge" alt="License"></a>
|
||
<a href="https://t.me/nofx_dev_community"><img src="https://img.shields.io/badge/Telegram-Community-blue?style=for-the-badge&logo=telegram" alt="Telegram"></a>
|
||
</p>
|
||
|
||
<p align="center">
|
||
<a href="https://golang.org/"><img src="https://img.shields.io/badge/Go-1.21+-00ADD8?style=flat&logo=go" alt="Go"></a>
|
||
<a href="https://reactjs.org/"><img src="https://img.shields.io/badge/React-18+-61DAFB?style=flat&logo=react" alt="React"></a>
|
||
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.0+-3178C6?style=flat&logo=typescript" alt="TypeScript"></a>
|
||
</p>
|
||
|
||
**Мови:** [English](../../../README.md) | [中文](../zh-CN/README.md) | [Українська](README.md)
|
||
|
||
---
|
||
|
||
### Основні функції
|
||
|
||
- **Мульти-AI підтримка**: Запускайте DeepSeek, Qwen, GPT, Claude, Gemini, Grok, Kimi — перемикайтеся між моделями будь-коли
|
||
- **Мульти-біржа**: Торгуйте на Binance, Bybit, OKX, Bitget, KuCoin, Gate, Hyperliquid, Aster DEX, Lighter з єдиної платформи
|
||
- **Студія стратегій**: Візуальний конструктор стратегій з джерелами монет, індикаторами та контролем ризиків
|
||
- **Режим AI-змагання**: Кілька AI трейдерів змагаються в реальному часі, відстеження ефективності пліч-о-пліч
|
||
- **Веб-конфігурація**: Без редагування JSON — налаштування всього через веб-інтерфейс
|
||
- **Панель реального часу**: Живі позиції, відстеження P/L, логи рішень AI з ланцюжком міркувань
|
||
|
||
### Офіційні посилання
|
||
|
||
- **Офіційний сайт**: [https://nofxai.com](https://nofxai.com)
|
||
- **Панель даних**: [https://nofxos.ai/dashboard](https://nofxos.ai/dashboard)
|
||
- **Документація API**: [https://nofxos.ai/api-docs](https://nofxos.ai/api-docs)
|
||
|
||
> **Попередження про ризики**: Ця система експериментальна. AI автоторгівля несе значні ризики. Наполегливо рекомендується використовувати лише для навчання/досліджень або тестування з невеликими сумами!
|
||
|
||
## Спільнота розробників
|
||
|
||
Приєднуйтесь до Telegram спільноти: **[NOFX Developer Community](https://t.me/nofx_dev_community)**
|
||
|
||
---
|
||
|
||
## Перед початком
|
||
|
||
Для використання NOFX вам знадобиться:
|
||
|
||
1. **Акаунт біржі** - Зареєструйтесь на підтримуваній біржі та створіть API ключі з правами торгівлі
|
||
2. **API ключ AI моделі** - Отримайте від будь-якого підтримуваного провайдера (рекомендується DeepSeek для економії)
|
||
|
||
---
|
||
|
||
## Підтримувані біржі
|
||
|
||
### CEX (Централізовані біржі)
|
||
|
||
| Біржа | Статус | Реєстрація (знижка) |
|
||
|----------|--------|-------------------------|
|
||
| **Binance** | ✅ Підтримується | [Реєстрація](https://www.binance.com/join?ref=NOFXENG) |
|
||
| **Bybit** | ✅ Підтримується | [Реєстрація](https://partner.bybit.com/b/83856) |
|
||
| **OKX** | ✅ Підтримується | [Реєстрація](https://www.okx.com/join/1865360) |
|
||
| **Bitget** | ✅ Підтримується | [Реєстрація](https://www.bitget.com/referral/register?from=referral&clacCode=c8a43172) |
|
||
| **KuCoin** | ✅ Підтримується | [Реєстрація](https://www.kucoin.com/r/broker/CXEV7XKK) |
|
||
| **Gate** | ✅ Підтримується | [Реєстрація](https://www.gatenode.xyz/share/VQBGUAxY) |
|
||
|
||
### Perp-DEX (Децентралізовані біржі)
|
||
|
||
| Біржа | Статус | Реєстрація (знижка) |
|
||
|----------|--------|-------------------------|
|
||
| **Hyperliquid** | ✅ Підтримується | [Реєстрація](https://app.hyperliquid.xyz/join/AITRADING) |
|
||
| **Aster DEX** | ✅ Підтримується | [Реєстрація](https://www.asterdex.com/en/referral/fdfc0e) |
|
||
| **Lighter** | ✅ Підтримується | [Реєстрація](https://app.lighter.xyz/?referral=68151432) |
|
||
|
||
---
|
||
|
||
## Підтримувані AI моделі
|
||
|
||
| AI Модель | Статус | Отримати API ключ |
|
||
|----------|--------|-------------|
|
||
| **DeepSeek** | ✅ Підтримується | [Отримати](https://platform.deepseek.com) |
|
||
| **Qwen** | ✅ Підтримується | [Отримати](https://dashscope.console.aliyun.com) |
|
||
| **OpenAI (GPT)** | ✅ Підтримується | [Отримати](https://platform.openai.com) |
|
||
| **Claude** | ✅ Підтримується | [Отримати](https://console.anthropic.com) |
|
||
| **Gemini** | ✅ Підтримується | [Отримати](https://aistudio.google.com) |
|
||
| **Grok** | ✅ Підтримується | [Отримати](https://console.x.ai) |
|
||
| **Kimi** | ✅ Підтримується | [Отримати](https://platform.moonshot.cn) |
|
||
|
||
---
|
||
|
||
## Швидкий старт
|
||
|
||
### Варіант 1: Docker розгортання (рекомендовано)
|
||
|
||
```bash
|
||
git clone https://github.com/NoFxAiOS/nofx.git
|
||
cd nofx
|
||
chmod +x ./start.sh
|
||
./start.sh start --build
|
||
```
|
||
|
||
Доступ до веб-інтерфейсу: **http://localhost:3000**
|
||
|
||
### Оновлення до останньої версії
|
||
|
||
> **💡 Оновлення виходять часто.** Запускайте цю команду щодня для отримання останніх функцій та виправлень:
|
||
|
||
```bash
|
||
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
|
||
```
|
||
|
||
Ця команда завантажує останні офіційні образи та автоматично перезапускає сервіси.
|
||
|
||
### Варіант 2: Ручна установка
|
||
|
||
```bash
|
||
# Вимоги: Go 1.21+, Node.js 18+, TA-Lib
|
||
|
||
# Встановлення TA-Lib (macOS)
|
||
brew install ta-lib
|
||
|
||
# Клонування та налаштування
|
||
git clone https://github.com/NoFxAiOS/nofx.git
|
||
cd nofx
|
||
go mod download
|
||
cd web && npm install && cd ..
|
||
|
||
# Запуск бекенду
|
||
go build -o nofx && ./nofx
|
||
|
||
# Запуск фронтенду (новий термінал)
|
||
cd web && npm run dev
|
||
```
|
||
|
||
---
|
||
|
||
## Початкове налаштування
|
||
|
||
1. **Налаштування AI моделей** — Додайте API ключі AI
|
||
2. **Налаштування бірж** — Встановіть API облікові дані бірж
|
||
3. **Створення стратегії** — Налаштуйте торгову стратегію в Студії стратегій
|
||
4. **Створення трейдера** — Об'єднайте AI модель + Біржу + Стратегію
|
||
5. **Початок торгівлі** — Запустіть налаштованих трейдерів
|
||
|
||
---
|
||
|
||
## Попередження про ризики
|
||
|
||
1. Криптовалютні ринки надзвичайно волатильні — AI рішення не гарантують прибуток
|
||
2. Торгівля ф'ючерсами використовує плече — збитки можуть перевищити депозит
|
||
3. Екстремальні ринкові умови можуть призвести до ліквідації
|
||
|
||
---
|
||
|
||
## Ліцензія
|
||
|
||
**GNU Affero General Public License v3.0 (AGPL-3.0)**
|
||
|
||
---
|
||
|
||
## Контакти
|
||
|
||
- **GitHub Issues**: [Створити Issue](https://github.com/NoFxAiOS/nofx/issues)
|
||
- **Спільнота розробників**: [Telegram група](https://t.me/nofx_dev_community)
|