2020-10-28 08:27:25 +00:00
|
|
|
---
|
|
|
|
notifications:
|
|
|
|
slack:
|
2020-10-28 09:44:37 +00:00
|
|
|
defaultChannel: "dev-bbgo"
|
|
|
|
errorChannel: "bbgo-error"
|
2020-10-28 08:27:25 +00:00
|
|
|
|
|
|
|
# if you want to route channel by symbol
|
|
|
|
symbolChannels:
|
2020-10-28 09:44:37 +00:00
|
|
|
"^BTC": "btc"
|
|
|
|
"^ETH": "eth"
|
|
|
|
"^BNB": "bnb"
|
2020-10-28 08:27:25 +00:00
|
|
|
|
|
|
|
# object routing rules
|
|
|
|
routing:
|
|
|
|
trade: "$symbol"
|
|
|
|
order: "$symbol"
|
|
|
|
submitOrder: "$session" # not supported yet
|
2020-10-28 09:44:37 +00:00
|
|
|
pnL: "bbgo-pnl"
|
2020-10-28 08:27:25 +00:00
|
|
|
|
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
|
|
|
envVarPrefix: binance
|
|
|
|
|
|
|
|
riskControls:
|
|
|
|
# This is the session-based risk controller, which let you configure different risk controller by session.
|
|
|
|
sessionBased:
|
|
|
|
# "max" is the session name that you want to configure the risk control
|
|
|
|
binance:
|
2020-11-09 06:56:54 +00:00
|
|
|
# orderExecutor is one of the risk control
|
|
|
|
orderExecutor:
|
2020-10-28 08:27:25 +00:00
|
|
|
# symbol-routed order executor
|
|
|
|
bySymbol:
|
|
|
|
BNBUSDT:
|
|
|
|
# basic risk control order executor
|
|
|
|
basic:
|
|
|
|
minQuoteBalance: 1000.0
|
|
|
|
maxBaseAssetBalance: 50.0
|
|
|
|
minBaseAssetBalance: 10.0
|
|
|
|
maxOrderAmount: 100.0
|
|
|
|
|
|
|
|
exchangeStrategies:
|
|
|
|
- on: binance
|
|
|
|
swing:
|
|
|
|
symbol: BNBUSDT
|
|
|
|
interval: 1m
|
|
|
|
minChange: 0.01
|
|
|
|
baseQuantity: 1.0
|
|
|
|
movingAverageType: EWMA
|
|
|
|
movingAverageInterval: 1m
|
|
|
|
movingAverageWindow: 99
|