mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xfunding: send positions to slack when start up
This commit is contained in:
parent
b18d4da402
commit
4b9e3f2302
|
@ -343,6 +343,10 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
|
|||
log.Infof("loaded futures position: %s", s.FuturesPosition.String())
|
||||
log.Infof("loaded neutral position: %s", s.NeutralPosition.String())
|
||||
|
||||
bbgo.Notify("Spot Position", s.SpotPosition)
|
||||
bbgo.Notify("Futures Position", s.FuturesPosition)
|
||||
bbgo.Notify("Neutral Position", s.NeutralPosition)
|
||||
|
||||
// sync funding fee txns
|
||||
if !s.ProfitStats.LastFundingFeeTime.IsZero() {
|
||||
s.syncFundingFeeRecords(ctx, s.ProfitStats.LastFundingFeeTime)
|
||||
|
|
Loading…
Reference in New Issue
Block a user