service

package
v0.0.0-...-3f639d1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpstSvc = new(OpstService)
View Source
var OptionTradeSvc = new(OptionTradeService)
View Source
var StockTradeSvc = new(StockTradeService)

Functions

This section is empty.

Types

type OpstService

type OpstService struct{}

func (*OpstService) Apply

func (svc *OpstService) Apply(opst *opst.Opst) error

func (*OpstService) Import

func (svc *OpstService) Import(path string) error

func (*OpstService) List

func (svc *OpstService) List(query *query.OpstQuery) (list []models.OptionStrategy)

type OptionTradeService

type OptionTradeService struct{}

func (*OptionTradeService) Delete

func (svc *OptionTradeService) Delete(id uint) error

func (*OptionTradeService) Get

func (svc *OptionTradeService) Get(code string) (*models.OptionTrade, error)

func (*OptionTradeService) GetById

func (svc *OptionTradeService) GetById(id uint) (*models.OptionTrade, error)

func (*OptionTradeService) List

func (svc *OptionTradeService) List(query *query.OptionQuery) (list []models.OptionTrade)

func (*OptionTradeService) RollPut

func (svc *OptionTradeService) RollPut(id int, closePrice, exerciseDate, sellPrice string) error

func (*OptionTradeService) Save

func (svc *OptionTradeService) Save(trade *models.OptionTrade) error

func (*OptionTradeService) Update

func (svc *OptionTradeService) Update(trade *models.OptionTrade) error

type StockTradeService

type StockTradeService struct {
}

func (*StockTradeService) GetOptionCode

func (svc *StockTradeService) GetOptionCode(code string) string

func (*StockTradeService) Save

func (svc *StockTradeService) Save(trade *models.StockTrade) error

Jump to

Keyboard shortcuts

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