mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
re-arrange instructions
This commit is contained in:
parent
fef41910f4
commit
ae7a2e714a
45
README.md
45
README.md
|
@ -85,30 +85,26 @@ The minimal bbgo.yaml could be generated by:
|
|||
curl -o bbgo.yaml https://raw.githubusercontent.com/c9s/bbgo/main/config/minimal.yaml
|
||||
```
|
||||
|
||||
To sync your own trade data:
|
||||
|
||||
To run strategy:
|
||||
|
||||
```sh
|
||||
bbgo sync --session max
|
||||
bbgo sync --session binance
|
||||
bbgo run
|
||||
```
|
||||
|
||||
To start bbgo with the frontend dashboard:
|
||||
|
||||
```sh
|
||||
bbgo run --enable-webserver
|
||||
```
|
||||
|
||||
|
||||
If you want to switch to other dotenv file, you can add an `--dotenv` option or `--config`:
|
||||
|
||||
```sh
|
||||
bbgo sync --dotenv .env.dev --config config/grid.yaml --session binance
|
||||
```
|
||||
|
||||
To sync remote exchange klines data for backtesting:
|
||||
|
||||
```sh
|
||||
bbgo backtest --exchange binance -v --sync --sync-only --sync-from 2020-01-01
|
||||
```
|
||||
|
||||
To run backtest:
|
||||
|
||||
```sh
|
||||
bbgo backtest --exchange binance --base-asset-baseline
|
||||
```
|
||||
|
||||
To query transfer history:
|
||||
|
||||
|
@ -122,16 +118,18 @@ To calculate pnl:
|
|||
bbgo pnl --exchange binance --asset BTC --since "2019-01-01"
|
||||
```
|
||||
|
||||
To run strategy:
|
||||
## Backtesting
|
||||
|
||||
To sync remote exchange klines data for backtesting:
|
||||
|
||||
```sh
|
||||
bbgo run
|
||||
bbgo backtest --exchange binance -v --sync --sync-only --sync-from 2020-01-01
|
||||
```
|
||||
|
||||
To start bbgo with the frontend dashboard:
|
||||
To run backtest:
|
||||
|
||||
```sh
|
||||
bbgo run --enable-webserver
|
||||
bbgo backtest --exchange binance --base-asset-baseline
|
||||
```
|
||||
|
||||
Note on date formats, the following date formats are supported:
|
||||
|
@ -185,6 +183,17 @@ DB_DRIVER=sqlite3
|
|||
DB_DSN=bbgo.sqlite3
|
||||
```
|
||||
|
||||
## Synchronizing your own trading data
|
||||
|
||||
Once you have your database configured, you can sync your own trading data from the exchange.
|
||||
|
||||
To sync your own trade data:
|
||||
|
||||
```sh
|
||||
bbgo sync --session max
|
||||
bbgo sync --session binance
|
||||
```
|
||||
|
||||
## Built-in Strategies
|
||||
|
||||
Check out the strategy directory [strategy](pkg/strategy) for all built-in strategies:
|
||||
|
|
Loading…
Reference in New Issue
Block a user