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)
Click to show internal directories.
Click to hide internal directories.