Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlreadyExist ¶
type AlreadyExist struct {
Obj interface{}
}
func (AlreadyExist) Error ¶
func (e AlreadyExist) Error() string
type Instrument ¶
func GetInstrument ¶
func GetInstrument(exchange string, symbol string) (*Instrument, error)
func (*Instrument) Save ¶
func (i *Instrument) Save() error
type InstrumentStr ¶
type InstrumentStr string
func (InstrumentStr) Exchange ¶
func (s InstrumentStr) Exchange() string
func (InstrumentStr) Symbol ¶
func (s InstrumentStr) Symbol() string
type Label ¶
func (*Label) NewTransaction ¶
func (l *Label) NewTransaction(tx request.Transaction) (*Transaction, error)
type Snapshot ¶
type Snapshot struct {
Id int
Label Label
Instrument Instrument
Quantity float64
Price float64
}
type Transaction ¶
type Transaction struct {
Id int
LabelId int
InstrumentId int
Date time.Time
Type int
Quantity float64
Price float64
Value float64
}
func (*Transaction) Save ¶
func (t *Transaction) Save() error
func (*Transaction) UpdateSnapshot ¶
func (t *Transaction) UpdateSnapshot() (*Snapshot, error)
type User ¶
func GetUserById ¶
Click to show internal directories.
Click to hide internal directories.