command

package
v0.0.0-...-da6233f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buy

type Buy struct {
	Ticket, Currency, Broker string
	Volume                   int
	Price                    int64
}

Buy keeps the buy order data

func NewBuy

func NewBuy(args []string) Buy

NewBuy buy command

func (Buy) Execute

func (b Buy) Execute()

Execute the buy order for the ticket

type Help

type Help struct{}

Help represents the help command

func NewHelp

func NewHelp() Help

NewHelp help command

func (Help) Execute

func (h Help) Execute()

Execute help command, printing all available commands

type Sell

type Sell struct {
	Ticket, Currency, Broker string
	Volume                   int
	Price                    int64
}

Sell keeps the sell order data

func NewSell

func NewSell(args []string) Sell

NewSell sell command

func (Sell) Execute

func (s Sell) Execute()

Execute the sell order for the ticket

type View

type View struct {
	// contains filtered or unexported fields
}

View is the command to print the current portfolio

func NewView

func NewView(args []string) View

NewView view command to print the portfolio

func (View) Execute

func (v View) Execute()

Execute prints the portfolio

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL