Next-Gen AI-Powered Quantitative Trading Platform
βββββββ βββββββ ββββββ ββββ βββ βββββββ ββββββββ βββββββ βββββββ ββββββ ββββββββββ ββββββββ
ββββββββββββββββββββββββββββββ βββββββββββ ββββββββ ββββββββββββββββββββββββββββββββββββ ββββββββ
βββ βββββββββββββββββββββββββ ββββββ ββββββββββ βββ ββββββββββββββββββββββ βββ ββββββ
βββ ββββββββββββββββββββββββββββββββ βββββββββ βββ ββββββββββββββββββββββ βββ ββββββ
ββββββββββββ ββββββ ββββββ βββββββββββββββββββββββ ββββββββββββ ββββββ βββββββββββββββββββββββββββ
βββββββ βββ ββββββ ββββββ βββββ βββββββ ββββββββ βββββββ βββ ββββββ βββ βββββββββββββββββββββββ
π€ AI decides Β· π» Code executes Β· π Production-grade quantitative system
git clone https://github.com/ai-orangeoracle/orangeoracle.git && cd orangeoracle
cp config.toml.example config.toml && vim config.toml # add API keys
make dev # start desktop app (recommended)
β οΈ Read the Safety Statement before use. This project is AI-assisted and for learning and research only.
β¨ Features Β· π Quick Start Β· π Docs Β· ποΈ Architecture Β· π οΈ Stack Β· π€ Contributing
AI decides Β· Code executes β Multi-model, multi-exchange, multi-timeframe quantitative trading system with Go + Wails + Vue cross-platform desktop and a clear four-layer architecture.
OrangeOracle combines LLMs, quantitative strategy, and risk control: multi-timeframe K-lines, technical indicators, AI decisions, and unified execution across exchanges. GoFrame four-layer architecture, Wails + Vue desktop, Deepseek / Qwen / Gemini (OpenAI-compatible), OKX / Binance / Hyperliquid via a unified interface, with strategy- and language-based prompt templates and risk controls.
π¨ Visual
β‘ Performance
π Safety
π§© Modular
Wails + Vue cross-platform desktop
Go concurrency
Multi-layer risk control
Clear architecture
Real-time data visualization
API caching
Margin validation
Easy to extend
Feature
Traditional systems
OrangeOracle
AI
β Fixed strategy
β
Multi-model, score-based decisions
Exchanges
β Single exchange
β
Unified API, multi-exchange
Risk
β οΈ Basic
β
Multi-factor risk control
Prompts
β Not supported
β
File-based templates by strategy and language (resource/template/prompts)
Architecture
β οΈ Tightly coupled
β
Four-layer, maintainable
Performance
β οΈ Basic
β
API cache, concurrent processing
π€ AI
π° Exchanges
π Analysis
π Risk
Deepseek / Qwen / Gemini
OKX / Binance / Hyperliquid
MAΒ·EMAΒ·RSIΒ·MACD
MarginΒ·R:R
π§© Templates
β‘ Performance
ποΈ 4-layer
Prompts by strategy & language
π₯ Technical highlights
π§ Multi-AI decisions : Deepseek, Qwen, Gemini (OpenAI-compatible), single model per decision by performance score
π Unified exchange interface : OKX, Binance, Hyperliquid via abstraction, easy to add more
π Multi-timeframe analysis : 4H, 1H, 15m K-lines for trend and structure
π― Risk control : Margin check, risk-reward validation, position management
β‘ Performance : API caching, concurrency, rate limiting to reduce API cost
π§© Prompt templates : Loaded from resource/template/prompts by strategy and language, with trading variables
ποΈ Four-layer architecture : Core β Data β External β Business, maintainable and extensible
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β π€ AI decisions β π Market data β π° Execution β π Risk β
β ββββββββββββββββββ βββββββββββββββ β βββββββββββββ β βββββββ β
β β’ Multi-model β β’ Multi-TF β β’ Multi-exch β β’ Margin β
β β’ Score-based β β’ Indicators β β’ Order mgmt β β’ R:R β
β β’ Prompt mgmt β β’ Real-time β β’ Pos sync β β’ Positionβ
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Feature
Description
Implementation
π§ Multi-model
Deepseek, Qwen, Gemini; single model per decision by score
Performance score + single call
π OpenAI-compatible
Any OpenAI-API-compatible provider
Unified SDK
π§© Prompt templates
By strategy and language, trading variables injected
resource/template/prompts
π i18n
EN/ZH UI and logs, configurable prompt language
i18n
π Market data & indicators
Feature
Description
Scope
β° Multi-timeframe
4H, 1H, 15m K-lines
Trend and structure
π Indicators
MA, EMA, RSI, MACD, Bollinger, ATR, etc.
Dozens of indicators
β‘ Real-time
Caching and refresh strategy
Lower API usage
π° Multi-exchange execution
Feature
Description
Benefit
π Unified API
One abstraction over multiple exchanges
Easy to add exchanges
π Orders
Limit, market, stop, take-profit
Full lifecycle
π Position sync
Sync positions with exchanges
Data consistency
Supported : OKX, Binance, Hyperliquid Β· Extensible : any exchange
βββββββββββββββββββββββββββββββββββββββββββ
β β
β π° Margin check β Reduce blow-up β
β π Risk-reward β Safer trades β
β π¦ Position mgmt β Limit leverage β
β ποΈ Monitoring β Early warning β
β β
βββββββββββββββββββββββββββββββββββββββββββ
β‘ Performance & reliability
Area
How
Effect
π API cache
Contract info, funding rate, etc.
Fewer calls
β‘ Concurrency
Multiple AI calls, multi-exchange ops
Higher throughput
π Proxy
Per-model HTTP proxy
Flexible AI access
π Logging
Decisions and executions
Debug and tune
π± Cross-platform desktop
Platform
Status
Notes
π macOS
β
Native
πͺ Windows
β
Full support
π§ Linux
β
Same experience
Stack : Wails + Vue Β· Features : Monitoring, charts, trading UI
See Quick Start Guide for requirements, config, and run steps.
Doc
Description
Link
π Quick Start
Install, config, run
View
π Trading Strategy
Strategies and params
View
π Trading Variables
Variables and config
View
Doc
Description
Link
π Architecture
Four-layer design
View
Doc
Description
Link
β οΈ Safety
Risks and disclaimer
View
Doc
Description
Link
π§ AI registration
How AI services are registered
View
π° Exchange / API
Exchange and API services
See subpackages under internal/service/external
ποΈ Architecture overview
GoFrame layering and four-layer services (Command β Controller β Logic β Service). See Architecture .
Layer
Tech
Notes
Backend
Go 1.21+
Concurrency, performance
Framework
GoFrame v2
Application framework
Database
SQLite
Main store + analytics
AI
Deepseek / Qwen / Gemini
OpenAI-compatible
Exchanges
OKX / Binance / Hyperliquid
Unified interface
Cache
go-cache
In-memory
Desktop
Wails + Vue
macOS / Windows / Linux
SDKs
OpenAI SDK, go-binance/v2
Third-party clients
β‘ Performance : Go concurrency, lightweight goroutines
π Type safety : Strong typing, compile-time checks
π¦ Modular : Clear boundaries, easy to extend
π Cross-platform : Wails + Vue on macOS, Windows, Linux
Contributions are welcome: code, docs, bug reports, or feature ideas.
Fork the repo
Create a branch β git checkout -b feature/your-feature-name
Commit β git commit -m "Add some amazing feature"
Push β git push origin feature/your-feature-name
Open a PR on GitHub
β
All changes require review
β
Ensure tests and docs are updated
β
Follow project rules (see .cursorrules)
π Bugs : Fix issues
β¨ Features : New strategies, AI integrations, etc.
π Docs : Improve clarity and coverage
π¨ UI/UX : Wails + Vue improvements
π§ Performance : Optimize speed and resource use
This project builds on the following:
Service
Description
Link
Cursor AI
AI-assisted editor used for development
Cursor
DeepSeek
LLM API
DeepSeek
Qwen
Alibaba Cloud AI
Tongyi
Gemini
Google multimodal AI
Gemini
OpenAI SDK
OpenAI-compatible Go SDK
GitHub
Exchange
Description
Link
OKX
Global exchange API
OKX
Binance
go-binance/v2 SDK
Binance
Hyperliquid
Perp DEX API
Hyperliquid
π οΈ Frameworks & libs
Name
Description
Link
GoFrame
Go application framework
GoFrame
go-cache
In-memory cache
GitHub
SQLite
Embedded DB
SQLite
Wails + Vue
Desktop + UI
Wails / Vue
This project is under the MIT License . See LICENSE .
MIT License β Use, modify, and distribute with attribution.
This project is for learning and research only and does not constitute investment advice. Trading risk is your own. See Safety Statement before use.
β If this project helps you, consider giving it a Star.
π OrangeOracle β AI decides, code executes Β· Last update 2025-02