Skip to content

banbox/runbanbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunBanBot

中文

Use docker/podman to start banbot:

git clone https://github.com/banbox/runbanbot.git
cd runbanbot
docker compose up -d

Then open localhost:8000 in your browser to access it.

If your network environment cannot access the Binance API directly, you will need to set a VPN proxy. You can open the runbanbot directory and edit the .env file, then change the value of BANBOT_PROXY to your local VPN proxy, for example: http://host.docker.internal:7890.

The host.docker.internal above is the address used by a Docker container to access the host machine. You may also run ipconfig to check your LAN IP and replace it.
Note that you also need to enable “allow connections from the LAN” (or similar) in your VPN/proxy software.

You can also start the database only using Docker, without starting banbot:

docker compose up -d timescaledb

The BanDataDir and BanStratDir environment variables are already configured within the container, so you do not need to configure them again when executing commands related to the documentation.

What’s next?

Banbot: From Beginner to Advanced

  • Backtest existing strategies: Documentation
  • Add new strategies: Documentation
  • Live trading: Documentation
  • Advanced customization: If you want to perform more advanced research, such as using banbot to obtain K-lines of multiple assets during the same period and calculate their correlation, you can download the banbot source code, open it in an AI IDE, attach doc/help.md as a knowledge base, and let AI help you write the required code.

FAQ

how to upgrade banbot?

docker compose pull banbot
docker compose up -d banbot

Command 'docker' not found, but can be installed with

Docker is not installed on your machine. You may install either docker or podman:

After installing podman, you need to configure registries.conf to use Docker Hub by default; otherwise, image pulling will fail. Docker installation includes docker compose; if you use podman, you need to install docker-compose-v2 separately. You may ask AI: How to use docker compose based on podman socket?

cannot listen on the TCP port: listen tcp4 :5432: bind: address already in use

PostgreSQL is already running on your machine. You can change PG_PORT in .env to another port, such as 5433, then restart.

no matching manifest for linux/arm64/v8 in the manifest list entries

Your computer's CPU architecture is ARM. You need to modify docker-compose.yml and uncomment line 30, specifying platform: linux/amd64.

About

start banbot in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •