2021-05-02 16:06:24 +00:00
|
|
|
---
|
|
|
|
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
|
|
|
|
max:
|
|
|
|
# orderExecutor is one of the risk control
|
|
|
|
orderExecutor:
|
|
|
|
# symbol-routed order executor
|
|
|
|
bySymbol:
|
2021-05-02 16:07:46 +00:00
|
|
|
USDTTWD:
|
2021-05-02 16:06:24 +00:00
|
|
|
# basic risk control order executor
|
|
|
|
basic:
|
|
|
|
minQuoteBalance: 100.0
|
2021-05-02 16:07:46 +00:00
|
|
|
maxBaseAssetBalance: 30_000.0
|
2021-05-02 16:06:24 +00:00
|
|
|
minBaseAssetBalance: 0.0
|
2021-05-02 16:07:46 +00:00
|
|
|
maxOrderAmount: 1_000.0
|
2021-05-02 16:06:24 +00:00
|
|
|
|
|
|
|
exchangeStrategies:
|
|
|
|
|
|
|
|
- on: max
|
|
|
|
schedule:
|
|
|
|
interval: 1m
|
|
|
|
symbol: USDTTWD
|
|
|
|
side: buy
|
|
|
|
quantity: 10
|
|
|
|
|
|
|
|
aboveMovingAverage:
|
|
|
|
type: EWMA
|
|
|
|
interval: 1h
|
|
|
|
window: 99
|
|
|
|
side: sell
|
|
|
|
|
|
|
|
belowMovingAverage:
|
|
|
|
type: EWMA
|
|
|
|
interval: 1h
|
|
|
|
window: 99
|
|
|
|
side: buy
|
|
|
|
|