Documentation ¶
Index ¶
- Variables
- func FilterEMA(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterEMAextended(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMA(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMAIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMAIRextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func FilterMAextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func FilterMEDIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMEDIRextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func FilterVOL(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVOLextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func FilterVWAP(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVWAPIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVWAPIRextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func FilterVWAPextended(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPointsExtended []dia.FilterPointExtended)
- func GetData() string
- type Block
- type Blockgenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EXCHANGES = scrapers.Exchanges
)
Functions ¶
func FilterEMA ¶ added in v1.4.0
func FilterEMA(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterEMAextended ¶ added in v1.4.310
func FilterEMAextended(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMA ¶
func FilterMA(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMAIR ¶
func FilterMAIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMAIRextended ¶ added in v1.4.310
func FilterMAextended ¶ added in v1.4.310
func FilterMEDIR ¶ added in v1.4.0
func FilterMEDIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMEDIRextended ¶ added in v1.4.310
func FilterVOL ¶ added in v1.4.2
func FilterVOL(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVOLextended ¶ added in v1.4.310
func FilterVWAP ¶
func FilterVWAP(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVWAPIR ¶
func FilterVWAPIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVWAPIRextended ¶ added in v1.4.310
func FilterVWAPextended ¶ added in v1.4.310
Types ¶
type Block ¶
func (*Block) GetBlockSources ¶ added in v1.4.310
func (b *Block) GetBlockSources() (pairs []dia.ExchangePair, pools []dia.Pool)
GetBlockSources returns a unique list of all pairs and pools contained in the block's @b trades.
type Blockgenerator ¶
type Blockgenerator struct {
// contains filtered or unexported fields
}
func NewBlockGenerator ¶
func NewBlockGenerator(trades []dia.Trade) *Blockgenerator
func (*Blockgenerator) GenerateBlocks ¶ added in v1.4.113
Click to show internal directories.
Click to hide internal directories.