Skip to content

ai-orangeoracle/orangeoracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍊 OrangeOracle

Next-Gen AI-Powered Quantitative Trading Platform

  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β•β•    β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
 β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
 β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
  β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

πŸ€– AI decides Β· πŸ’» Code executes Β· πŸš€ Production-grade quantitative system

Go GoFrame Wails OpenAI License Platform

Star Fork

English (current) Β· δΈ­ζ–‡ / Doc index


⚑ 30-Second Start

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.


🧭 Navigation

✨ Features Β· πŸš€ Quick Start Β· πŸ“š Docs Β· πŸ—οΈ Architecture Β· πŸ› οΈ Stack Β· 🀝 Contributing

πŸ“‹ Overview

πŸ’‘ In one line

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.

🌟 Highlights

🎨 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

⭐ Why OrangeOracle?

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

🎯 Core strengths

πŸ€– 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

✨ Key features

🎨 Feature matrix

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                  β”‚
β”‚  πŸ€– 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β”‚
β”‚                                                                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ€– AI decision engine

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

πŸ”’ Risk control

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                         β”‚
β”‚  πŸ’° 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

πŸš€ Quick Start

See Quick Start Guide for requirements, config, and run steps.

πŸ“š Documentation

πŸ“– User docs

Doc Description Link
πŸš€ Quick Start Install, config, run View
πŸ“ˆ Trading Strategy Strategies and params View
πŸ“ Trading Variables Variables and config View

πŸ—οΈ Architecture

Doc Description Link
πŸ“ Architecture Four-layer design View

πŸ”’ Safety

Doc Description Link
⚠️ Safety Risks and disclaimer View

πŸ› οΈ Development

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.

πŸ› οΈ Tech stack

🎯 Core

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

πŸš€ Why this stack

  • ⚑ 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

🀝 Contributing

Contributions are welcome: code, docs, bug reports, or feature ideas.

πŸ“ How to contribute

  1. Fork the repo
  2. Create a branch β€” git checkout -b feature/your-feature-name
  3. Commit β€” git commit -m "Add some amazing feature"
  4. Push β€” git push origin feature/your-feature-name
  5. Open a PR on GitHub

⚠️ Notes

  • βœ… All changes require review
  • βœ… Ensure tests and docs are updated
  • βœ… Follow project rules (see .cursorrules)

🎯 Areas to contribute

  • πŸ› 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

πŸ™ Acknowledgments

This project builds on the following:

πŸ€– AI & tools

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

πŸ’° Exchanges

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

πŸ“„ License

This project is under the MIT License. See LICENSE.

MIT License β€” Use, modify, and distribute with attribution.


⚠️ Disclaimer

This project is for learning and research only and does not constitute investment advice. Trading risk is your own. See Safety Statement before use.



🌟 Support the project

⭐ If this project helps you, consider giving it a Star.

GitHub Stars GitHub Forks GitHub Issues GitHub Pull Requests


⭐ Like it? Star us

Star Fork

🍊 OrangeOracle β€” AI decides, code executes Β· Last update 2025-02

About

AI-powered quantitative trading system with multi-exchange support (OKX, Binance), desktop app (Wails), and configurable prompt strategies. Go backend, Vue/Quasar frontend.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages