Update README.md

This commit is contained in:
Yo-An Lin 2022-05-13 12:31:38 +08:00 committed by GitHub
parent 668328dd16
commit 9f1de93d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,10 @@ loss correctly.
By synchronizing trades and orders to the local database, you can earn some benefits like PnL calculations, backtesting
and asset calculation.
You can only use one database driver MySQL or SQLite to store your trading data.
**Notice**: SQLite is not fully supported, we recommend you use MySQL instead of SQLite.
#### Configure MySQL Database
To use MySQL database for data syncing, first you need to install your mysql server:
@ -233,6 +237,9 @@ To use MySQL database for data syncing, first you need to install your mysql ser
```sh
# For Ubuntu Linux
sudo apt-get install -y mysql-server
# For newer Ubuntu Linux
sudo apt install -y mysql-server
```
Or [run it in docker](https://hub.docker.com/_/mysql)
@ -252,7 +259,7 @@ DB_DSN="user:password@tcp(127.0.0.1:3306)/bbgo"
#### Configure Sqlite3 Database
Just put these environment variables in your `.env.local` file:
To use SQLite3 instead of MySQL, simply put these environment variables in your `.env.local` file:
```sh
DB_DRIVER=sqlite3
@ -272,6 +279,9 @@ To use Redis, first you need to install your Redis server:
```sh
# For Ubuntu/Debian Linux
sudo apt-get install -y redis
# For newer Ubuntu/Debian Linux
sudo apt install -y redis
```
Set the following environment variables in your `bbgo.yaml`: