Documentation
¶
Index ¶
- func CreateTabPane(x int, y int) *widgets.TabPane
- func CreateTable(title string, rows int, y int) *widgets.Table
- func DataReader(data *Data, dispatcher *workerpool.Dispatcher)
- func GetRecordFromCoordinates(table *widgets.Table, mouseEvent *ui.Mouse) (int, interface{})
- func HandleMouseClick(mouseEvent *ui.Mouse, quotesTable *widgets.Table, ...)
- func RequestCandle(symbol string, from time.Time, to time.Time, resolution string, ...)
- func RequestQuotes(quotes *QuoteData, dispatcher *workerpool.Dispatcher, client *finnhub.Client)
- func RequestRates(base string, dispatcher *workerpool.Dispatcher, client *finnhub.Client)
- func UpdateData(dispatcher *workerpool.Dispatcher, client *finnhub.Client, data *Data, ...)
- func UpdatePlot(plot *SimplePlot, data interface{})
- func UpdatePlotData(dispatcher *workerpool.Dispatcher, client *finnhub.Client, data *Data, ...)
- func UpdateTable(table *widgets.Table, data interface{})
- type CandleData
- type CandlePlot
- type Configuration
- type Data
- type PlotMarker
- type QuoteData
- type RatesData
- type SimplePlot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataReader ¶
func DataReader(data *Data, dispatcher *workerpool.Dispatcher)
func HandleMouseClick ¶
func HandleMouseClick(mouseEvent *ui.Mouse, quotesTable *widgets.Table, dispatcher *workerpool.Dispatcher, client *finnhub.Client, data *Data, candlePlot *CandlePlot, tabPane *widgets.TabPane)
func RequestCandle ¶
func RequestCandle(symbol string, from time.Time, to time.Time, resolution string, dispatcher *workerpool.Dispatcher, client *finnhub.Client)
func RequestQuotes ¶
func RequestQuotes(quotes *QuoteData, dispatcher *workerpool.Dispatcher, client *finnhub.Client)
func RequestRates ¶
func RequestRates(base string, dispatcher *workerpool.Dispatcher, client *finnhub.Client)
func UpdateData ¶
func UpdateData(dispatcher *workerpool.Dispatcher, client *finnhub.Client, data *Data, quoteTable *widgets.Table, ratesTable *widgets.Table, candlePlot *CandlePlot, tabPane *widgets.TabPane)
func UpdatePlot ¶
func UpdatePlot(plot *SimplePlot, data interface{})
func UpdatePlotData ¶
func UpdatePlotData(dispatcher *workerpool.Dispatcher, client *finnhub.Client, data *Data, candlePlot *CandlePlot, tabPane *widgets.TabPane)
func UpdateTable ¶
Types ¶
type CandleData ¶
type CandlePlot ¶
func CreateCandlePlot ¶
func CreateCandlePlot(y int) *CandlePlot
type Configuration ¶
type Configuration struct { ApiKey string `json:"apiKey"` UserQuotes []string `json:"quotes"` BaseCurrency string `json:"base"` }
func ReadConfiguration ¶
func ReadConfiguration() Configuration
type Data ¶
func (*Data) Initialize ¶
type SimplePlot ¶
type SimplePlot struct { Block Data []float64 DataLabels []string Marker PlotMarker LineColors []Color AxesColor Color ShowAxes bool // contains filtered or unexported fields }
func NewSimplePlot ¶
func NewSimplePlot() *SimplePlot
func (*SimplePlot) Draw ¶
func (self *SimplePlot) Draw(buf *Buffer)
Click to show internal directories.
Click to hide internal directories.