Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetRepository ¶
type AssetRepository interface { repositories.CrudRepository[models.Asset, models.CreateAsset, models.UpdateAsset] Despoit(ctx context.Context, transId, userId, symbol string, amount types.Amount) error Withdraw(ctx context.Context, transId, userId, symbol string, amount types.Amount) error Transfer(ctx context.Context, transId, from, to, symbol string, amount types.Amount) error Freeze(ctx context.Context, tx *gorm.DB, transId, userId, symbol string, amount types.Amount) (*entities.AssetFreeze, error) UnFreeze(ctx context.Context, tx *gorm.DB, transId, userId, symbol string, amount types.Amount) error QueryFreeze(ctx context.Context, filter map[string]any) (assetFreezes []*models.AssetFreeze, err error) }
type OrderRepository ¶
type OrderRepository interface { CreateLimit(ctx context.Context, user_id, symbol string, side matching_types.OrderSide, price, qty string) (order *entities.Order, err error) CreateMarketByAmount(ctx context.Context, user_id, symbol string, side matching_types.OrderSide, amount string) (order *entities.Order, err error) CreateMarketByQty(ctx context.Context, user_id, symbol string, side matching_types.OrderSide, qty string) (order *entities.Order, err error) Cancel(ctx context.Context, symbol, order_id string, cancelType models_types.CancelType) error }
type TradeVarietyRepository ¶
type TradeVarietyRepository interface { repositories.CrudRepository[models_variety.TradeVariety, models_variety.CreateTradeVariety, models_variety.UpdateTradeVariety] FindBySymbol(ctx context.Context, symbol string) (tradeVariety *models_variety.TradeVariety, err error) }
type VarietyRepository ¶
type VarietyRepository interface { repositories.CrudRepository[models_variety.Variety, models_variety.CreateVariety, models_variety.UpdateVariety] }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.