{"repo":"gobenpark/cerebro","free":true,"listed":false,"github":"https://github.com/gobenpark/cerebro","clone":"git clone https://github.com/gobenpark/cerebro.git","description":"Automatic Live Trading Framework","language":"Go","stars":22,"topics":["go","trading","autotrading","livetrade","golang","golang-application","trading-components","trader","strategy"],"license":"GPL-3.0","category":"trading","readme_excerpt":"Cerebro A Go live-trading framework --- Introduction This project was inspired by backtrader. backtrader is a great Python project, but it is constrained by Python's GIL. Cerebro aims to solve that with Go's concurrency model: an event-driven core where the market feed, strategies, and broker run as independent, context-aware goroutines that shut down gracefully in order. Installation Requires Go 1.26+. Quickstart The fastest way to see Cerebro run is the bundled replay market , which streams historical candles and simulates fills — no real exchange needed: That example ( examples/backtest/main.go ) wires the replay market, a small dip-buying strategy, and a risk gate through Cerebro and prints both the final state and a performance summary ( Cerebro.Performance() ). It is the place to start reading; the sections below show how to plug in a real exchange for live trading. How it works To run Cerebro you provide two things: 1. A market.Market implementation — your adapter to an exchange (Binance, Upbit, a brokerage API, …) or the bundled market/replay for backtests. It feeds candles/ticks and order/balance events into Cerebro and executes the orders the broker submits. 2. One or more strategy.Strategy implementations — your trading logic. Each strategy receives ticks and places orders through the broker.Submitter handed to it (scoped to the strategy, so its orders are attributed to it). Cerebro wires these together with an internal broker (cash/position accounting) and an even","default_branch":null,"files":null,"tree":[],"storefront":"/r/gobenpark","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gobenpark/cerebro/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}