Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) GetMarketBalance(ctx context.Context, market ports.Market) (ports.MarketInfo, error)
- func (s *Service) GetMarketPrice(ctx context.Context, market ports.Market) (decimal.Decimal, uint64, error)
- func (s *Service) GetTradableMarkets(ctx context.Context) ([]ports.MarketInfo, error)
- func (s *Service) TradeComplete(ctx context.Context, swapComplete ports.SwapComplete, swapFail ports.SwapFail) (txidRes string, swapFailRes ports.SwapFail, err error)
- func (s *Service) TradePreview(ctx context.Context, market ports.Market, tradeType ports.TradeType, ...) (ports.TradePreview, error)
- func (s *Service) TradePropose(ctx context.Context, market ports.Market, tradeType ports.TradeType, ...) (ports.SwapAccept, ports.SwapFail, int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ()
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetMarketBalance ¶
func (*Service) GetMarketPrice ¶
func (*Service) GetTradableMarkets ¶
func (*Service) TradeComplete ¶
func (*Service) TradePreview ¶
Click to show internal directories.
Click to hide internal directories.