tradesBlockService

package
v1.4.500-rc-1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// These should be loaded from postgres once we have a list.
	USDT           = dia.Asset{Address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", Blockchain: dia.ETHEREUM}
	USDT_BNB_CHAIN = dia.Asset{Address: "0x55d398326f99059fF775485246999027B3197955", Blockchain: dia.BINANCESMARTCHAIN}
	USDC           = dia.Asset{Address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", Blockchain: dia.ETHEREUM}
	BUSD           = dia.Asset{Address: "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56", Blockchain: dia.BINANCESMARTCHAIN}
	DAI            = dia.Asset{Address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", Blockchain: dia.ETHEREUM}
	TUSD           = dia.Asset{Address: "0x0000000000085d4780B73119b644AE5ecd22b376", 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