add data/bbgo_test.sql to git lfs

This commit is contained in:
c9s 2022-12-04 17:48:43 +08:00
parent bec1103a64
commit e1f7d8b965
2 changed files with 20 additions and 2 deletions

View File

@ -16,8 +16,8 @@ sessions:
# example command:
# go run ./cmd/bbgo backtest --config config/grid2.yaml --base-asset-baseline
backtest:
startTime: "2022-01-01"
endTime: "2022-11-25"
startTime: "2022-06-01"
endTime: "2022-06-30"
symbols:
- BTCUSDT
sessions: [binance]

View File

@ -0,0 +1,18 @@
## Strategy Testing
A pre-built small backtest data db file is located at `data/bbgo_test.sql`.
You can use this file for environments without networking to test your strategy.
A small backtest data set is synchronized in the database:
- exchange: binance
- symbol: BTCUSDT
- startDate: 2022-06-01
- endDate: 2022-06-30
To import the database, you can do:
```shell
mysql -uroot -pYOUR_PASSWORD < data/bbgo_test.sql
```