mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +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
|
## 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.
|
## 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.
|
## 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
|
## 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 {
|
if futuresBase.Neg().Compare(maxFuturesBasePosition) >= 0 {
|
||||||
s.setPositionState(PositionReady)
|
s.setPositionState(PositionReady)
|
||||||
|
|
||||||
|
bbgo.Notify("Position Ready")
|
||||||
bbgo.Notify("SpotPosition", s.SpotPosition)
|
bbgo.Notify("SpotPosition", s.SpotPosition)
|
||||||
bbgo.Notify("FuturesPosition", s.FuturesPosition)
|
bbgo.Notify("FuturesPosition", s.FuturesPosition)
|
||||||
bbgo.Notify("NeutralPosition", s.NeutralPosition)
|
bbgo.Notify("NeutralPosition", s.NeutralPosition)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user