mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 07:15:15 +00:00
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
---
|
|
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:
|
|
# 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
|
|
|
|
|
|
|
|
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
|
|
|