From a2fdc997419c7ad9e27e0b4e0c9a3256798a9d7a Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 27 Mar 2023 13:34:24 +0800 Subject: [PATCH] xfunding: notify position ready --- config/xfunding.yaml | 2 +- pkg/strategy/xfunding/strategy.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/xfunding.yaml b/config/xfunding.yaml index 972d3a13e..68f343982 100644 --- a/config/xfunding.yaml +++ b/config/xfunding.yaml @@ -44,7 +44,7 @@ crossExchangeStrategies: ## 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. - incrementalQuoteQuantity: 20 + incrementalQuoteQuantity: 10 ## 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 diff --git a/pkg/strategy/xfunding/strategy.go b/pkg/strategy/xfunding/strategy.go index f0ae55da9..839d8dbb0 100644 --- a/pkg/strategy/xfunding/strategy.go +++ b/pkg/strategy/xfunding/strategy.go @@ -691,6 +691,7 @@ func (s *Strategy) syncFuturesPosition(ctx context.Context) { if futuresBase.Neg().Compare(maxFuturesBasePosition) >= 0 { s.setPositionState(PositionReady) + bbgo.Notify("Position Ready") bbgo.Notify("SpotPosition", s.SpotPosition) bbgo.Notify("FuturesPosition", s.FuturesPosition) bbgo.Notify("NeutralPosition", s.NeutralPosition)