Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestMarketPriceUpdates ¶ added in v0.3.0
func GetTestMarketPriceUpdates(n int) (indexPrices []*pricefeedapi.MarketPriceUpdate)
Types ¶
type ExchangeServer ¶
type ExchangeServer struct {
// contains filtered or unexported fields
}
func NewExchangeServer ¶
func NewExchangeServer() *ExchangeServer
NewExchangeServer creates a new ExchangeServer that can be used to fake price data from exchanges. This server responds queries for the test exchange built into the pricefeed daemon and for bitfinex. It is appropriate to run locally or on containers.
func (*ExchangeServer) CleanUp ¶
func (p *ExchangeServer) CleanUp() error
CleanUp shuts down the server and validates that it shut down correctly.
Click to show internal directories.
Click to hide internal directories.