Skip to content
المشاريع

حول

روبوت تداول عالي الأداء وسهل الاستخدام، يدعم رموزًا واستراتيجيات وفترات وحسابات متعددة، ويعتمد على الأحداث

الأعمال والمالية

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • web ui: write strategy, backtest, and deploy without IDE.
  • high-performance: backtest for 1 year klines in seconds.
  • easy-to-use: write once, support both backtesting and real trading.
  • flexible: free combination of symbols, strategies and time frames.

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

banbot

banbot is a high-performance, easy-to-use, multi-symbol, multi-strategy, multi-period, multi-account event-driven trading robot.

AGPLv3 licensed Discord chat Ask DeepWiki zread

Main Features

  • web ui: write strategy, backtest, and deploy without IDE.
  • high-performance: backtest for 1 year klines in seconds.
  • easy-to-use: write once, support both backtesting and real trading.
  • flexible: free combination of symbols, strategies and time frames.
  • event-driven: no lookahead, more freedom to implement your trade ideas.
  • scalable: trade multiple exchange accounts simultaneously.
  • hyper opt: support bayes/tpe/random/cmaes/ipop-cmaes/bipop-cmaes
  • time-series strategies: per-symbol Go callbacks over main/auxiliary timeframes, see Custom strategy.
  • factor / cross-sectional engine: multi-factor ranking, portfolios and research, see Multi-factor strategies.
  • statistical arbitrage and carry: pairs/spread strategies, including same-exchange spot-perpetual carry, see Statistical arbitrage.
  • arbitrary time-series data: K-line extension columns and third-party series; built-in sources include funding_rate, open_interest and mark/index/premium klines, see Custom data.
  • order types: limit/stop entries, exchange-side stop-loss and take-profit, trailing stop, see Custom strategy.

image

Supported Exchanges

banbot supports exchanges powered by banexg. The markets below are what the adapters provide for market data and backtesting; default live execution (shared Hub, prod/dry_run) currently accepts linear perpetual accounts only, see the Shared accounts and Hub guide.

logo id name ver websocket
binance binance spot/usd-m/coin-m * Y
okx okx spot/usd-m/coin-m * Y
bybit bybit spot/usd-m/coin-m * Y

Quick start

go runbanbot to get started with Docker in minutes!

Work with AI

Attach the knowledge base that matches your strategy engine (Chinese / English) to any AI conversation to tell it the strategy you want to test:

Engine 中文 English
Time series kb_ts_cn.md kb_ts_en.md
Cross-sectional factor kb_factor_cn.md kb_factor_en.md
Statistical arbitrage kb_statarb_cn.md kb_statarb_en.md

They are also embedded in the Go package github.com/banbox/banbot/kb and can be loaded from code:

// lang: "cn" | "en"; names: "ts" | "factor" | "statarb" (at least one, joined by kb.Separator)
text, err := kb.GetKB("en", "ts", "factor")

More docs: doc/README.md.

Or immediately test your idea using the Banbot Workflow.

Document

Please go to BanBot Website for documents.

Contributing

Follow How to Contribute. Get in touch via Discord to discuss development, new features, and the roadmap. Unless you explicitly state otherwise, any contributions intentionally submitted for inclusion in a banbot workspace you create shall be licensed under AGPLv3, without any additional terms or conditions.

Donate

If banbot made your life easier and you want to help us improve it further, or if you want to speed up development of new features, please support us with a tip. We appreciate all contributions!

METHOD ADDRESS
BTC bc1qah04suzc2amupds7uqgpukellktscuuyurgflt
ETH 0xedBF0e5ABD81e5F01c088f6B6991a623dB14D43b

LICENSE

This project is dual-licensed under GNU AGPLv3 License and a commercial license. For free use and modifications of the code, you can use the AGPLv3 license. If you require commercial license with different terms, please contact me.

Strategy engines

Choose run_policy.engine: time_series (default) for per-symbol callbacks or factor for native multi-factor/cross-sectional rounds. Root banbot backtest / banbot trade run either or both from one YAML configuration. Mixed replay uses execution.mode: events and explicit account budgets. Factor research uses root research, version archives use data archive, and standalone expressions use root validate / explain --spec. See the English guide, 中文指南, API.

Factor live needs application-registered verified transport, instrument/revision/funding evidence and startup reconciliation. Missing capabilities fail explicitly; SDK support alone does not prove real factor venue readiness. Paper/dry-run is separate historical simulation.

Configuration retains v0.5 root keys without requiring a version marker, and ordinary loading leaves YAML unchanged. Explicit run_policy[].engine enables new engine options; factor fields belong directly to each policy and account execution overrides to root accounts.<name>. See the compatibility comparison and configuration guide.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…