2020-10-10 04:23:05 +00:00
|
|
|
---
|
2020-10-24 07:38:13 +00:00
|
|
|
imports:
|
|
|
|
- github.com/c9s/bbgo/pkg/strategy/buyandhold
|
2020-10-24 10:22:23 +00:00
|
|
|
- github.com/c9s/bbgo/pkg/strategy/xpuremaker
|
2020-10-25 10:26:10 +00:00
|
|
|
|
2020-10-22 02:54:03 +00:00
|
|
|
notifications:
|
2020-10-10 04:23:05 +00:00
|
|
|
slack:
|
2020-10-28 09:44:37 +00:00
|
|
|
defaultChannel: "dev-bbgo"
|
|
|
|
errorChannel: "bbgo-error"
|
2020-10-27 01:38:29 +00:00
|
|
|
|
|
|
|
# if you want to route channel by symbol
|
|
|
|
symbolChannels:
|
2020-10-28 09:44:37 +00:00
|
|
|
"^BTC": "btc"
|
|
|
|
"^ETH": "eth"
|
2020-10-27 01:38:29 +00:00
|
|
|
|
|
|
|
# if you want to route channel by exchange session
|
|
|
|
sessionChannels:
|
2020-10-28 09:44:37 +00:00
|
|
|
max: "bbgo-max"
|
|
|
|
binance: "bbgo-binance"
|
2020-10-27 01:38:29 +00:00
|
|
|
|
|
|
|
# routing rules
|
|
|
|
routing:
|
|
|
|
trade: "$symbol"
|
|
|
|
order: "$symbol"
|
|
|
|
submitOrder: "$session"
|
2020-10-28 09:44:37 +00:00
|
|
|
pnL: "bbgo-pnl"
|
2020-10-22 02:54:03 +00:00
|
|
|
|
2020-10-23 05:50:17 +00:00
|
|
|
reportPnL:
|
2020-10-24 07:38:13 +00:00
|
|
|
- averageCostBySymbols:
|
|
|
|
- "BTCUSDT"
|
|
|
|
- "BNBUSDT"
|
|
|
|
of: binance
|
|
|
|
when:
|
|
|
|
- "@daily"
|
|
|
|
- "@hourly"
|
2020-10-23 05:50:17 +00:00
|
|
|
|
2020-10-22 02:54:03 +00:00
|
|
|
sessions:
|
2020-10-10 04:23:05 +00:00
|
|
|
max:
|
2020-10-22 02:54:03 +00:00
|
|
|
exchange: max
|
2020-10-26 09:00:17 +00:00
|
|
|
envVarPrefix: max
|
2020-10-26 09:57:28 +00:00
|
|
|
|
2020-10-22 02:54:03 +00:00
|
|
|
binance:
|
|
|
|
exchange: binance
|
2020-10-26 09:00:17 +00:00
|
|
|
envVarPrefix: binance
|
2020-10-22 02:54:03 +00:00
|
|
|
|
2020-11-06 18:57:50 +00:00
|
|
|
backtest:
|
|
|
|
# for testing max draw down (MDD) at 03-12
|
|
|
|
# see here for more details
|
|
|
|
# https://www.investopedia.com/terms/m/maximum-drawdown-mdd.asp
|
|
|
|
startTime: "2020-01-01"
|
|
|
|
account:
|
|
|
|
makerCommission: 15
|
|
|
|
takerCommission: 15
|
|
|
|
buyerCommission: 0
|
|
|
|
sellerCommission: 0
|
|
|
|
balances:
|
|
|
|
BTC: 1.0
|
|
|
|
USDT: 5000.0
|
|
|
|
|
2020-10-22 02:54:03 +00:00
|
|
|
exchangeStrategies:
|
2020-10-24 07:38:13 +00:00
|
|
|
- on: binance
|
|
|
|
buyandhold:
|
|
|
|
symbol: "BTCUSDT"
|
|
|
|
interval: "1m"
|
|
|
|
baseQuantity: 0.01
|
|
|
|
minDropPercentage: -0.02
|
2020-10-25 10:26:10 +00:00
|
|
|
- on: max
|
|
|
|
xpuremaker:
|
|
|
|
symbol: MAXUSDT
|
|
|
|
numOrders: 2
|
|
|
|
side: both
|
|
|
|
behindVolume: 1000.0
|
|
|
|
priceTick: 0.01
|
|
|
|
baseQuantity: 100.0
|