mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: show position with plaintext mode instead of string format
This commit is contained in:
parent
06e7ab8824
commit
5f942e85ed
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user