2021-03-21 03:13:33 +00:00
|
|
|
---
|
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
defaultChannel: "dev-bbgo"
|
|
|
|
errorChannel: "bbgo-error"
|
|
|
|
|
2022-09-19 11:32:16 +00:00
|
|
|
switches:
|
|
|
|
trade: true
|
|
|
|
orderUpdate: false
|
|
|
|
submitOrder: false
|
2021-03-21 03:13:33 +00:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
json:
|
|
|
|
directory: var/data
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
|
2023-10-20 02:11:22 +00:00
|
|
|
logging:
|
|
|
|
trade: true
|
|
|
|
order: true
|
|
|
|
fields:
|
|
|
|
env: staging
|
|
|
|
|
2021-03-21 03:13:33 +00:00
|
|
|
sessions:
|
|
|
|
max:
|
|
|
|
exchange: max
|
|
|
|
envVarPrefix: max
|
|
|
|
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
|
|
|
envVarPrefix: binance
|
|
|
|
|
|
|
|
crossExchangeStrategies:
|
|
|
|
|
2021-03-21 04:43:41 +00:00
|
|
|
- xmaker:
|
2021-03-21 03:13:33 +00:00
|
|
|
symbol: "BTCUSDT"
|
|
|
|
sourceExchange: binance
|
|
|
|
makerExchange: max
|
|
|
|
updateInterval: 1s
|
|
|
|
|
|
|
|
# disableHedge disables the hedge orders on the source exchange
|
|
|
|
# disableHedge: true
|
|
|
|
|
|
|
|
hedgeInterval: 10s
|
2021-12-31 17:06:08 +00:00
|
|
|
notifyTrade: true
|
2021-03-21 03:13:33 +00:00
|
|
|
|
|
|
|
margin: 0.004
|
2021-12-31 17:06:08 +00:00
|
|
|
askMargin: 0.4%
|
|
|
|
bidMargin: 0.4%
|
2021-03-21 03:13:33 +00:00
|
|
|
|
|
|
|
quantity: 0.001
|
|
|
|
quantityMultiplier: 2
|
|
|
|
|
|
|
|
# numLayers means how many order we want to place on each side. 3 means we want 3 bid orders and 3 ask orders
|
|
|
|
numLayers: 1
|
|
|
|
# pips is the fraction numbers between each order. for BTC, 1 pip is 0.1,
|
|
|
|
# 0.1 pip is 0.01, here we use 10, so we will get 18000.00, 18001.00 and
|
|
|
|
# 18002.00
|
|
|
|
pips: 10
|
2024-08-24 03:58:09 +00:00
|
|
|
circuitBreaker:
|
2024-08-26 05:16:40 +00:00
|
|
|
enabled: true
|
2024-08-24 03:58:09 +00:00
|
|
|
maximumConsecutiveTotalLoss: 36.0
|
|
|
|
maximumConsecutiveLossTimes: 10
|
|
|
|
maximumLossPerRound: 15.0
|
|
|
|
maximumTotalLoss: 80.0
|
|
|
|
ignoreConsecutiveDustLoss: true
|
|
|
|
consecutiveDustLossThreshold: 0.003
|
|
|
|
haltDuration: "30m"
|
|
|
|
maximumHaltTimes: 2
|
|
|
|
maximumHaltTimesExceededPanic: true
|