-
Notifications
You must be signed in to change notification settings - Fork 0
/
bbgo.yaml
50 lines (44 loc) · 1.07 KB
/
bbgo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 建立 MAX 交易所的連線
sessions:
max:
exchange: max
envVarPrefix: max
persistence:
json:
directory: var/data
redis:
host: 127.0.0.1
port: 6379
db: 0
# 風險控管
riskControls:
# 基於連線的風險控管
sessionBased:
# 設定 MAX 交易所連線的下單風控
max:
orderExecutor:
# 依照市場不同設定不同的風控
bySymbol:
BTCUSDT:
# basic risk control order executor
basic:
# 花到剩下 100.0 USDT 就不再繼續下單
minQuoteBalance: 10.0
# 最多買到 3.0 顆 BTC 不可多買
maxBaseAssetBalance: 1.0
# 最少要保留 0.1 顆 BTC 不可多賣
minBaseAssetBalance: 0.1
# 下單金額最高不超過 1000.0 USDT
maxOrderAmount: 10.0
exchangeStrategies:
- on: max
empathy:
symbol: USDTTWD
quantity: 10.0
gridNumber: 15
profitSpread: 0.1
upperPrice: 28.0
lowerPrice: 27.0
side: buy
catchUp: true
long: true