mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Update README.md
This commit is contained in:
parent
668328dd16
commit
9f1de93d48
12
README.md
12
README.md
|
@ -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`:
|
||||
|
|
Loading…
Reference in New Issue
Block a user