2022-01-13 11:35:05 +00:00
|
|
|
---
|
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
defaultChannel: "dev-bbgo"
|
|
|
|
errorChannel: "bbgo-error"
|
|
|
|
|
2022-09-19 11:32:16 +00:00
|
|
|
switches:
|
|
|
|
trade: true
|
|
|
|
orderUpdate: true
|
|
|
|
submitOrder: true
|
2022-01-13 11:35:05 +00:00
|
|
|
|
2023-03-23 09:36:30 +00:00
|
|
|
persistence:
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 1
|
|
|
|
|
2022-01-13 11:35:05 +00:00
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
2023-03-23 04:58:10 +00:00
|
|
|
envVarPrefix: BINANCE
|
|
|
|
|
|
|
|
binance_futures:
|
|
|
|
exchange: binance
|
|
|
|
envVarPrefix: BINANCE
|
2022-01-13 11:35:05 +00:00
|
|
|
futures: true
|
|
|
|
|
2023-03-23 04:58:10 +00:00
|
|
|
crossExchangeStrategies:
|
|
|
|
|
|
|
|
- xfunding:
|
|
|
|
spotSession: binance
|
|
|
|
futuresSession: binance_futures
|
2023-03-25 18:07:54 +00:00
|
|
|
|
|
|
|
## symbol is the symbol name of the spot market and the futures market
|
|
|
|
## todo: provide option to separate the futures market symbol
|
2022-01-13 11:35:05 +00:00
|
|
|
symbol: ETHUSDT
|
2023-03-25 18:07:54 +00:00
|
|
|
|
|
|
|
## interval is the interval for checking futures premium and the funding rate
|
|
|
|
interval: 1m
|
|
|
|
|
|
|
|
## leverage is the leverage of the reverse futures position size.
|
|
|
|
## for example, you can buy 1 BTC and short 3 BTC in the futures account with 3x leverage.
|
2023-03-23 04:58:10 +00:00
|
|
|
leverage: 1.0
|
2023-03-25 18:07:54 +00:00
|
|
|
|
|
|
|
## incrementalQuoteQuantity is the quote quantity per maker order when creating the positions
|
|
|
|
## when in BTC-USDT 20 means 20 USDT, each buy order will hold 20 USDT quote amount.
|
2023-03-23 18:09:49 +00:00
|
|
|
incrementalQuoteQuantity: 20
|
2023-03-25 18:07:54 +00:00
|
|
|
|
|
|
|
## quoteInvestment is how much you want to invest to create your position.
|
|
|
|
## for example, when 10k USDT is given as the quote investment, and the average executed price of your position is around BTC 18k
|
|
|
|
## you will be holding around 0.555555 BTC
|
2023-03-23 18:09:49 +00:00
|
|
|
quoteInvestment: 50
|
|
|
|
|
2023-03-25 18:07:54 +00:00
|
|
|
## shortFundingRate is the funding rate range you want to create your position
|
2023-03-23 04:58:10 +00:00
|
|
|
shortFundingRate:
|
2023-03-23 18:09:49 +00:00
|
|
|
## when funding rate is higher than this high value, the strategy will start buying spot and opening a short position
|
|
|
|
high: 0.001%
|
|
|
|
## when funding rate is lower than this low value, the strategy will start closing futures position and sell the spot
|
2023-03-23 04:58:10 +00:00
|
|
|
low: -0.01%
|
2023-03-23 18:09:49 +00:00
|
|
|
|
|
|
|
## reset will reset the spot/futures positions, the transfer stats and the position state.
|
2023-03-26 06:54:27 +00:00
|
|
|
# reset: true
|
2023-03-29 10:28:25 +00:00
|
|
|
|
|
|
|
# closeFuturesPosition: true
|