world

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 10 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

	CoinbaseUSDCEndpoint() string
	BinanceUSDCEndpoint() string
	CoinbaseUSDEndpoint() string
	CoinbaseDAIEndpoint() string
	HitDaiEndpoint() string

	BitFinexUSDTEndpoint() string
	BinanceUSDTEndpoint() string
	BinancePAXEndpoint() string
	BinanceTUSDEndpoint() string
}

Endpoint returns all API endpoints to use in TheWorld struct.

type Endpoints added in v0.1.2

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

Endpoints implement endpoint for testing in simulate.

func NewWorldEndpoint added in v0.1.2

func NewWorldEndpoint(eps config.WorldEndpoints) *Endpoints

NewWorldEndpoint ...

func (Endpoints) BinancePAXEndpoint added in v0.1.2

func (ep Endpoints) BinancePAXEndpoint() string

func (Endpoints) BinanceTUSDEndpoint added in v0.1.2

func (ep Endpoints) BinanceTUSDEndpoint() string

func (Endpoints) BinanceUSDCEndpoint added in v0.1.2

func (ep Endpoints) BinanceUSDCEndpoint() string

func (Endpoints) BinanceUSDTEndpoint added in v0.1.2

func (ep Endpoints) BinanceUSDTEndpoint() string

func (Endpoints) BitFinexUSDTEndpoint added in v0.1.2

func (ep Endpoints) BitFinexUSDTEndpoint() string

func (Endpoints) CoinbaseBTCEndpoint added in v0.1.2

func (ep Endpoints) CoinbaseBTCEndpoint() string

func (Endpoints) CoinbaseDAIEndpoint added in v0.1.2

func (ep Endpoints) CoinbaseDAIEndpoint() string

func (Endpoints) CoinbaseUSDCEndpoint added in v0.1.2

func (ep Endpoints) CoinbaseUSDCEndpoint() string

TODO: support simulation

func (Endpoints) CoinbaseUSDEndpoint added in v0.1.2

func (ep Endpoints) CoinbaseUSDEndpoint() string

func (Endpoints) GDAXDataEndpoint added in v0.1.2

func (ep Endpoints) GDAXDataEndpoint() string

func (Endpoints) GeminiBTCEndpoint added in v0.1.2

func (ep Endpoints) GeminiBTCEndpoint() string

func (Endpoints) GeminiDataEndpoint added in v0.1.2

func (ep Endpoints) GeminiDataEndpoint() string

func (Endpoints) GoldDataEndpoint added in v0.1.2

func (ep Endpoints) GoldDataEndpoint() string

func (Endpoints) HitDaiEndpoint added in v0.1.2

func (ep Endpoints) HitDaiEndpoint() string

func (Endpoints) KrakenDataEndpoint added in v0.1.2

func (ep Endpoints) KrakenDataEndpoint() string

func (Endpoints) OneForgeGoldETHDataEndpoint added in v0.1.2

func (ep Endpoints) OneForgeGoldETHDataEndpoint() string

func (Endpoints) OneForgeGoldUSDDataEndpoint added in v0.1.2

func (ep Endpoints) 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(ep Endpoint, l *zap.SugaredLogger) *TheWorld

NewTheWorld ...

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