ticker

package
v0.0.0-...-6165795 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Package ticker defines the interface for ticker-like information streams

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Mood   int
	Symbol exchange.Symbol
}

type Tick

type Tick struct {
	Symbol exchange.Symbol

	Bid     float32
	BidSize uint64

	Ask     float32
	AskSize uint64

	LastSale float32
	LastSize uint64

	QuoteAt exchange.Stamp
	TradeAt exchange.Stamp

	Volume uint
}

type Ticker

type Ticker interface {
	Update(exchange.Stock)
	News(Article)
	GetTick() []Tick
	GetNews(exchange.Symbol) []Article
	Register(Watcher)
}

type Watcher

type Watcher interface {
	Update(Tick)
	News([]Article)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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