We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got my bbgo bot connected to telegram to receive order changes, but the buy and the sell price gets truncated to the second decimal.
Example of current notification Order binance AEURUSDT LIMIT SELL @ 1.07 0.00/20.000 -> NEW
How it should look like Order binance AEURUSDT LIMIT SELL @ 1.0705 0.00/20.000 -> NEW
The text was updated successfully, but these errors were encountered:
Right now this is formatted using the following source code:
func (o Order) PlainText() string { return fmt.Sprintf("Order %s %s %s %s @ %s %s/%s -> %s", o.Exchange.String(), o.Symbol, o.Type, o.Side, o.Price.FormatString(2), o.ExecutedQuantity.FormatString(2), o.Quantity.FormatString(4), o.Status) }
so it will definitely be truncated to two decimals. @c9s do we have any specific reason that should present the number in this format?
Sorry, something went wrong.
Seems like originated from f4ef19e and slack msg already gets fixed. I think this part needs to be updated as well.
Successfully merging a pull request may close this issue.
I got my bbgo bot connected to telegram to receive order changes, but the buy and the sell price gets truncated to the second decimal.
Example of current notification
Order binance AEURUSDT LIMIT SELL @ 1.07 0.00/20.000 -> NEW
How it should look like
Order binance AEURUSDT LIMIT SELL @ 1.0705 0.00/20.000 -> NEW
The text was updated successfully, but these errors were encountered: