-
-
Notifications
You must be signed in to change notification settings - Fork 296
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 notification when order quote is over alert amount #1791
Conversation
Welcome back! @kbearXD, This pull request may get 225 BBG. |
52ec12a
to
302b78f
Compare
Re-estimated karma: this pull request may get 270 BBG |
302b78f
to
1813f4c
Compare
Re-estimated karma: this pull request may get 361 BBG |
1813f4c
to
57e42ad
Compare
Re-estimated karma: this pull request may get 348 BBG |
57e42ad
to
caf5d69
Compare
Re-estimated karma: this pull request may get 360 BBG |
pkg/strategy/xalign/strategy.go
Outdated
@@ -50,6 +100,7 @@ type Strategy struct { | |||
BalanceToleranceRange fixedpoint.Value `json:"balanceToleranceRange"` | |||
Duration types.Duration `json:"for"` | |||
MaxAmounts map[string]fixedpoint.Value `json:"maxAmounts"` | |||
MaxAmountAlert *MaxAmountAlertConfig `json:"maxAmountAlert"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call it LargeAmountAlert?
func (m *MaxAmountAlert) SlackAttachment() slack.Attachment { | ||
return slack.Attachment{ | ||
Color: "red", | ||
Title: fmt.Sprintf("xalign amount alert - try to align %s with quote %s amount %f > %f", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Large Amount Alert
@@ -50,6 +100,7 @@ type Strategy struct { | |||
BalanceToleranceRange fixedpoint.Value `json:"balanceToleranceRange"` | |||
Duration types.Duration `json:"for"` | |||
MaxAmounts map[string]fixedpoint.Value `json:"maxAmounts"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field can be removed?
caf5d69
to
b47fc08
Compare
Re-estimated karma: this pull request may get 395 BBG |
Hi @kbearXD, Well done! 400 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0x00a1d9d4c03a333acfcecaa395175f8b61d2a70ba91da4536cf262c848ef088a Thank you for your contribution! |
No description provided.