Documentation ¶
Index ¶
- Variables
- type OpstService
- type OptionTradeService
- func (svc *OptionTradeService) Delete(id uint) error
- func (svc *OptionTradeService) Get(code string) (*models.OptionTrade, error)
- func (svc *OptionTradeService) GetById(id uint) (*models.OptionTrade, error)
- func (svc *OptionTradeService) List(query *query.OptionQuery) (list []models.OptionTrade)
- func (svc *OptionTradeService) RollPut(id int, closePrice, exerciseDate, sellPrice string) error
- func (svc *OptionTradeService) Save(trade *models.OptionTrade) error
- func (svc *OptionTradeService) Update(trade *models.OptionTrade) error
- type StockTradeService
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) 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
Click to show internal directories.
Click to hide internal directories.