Skip to content

Commit

Permalink
Merge pull request #34 from yubing744/owen/fix-update-position
Browse files Browse the repository at this point in the history
feat: ok for update position action
  • Loading branch information
yubing744 authored Sep 14, 2024
2 parents 676ac53 + 96c61eb commit d7e6fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: clean build unit-test run docker-* tag release

NAME=trading-gpt
VERSION=0.26.10
VERSION=0.27.0

clean:
rm -rf build/*
Expand Down
4 changes: 1 addition & 3 deletions pkg/env/exchange/exchange_entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ func (s *ExchangeEntity) UpdatePositionV2(ctx context.Context, side types.SideTy
err := service.UpdatePosition(ctx, tmpPos)
if err != nil {
log.WithError(err).Error("UpdatePositionV2_fail")

log.Info("fallback_to_UpdatePosition")
return s.UpdatePosition(ctx, side, closePrice, args...)
return errors.Wrap(err, "UpdatePositionV2_UpdatePosition_error")
}

log.Info("UpdatePositionV2_ok")
Expand Down

0 comments on commit d7e6fb2

Please sign in to comment.