coinone

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoinoneSource

func NewCoinoneSource(interval time.Duration) types.Source

func SourceProvider

func SourceProvider() (string, string, types.SourceProvider)

Types

type CoinoneSource

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

func (*CoinoneSource) Fetch

func (coinone *CoinoneSource) Fetch() error

func (CoinoneSource) Interval

func (coinone CoinoneSource) Interval() time.Duration

func (CoinoneSource) Market

func (coinone CoinoneSource) Market() string

func (CoinoneSource) Pair

func (coinone CoinoneSource) Pair() types.Pair

type Trade

type Trade struct {
	Timestamp     uint64 `json:"timestamp"`
	Price         string `json:"price"`
	Volume        string `json:"volume"`
	IsSellerMaker bool   `json:"is_seller_maker"`
}

type TradeHistory

type TradeHistory struct {
	Trades []Trade `json:"trades"`
}

Jump to

Keyboard shortcuts

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