source

package
v0.0.0-...-45a0acb Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bittrex

type Bittrex struct {
	// contains filtered or unexported fields
}

func NewBittrex

func NewBittrex() *Bittrex

func NewUpbit

func NewUpbit() *Bittrex

func (*Bittrex) BackData

func (wk *Bittrex) BackData(pair db.Pair, date time.Time) ([]db.OHLC, bool)

func (*Bittrex) Interval

func (wk *Bittrex) Interval() int

1 minute

func (*Bittrex) Name

func (wk *Bittrex) Name() string

func (*Bittrex) RealTime

func (wk *Bittrex) RealTime(pair db.Pair) []db.OHLC

func (*Bittrex) Status

func (wk *Bittrex) Status() int

type DataSource

type DataSource interface {
	Status() int //server status
	Interval() int
	BackData(pair db.Pair, date time.Time) ([]db.OHLC, bool)
	RealTime(pair db.Pair) []db.OHLC
	Name() string //exchange name
	MarketCreated(pair db.Pair) time.Time
}

type Upbit

type Upbit struct {
	// contains filtered or unexported fields
}

func (*Upbit) BackData

func (wk *Upbit) BackData(pair db.Pair, date time.Time) ([]db.OHLC, bool)

func (*Upbit) Interval

func (wk *Upbit) Interval() int

1 minute

func (*Upbit) Name

func (wk *Upbit) Name() string

func (*Upbit) RealTime

func (wk *Upbit) RealTime(pair db.Pair) []db.OHLC

func (*Upbit) Status

func (wk *Upbit) Status() int

Jump to

Keyboard shortcuts

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