gateway

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingRepository added in v1.1.0

type SettingRepository struct {
	RWDB *gorm.DB
	RODB *gorm.DB
}

func (*SettingRepository) Get added in v1.1.0

func (r *SettingRepository) Get(setting domain.Setting) (domain.Setting, error)

func (*SettingRepository) Set added in v1.1.0

func (r *SettingRepository) Set(setting domain.Setting) (domain.Setting, error)

type TVRepository

type TVRepository struct {
	RWDB *gorm.DB
	RODB *gorm.DB
}

func (*TVRepository) CalculateTPSL added in v1.2.0

func (r *TVRepository) CalculateTPSL(req domain.TV, bybitClient *rest.ByBit, value interface{}, isType string) (float64, error)

func (*TVRepository) CreateOrder

func (r *TVRepository) CreateOrder(req domain.TV, bybitClient *rest.ByBit) (*rest.Order, error)

func (*TVRepository) SaveOrder added in v1.3.0

func (r *TVRepository) SaveOrder(req domain.TV, order *rest.Order) error

Jump to

Keyboard shortcuts

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