market

package
v0.0.0-...-e7ea114 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandleSummary

type CandleSummary struct {
	// contains filtered or unexported fields
}

func (*CandleSummary) Candles

func (m *CandleSummary) Candles(interval string) (*circular.Cache, error)

func (*CandleSummary) CreateCandle

func (m *CandleSummary) CreateCandle(interval string, candle *models.Candlestick) error

func (*CandleSummary) Init

func (m *CandleSummary) Init(symbol string, limit int32) *CandleSummary

func (*CandleSummary) SummaryData

func (m *CandleSummary) SummaryData(interval string) *SummaryData

func (*CandleSummary) UpdateCandle

func (m *CandleSummary) UpdateCandle(interval string, candleId int32, candle *models.Candlestick)

type Market

type Market struct {
	// contains filtered or unexported fields
}

func NewMarket

func NewMarket(limit int32) *Market

func (*Market) CandleSummary

func (c *Market) CandleSummary(symbol string) (*CandleSummary, error)

func (*Market) Candles

func (c *Market) Candles(symbol, interval string) *circular.Cache

func (*Market) CreateSummary

func (c *Market) CreateSummary(symbol string) *CandleSummary

func (*Market) UpdateSummary

func (c *Market) UpdateSummary(symbol string) *CandleSummary

type SummaryData

type SummaryData struct {
	Candles    *circular.Cache `json:"candles,omitempty"`
	CreateTime int64           `json:"create_time,omitempty"`
	UpdateTime int64           `json:"update_time,omitempty"`
}

Jump to

Keyboard shortcuts

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