Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: [xalign] add withdraw detection #1678

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Conversation

c9s
Copy link
Owner

@c9s c9s commented Jul 31, 2024

No description provided.

@bbgokarma-bot
Copy link

Welcome back! @c9s, This pull request may get 414 BBG.

@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 435 BBG

@c9s c9s enabled auto-merge July 31, 2024 08:52
WithdrawStateConfirmed WithdrawState = "confirmed"
WithdrawStatePending WithdrawState = "pending"
WithdrawStateProcessing WithdrawState = "processing"
WithdrawStateCanceled WithdrawState = "canceled"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this keyword defined by Max because it lacks an "l" and is different from another definition below?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes they are max only

@@ -391,6 +419,14 @@ func (s *Strategy) align(ctx context.Context, sessions map[string]*bbgo.Exchange
}
}

foundActiveTransfer, err := s.detectActiveTransfers(ctx, sessions)
if err != nil {
log.WithError(err).Errorf("unable to check active transfers")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think skipping aligning if any error happens?

@c9s c9s merged commit eb317da into main Jul 31, 2024
3 checks passed
@c9s c9s deleted the c9s/xalign/withdraw-detection branch July 31, 2024 10:08
@bbgokarma-bot
Copy link

Hi @c9s,

Well done! 460 BBG has been sent to your polygon wallet. Please check the following tx:

https://polygonscan.com/tx/0xfa8cf73ec2382103077c86164525dea6a7fd86d59897613680fa2f9625daa9dc

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants