config: add multi-session example

This commit is contained in:
c9s 2022-12-19 20:03:22 +08:00
parent f38a89c0a5
commit 565193ed69
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

40
config/multi-session.yaml Normal file
View File

@ -0,0 +1,40 @@
---
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:
# BINANCE2_API_KEY=
# BINANCE2_API_SECRET=
envVarPrefix: binance2
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