MCPcopy Index your code
hub / github.com/banbox/banbot

github.com/banbox/banbot @v0.3.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.8 ↗ · + Follow
2,509 symbols 8,809 edges 243 files 567 documented · 23%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

image

Supported Exchanges

banbot support exchanges powered by banexg:

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

Download the banbot.md file, then attach this file to any AI conversation to tell it the strategy you want to test.

中文版 banbot.md

Or immediately test your idea using the Banbot Workflow.

Document

Please go to BanBot Website for documents.

Contributing

Follow the How to Contribute. Please do get hesitate to get touch via the Discord Chat to discuss development, new features, and the future 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.

Extension points exported contracts — how you extend this code

ModelConfigProvider (Interface)
ModelConfigProvider provides access to model configuration by name. [1 implementers]
llm/manager.go
OrderManagerInterface (Interface)
OrderManagerInterface 订单管理接口,避免循环依赖 [1 implementers]
rpc/telegram.go
FilterFactory (FuncType)
FilterFactory is a function that creates a new filter instance
goods/types.go
Datafeed (Interface)
(no doc) [2 implementers]
web/ui/src/lib/kline/types.ts
IOrderMgrLive (Interface)
(no doc) [1 implementers]
biz/odmgr.go
IBanConn (Interface)
(no doc) [1 implementers]
utils/banio.go
IHistFeeder (Interface)
(no doc) [1 implementers]
data/feeder.go
IWebHook (Interface)
(no doc) [1 implementers]
rpc/webhook.go

Core symbols most depended-on inside this repo

Error
called by 645
web/base/api_com.go
Lock
called by 259
orm/ormo/order.go
Close
called by 199
utils/banio.go
NewDbErr
called by 100
orm/base.go
Key
called by 92
orm/ormo/order.go
String
called by 89
data/ws_loader.go
GetLangMsg
called by 86
config/biz.go
UTCStamp
called by 84
btime/main.go

Shape

Function 1,210
Method 887
Struct 316
Interface 65
Class 12
FuncType 11
TypeAlias 8

Languages

Go94%
TypeScript6%
Python1%

Modules by API surface

utils/banio.go76 symbols
orm/kdata.pb.go70 symbols
orm/ormo/order.go66 symbols
biz/odmgr_live.go65 symbols
orm/srange_logic_test.go64 symbols
config/biz.go60 symbols
web/dev/api_dev.go58 symbols
data/feeder.go58 symbols
rpc/telegram.go55 symbols
opt/reports.go54 symbols
biz/wallet.go49 symbols
orm/kline.go45 symbols

Datastores touched

qdbDatabase · 1 repos
dbnameDatabase · 1 repos

For agents

$ claude mcp add banbot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact