mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 16:21:09 +00:00
25 lines
584 B
Markdown
25 lines
584 B
Markdown
## Strategy Testing
|
|
|
|
A pre-built small backtest data db file is located at `data/bbgo_test.sql`, which contains 30days BTCUSDT kline data from binance.
|
|
|
|
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
|
|
|
|
The SQL file is added via git-lfs, so you need to install git-lfs first:
|
|
|
|
```shell
|
|
git lfs install
|
|
```
|
|
|
|
To import the database, you can do:
|
|
|
|
```shell
|
|
mysql -uroot -pYOUR_PASSWORD < data/bbgo_test.sql
|
|
```
|