bbgo_origin/config/multi-session.yaml

51 lines
1.1 KiB
YAML
Raw Normal View History

2022-12-19 12:03:22 +00:00
---
sessions:
binance_margin_linkusdt:
exchange: binance
margin: true
isolatedMargin: true
isolatedMarginSymbol: LINKUSDT
binance_cross_margin:
exchange: binance
margin: true
#
# The following API key/secret will be used:
2022-12-19 12:08:06 +00:00
# BINANCE_CROSS_MARGIN_API_KEY=____YOUR_MARGIN_API_KEY____
# BINANCE_CROSS_MARGIN_API_SECRET=____YOUR_MARGIN_API_SECRET____
envVarPrefix: BINANCE_CROSS_MARGIN
binance:
exchange: binance
#
# The following API key/secret will be used:
# BINANCE_SPOT_API_KEY=____YOUR_SPOT_API_KEY____
# BINANCE_SPOT_API_SECRET=____YOUR_SPOT_API_SECRET____
envVarPrefix: BINANCE_SPOT
2022-12-19 12:03:22 +00:00
exchangeStrategies:
- on: binance_margin_linkusdt
support:
symbol: LINKUSDT
interval: 1m
minVolume: 2_000
marginOrderSideEffect: borrow
scaleQuantity:
byVolume:
exp:
domain: [ 1_000, 200_000 ]
range: [ 3.0, 5.0 ]
maxBaseAssetBalance: 1000.0
minQuoteAssetBalance: 2000.0
targets:
- profitPercentage: 0.02
quantityPercentage: 0.5
marginOrderSideEffect: repay