Documentation ¶
Index ¶
Constants ¶
View Source
const (
Spot = "SPOT"
)
const values for the ticker package
Variables ¶
View Source
var (
Tickers []Ticker
)
Vars for the ticker package
Functions ¶
func BaseCurrencyExists ¶
BaseCurrencyExists checks to see if the base currency of the ticker map exists
func ProcessTicker ¶
ProcessTicker processes incoming tickers, creating or updating the Tickers list
Types ¶
type Price ¶
type Price struct { Pair currency.Pair `json:"Pair"` Last float64 `json:"Last"` High float64 `json:"High"` Low float64 `json:"Low"` Bid float64 `json:"Bid"` Ask float64 `json:"Ask"` Volume float64 `json:"Volume"` PriceATH float64 `json:"PriceATH"` LastUpdated time.Time }
Price struct stores the currency pair and pricing information
type Ticker ¶
Ticker struct holds the ticker information for a currency pair and type
func CreateNewTicker ¶
CreateNewTicker creates a new Ticker
func GetTickerByExchange ¶
GetTickerByExchange returns an exchange Ticker
Click to show internal directories.
Click to hide internal directories.