tradesBlockService

package
v1.4.17-rc-1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	USDT = dia.Asset{Address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", Blockchain: dia.ETHEREUM}
)

Functions

This section is empty.

Types

type TradesBlockService

type TradesBlockService struct {
	BlockDuration int64
	// contains filtered or unexported fields
}

func NewTradesBlockService

func NewTradesBlockService(datastore models.Datastore, relDB models.RelDatastore, blockDuration int64, historical bool) *TradesBlockService

func (*TradesBlockService) Channel

func (s *TradesBlockService) Channel() chan *dia.TradesBlock

func (*TradesBlockService) Close

func (s *TradesBlockService) Close() error

func (*TradesBlockService) ProcessTrade

func (s *TradesBlockService) ProcessTrade(trade *dia.Trade)

Jump to

Keyboard shortcuts

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