Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionStats ¶
type StockDistribution ¶
type StockDistribution struct { Symbol string TradingFeeCurrency string Stocks StockSlice PendingSells StockSlice // contains filtered or unexported fields }
func (*StockDistribution) AddTrades ¶
func (m *StockDistribution) AddTrades(trades []types.Trade) (checkpoints []int, err error)
func (*StockDistribution) DistributionStats ¶
func (m *StockDistribution) DistributionStats(level int) *DistributionStats
type StockSlice ¶
type StockSlice []Stock
func (StockSlice) Quantity ¶
func (slice StockSlice) Quantity() (total float64)
func (StockSlice) QuantityBelowPrice ¶
func (slice StockSlice) QuantityBelowPrice(price float64) (quantity float64)
Click to show internal directories.
Click to hide internal directories.