Documentation
¶
Index ¶
- func AllFeeds() []string
- type Endpoint
- type RealEndpoint
- func (re RealEndpoint) BinanceUSDEndpoint() string
- func (re RealEndpoint) CoinbaseBTCEndpoint() string
- func (re RealEndpoint) CoinbaseUSDEndpoint() string
- func (re RealEndpoint) GDAXDataEndpoint() string
- func (re RealEndpoint) GeminiBTCEndpoint() string
- func (re RealEndpoint) GeminiDataEndpoint() string
- func (re RealEndpoint) GoldDataEndpoint() string
- func (re RealEndpoint) KrakenDataEndpoint() string
- func (re RealEndpoint) OneForgeGoldETHDataEndpoint() string
- func (re RealEndpoint) OneForgeGoldUSDDataEndpoint() string
- type SimulatedEndpoint
- func (se SimulatedEndpoint) BinanceUSDEndpoint() string
- func (se SimulatedEndpoint) CoinbaseBTCEndpoint() string
- func (se SimulatedEndpoint) CoinbaseUSDEndpoint() string
- func (se SimulatedEndpoint) GDAXDataEndpoint() string
- func (se SimulatedEndpoint) GeminiBTCEndpoint() string
- func (se SimulatedEndpoint) GeminiDataEndpoint() string
- func (se SimulatedEndpoint) GoldDataEndpoint() string
- func (se SimulatedEndpoint) KrakenDataEndpoint() string
- func (se SimulatedEndpoint) OneForgeGoldETHDataEndpoint() string
- func (se SimulatedEndpoint) OneForgeGoldUSDDataEndpoint() string
- type TheWorld
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
NewTheWorld return new world instance
Click to show internal directories.
Click to hide internal directories.