models

package
v0.0.0-...-5621b75 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	gorm.Model

	Last       float64
	Open       float64
	High       float64
	Low        float64
	Volume     float64
	Duration   int        `gorm:"index"`
	Datetime   time.Time  `gorm:"index"`
	Pair       string     `gorm:"index"`
	ExchangeID ExchangeID `gorm:"index"`
}

type ExchangeID

type ExchangeID int
const (
	Poloniex ExchangeID = iota + 1
	Hitbtc
	Bitflyer
	Binance

	UnknownExchange
)

func ExchangeIDString

func ExchangeIDString(s string) (ExchangeID, error)

func (ExchangeID) String

func (i ExchangeID) String() string

Jump to

Keyboard shortcuts

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