xfunding: notify position ready

This commit is contained in:
c9s 2023-03-27 13:34:24 +08:00
parent bc6ee59add
commit a2fdc99741
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)