entity

package
v0.2.13-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerInfo

type BrokerInfo struct {
	Name      string `json:"name"`
	Title     string `json:"title"`
	TitleLong string `json:"title_long"`
	Url       string `json:"url"`
}

func (BrokerInfo) ToJSON

func (bi BrokerInfo) ToJSON() string

type EnumBroker

type EnumBroker string
const (
	Garanti EnumBroker = "garanti"
	NCM     EnumBroker = "ncm"
)

func (EnumBroker) String

func (t EnumBroker) String() string

type Transaction

type Transaction struct {
	Symbol   string
	Date     time.Time
	Quantity int
	Price    float64
	Type     TrasnactionType
}

type Transactions

type Transactions struct {
	Items []Transaction
}

func (*Transactions) Add

func (t *Transactions) Add(item Transaction)

func (Transactions) Count

func (t Transactions) Count() int

type TrasnactionType

type TrasnactionType int
const (
	Buy TrasnactionType = iota
	Sell
)

func (TrasnactionType) String

func (tt TrasnactionType) String() string

Jump to

Keyboard shortcuts

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