mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
add schedule config for ethusdt and btcusdt
This commit is contained in:
parent
4e75557c0f
commit
885d6c1a9d
30
config/schedule-btcusdt.yaml
Normal file
30
config/schedule-btcusdt.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
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:
|
||||
BTCUSDT:
|
||||
# basic risk control order executor
|
||||
basic:
|
||||
minQuoteBalance: 1000.0
|
||||
maxBaseAssetBalance: 500.0
|
||||
minBaseAssetBalance: 300.0
|
||||
maxOrderAmount: 1000.0
|
||||
|
||||
exchangeStrategies:
|
||||
|
||||
- on: max
|
||||
schedule:
|
||||
interval: 1h
|
||||
symbol: BTCUSDT
|
||||
side: buy
|
||||
quantity: 0.001
|
||||
belowMovingAverage:
|
||||
type: EWMA
|
||||
interval: 1h
|
||||
window: 99
|
30
config/schedule-ethusdt.yaml
Normal file
30
config/schedule-ethusdt.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
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:
|
||||
ETHUSDT:
|
||||
# basic risk control order executor
|
||||
basic:
|
||||
minQuoteBalance: 1000.0
|
||||
maxBaseAssetBalance: 500.0
|
||||
minBaseAssetBalance: 300.0
|
||||
maxOrderAmount: 1000.0
|
||||
|
||||
exchangeStrategies:
|
||||
|
||||
- on: max
|
||||
schedule:
|
||||
interval: 1h
|
||||
symbol: ETHUSDT
|
||||
side: buy
|
||||
quantity: 0.01
|
||||
belowMovingAverage:
|
||||
type: EWMA
|
||||
interval: 1h
|
||||
window: 99
|
Loading…
Reference in New Issue
Block a user