mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
ci: add backtest sync test to ci flow
This commit is contained in:
parent
728190a78f
commit
62de3a43ed
7
.github/workflows/go.yml
vendored
7
.github/workflows/go.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -68,3 +67,9 @@ jobs:
|
||||||
|
|
||||||
- name: TestDnum
|
- name: TestDnum
|
||||||
run: go test -tags dnum -v ./pkg/...
|
run: go test -tags dnum -v ./pkg/...
|
||||||
|
|
||||||
|
- name: Create dotenv file
|
||||||
|
run: |
|
||||||
|
echo "DB_DRIVER=mysql" >> .env.local
|
||||||
|
echo "DB_DSN=root:root@/bbgo" >> .env.local
|
||||||
|
|
||||||
|
|
23
config/backtest.yaml
Normal file
23
config/backtest.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
backtest:
|
||||||
|
startTime: "2022-01-01"
|
||||||
|
endTime: "2022-01-02"
|
||||||
|
symbols:
|
||||||
|
- BTCUSDT
|
||||||
|
sessions:
|
||||||
|
- binance
|
||||||
|
- ftx
|
||||||
|
- max
|
||||||
|
- kucoin
|
||||||
|
- okex
|
||||||
|
|
||||||
|
exchangeStrategies:
|
||||||
|
- on: binance
|
||||||
|
grid:
|
||||||
|
symbol: BTCUSDT
|
||||||
|
quantity: 0.001
|
||||||
|
gridNumber: 100
|
||||||
|
profitSpread: 1000.0 # The profit price spread that you want to add to your sell order when your buy order is executed
|
||||||
|
upperPrice: 40_000.0
|
||||||
|
lowerPrice: 20_000.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user