world

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFeeds

func AllFeeds() []string

AllFeeds returns all configured feed sources.

Types

type Endpoint

type Endpoint interface {
	GoldDataEndpoint() string
	OneForgeGoldETHDataEndpoint() string
	OneForgeGoldUSDDataEndpoint() string
	GDAXDataEndpoint() string
	KrakenDataEndpoint() string
	GeminiDataEndpoint() string

	CoinbaseBTCEndpoint() string
	GeminiBTCEndpoint() string

	CoinbaseUSDEndpoint() string
	BinanceUSDEndpoint() string
}

Endpoint returns all API endpoints to use in TheWorld struct.

type RealEndpoint

type RealEndpoint struct {
	OneForgeKey string `json:"oneforge"`
}

func NewRealEndpointFromFile

func NewRealEndpointFromFile(path string) (*RealEndpoint, error)

func (RealEndpoint) BinanceUSDEndpoint

func (re RealEndpoint) BinanceUSDEndpoint() string

func (RealEndpoint) CoinbaseBTCEndpoint

func (re RealEndpoint) CoinbaseBTCEndpoint() string

func (RealEndpoint) CoinbaseUSDEndpoint

func (re RealEndpoint) CoinbaseUSDEndpoint() string

func (RealEndpoint) GDAXDataEndpoint

func (re RealEndpoint) GDAXDataEndpoint() string

func (RealEndpoint) GeminiBTCEndpoint

func (re RealEndpoint) GeminiBTCEndpoint() string

func (RealEndpoint) GeminiDataEndpoint

func (re RealEndpoint) GeminiDataEndpoint() string

func (RealEndpoint) GoldDataEndpoint

func (re RealEndpoint) GoldDataEndpoint() string

func (RealEndpoint) KrakenDataEndpoint

func (re RealEndpoint) KrakenDataEndpoint() string

func (RealEndpoint) OneForgeGoldETHDataEndpoint

func (re RealEndpoint) OneForgeGoldETHDataEndpoint() string

func (RealEndpoint) OneForgeGoldUSDDataEndpoint

func (re RealEndpoint) OneForgeGoldUSDDataEndpoint() string

type SimulatedEndpoint

type SimulatedEndpoint struct {
}

func (SimulatedEndpoint) BinanceUSDEndpoint

func (se SimulatedEndpoint) BinanceUSDEndpoint() string

func (SimulatedEndpoint) CoinbaseBTCEndpoint

func (se SimulatedEndpoint) CoinbaseBTCEndpoint() string

func (SimulatedEndpoint) CoinbaseUSDEndpoint

func (se SimulatedEndpoint) CoinbaseUSDEndpoint() string

TODO: support simulation

func (SimulatedEndpoint) GDAXDataEndpoint

func (se SimulatedEndpoint) GDAXDataEndpoint() string

func (SimulatedEndpoint) GeminiBTCEndpoint

func (se SimulatedEndpoint) GeminiBTCEndpoint() string

func (SimulatedEndpoint) GeminiDataEndpoint

func (se SimulatedEndpoint) GeminiDataEndpoint() string

func (SimulatedEndpoint) GoldDataEndpoint

func (se SimulatedEndpoint) GoldDataEndpoint() string

func (SimulatedEndpoint) KrakenDataEndpoint

func (se SimulatedEndpoint) KrakenDataEndpoint() string

func (SimulatedEndpoint) OneForgeGoldETHDataEndpoint

func (se SimulatedEndpoint) OneForgeGoldETHDataEndpoint() string

func (SimulatedEndpoint) OneForgeGoldUSDDataEndpoint

func (se SimulatedEndpoint) OneForgeGoldUSDDataEndpoint() string

type TheWorld

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

TheWorld is the concrete implementation of fetcher.TheWorld interface.

func NewTheWorld

func NewTheWorld(env string, keyfile string) (*TheWorld, error)

NewTheWorld return new world instance

func (*TheWorld) GetBTCInfo

func (tw *TheWorld) GetBTCInfo() (common.BTCData, error)

func (*TheWorld) GetGoldInfo

func (tw *TheWorld) GetGoldInfo() (common.GoldData, error)

func (*TheWorld) GetUSDInfo

func (tw *TheWorld) GetUSDInfo() (common.USDData, error)

Jump to

Keyboard shortcuts

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