tradingview

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Time1D  = "|1D"
	Time1M  = "|1M"
	Time3M  = "|3M"
	Time1Y  = "|12M"
	Time5Y  = "|60M"
	TimeAll = "|ALL"
)

Variables

This section is empty.

Functions

func SearchAndSendStockImage

func SearchAndSendStockImage(b *tb.Bot, m *tb.Message, symbol, timeRange string, delFile, technicalAnalysis bool)

func TradingviewDetailWidgetTinhLee

func TradingviewDetailWidgetTinhLee(width, height int64, symbols, timeRange string) string

Types

type StockImageOptions

type StockImageOptions struct {
	Symbol      string
	Description string
	Time        string

	// BinaryPath the path to your capture-website binary. REQUIRED
	//
	// Must be absolute path e.g /usr/local/bin/capture-website
	BinaryPath string

	Input             string
	Output            string
	Dir               string
	Html              string
	Format            string
	Width             int64
	Height            int64
	Delay             int
	Overwrite         bool
	Darkmode          bool
	TechnicalAnalysis bool
}

func (*StockImageOptions) CountdownToDel

func (s *StockImageOptions) CountdownToDel()

func (*StockImageOptions) FileName

func (s *StockImageOptions) FileName() string

func (*StockImageOptions) FilePath

func (s *StockImageOptions) FilePath() string

func (*StockImageOptions) FilePathIndex

func (s *StockImageOptions) FilePathIndex() string

func (*StockImageOptions) GenerateImage

func (options *StockImageOptions) GenerateImage() error

Jump to

Keyboard shortcuts

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