mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xfunding: notify position ready
This commit is contained in:
parent
bc6ee59add
commit
a2fdc99741
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user