bbgo: show position with plaintext mode instead of string format

This commit is contained in:
c9s 2022-01-15 03:13:30 +08:00
parent 06e7ab8824
commit 5f942e85ed

View File

@ -76,7 +76,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
position := reader.CurrentPosition()
if position != nil {
reply.Send("Your current position:")
reply.Send(position.String())
reply.Send(position.PlainText())
if position.Base == 0 {
reply.Message(fmt.Sprintf("Strategy %q has no opened position", signature))
@ -125,7 +125,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
position := reader.CurrentPosition()
if position != nil {
reply.Send("Your current position:")
reply.Send(position.String())
reply.Send(position.PlainText())
if position.Base == 0 {
reply.Message("No opened position")