Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessTicker ¶
ProcessTicker processes incoming tickers, creating or updating the Tickers list
func SubscribeTicker ¶
SubscribeTicker subcribes to a ticker and returns a communication channel to stream new ticker updates
Types ¶
type Price ¶
type Price struct { Last float64 `json:"Last"` High float64 `json:"High"` Low float64 `json:"Low"` Bid float64 `json:"Bid"` Ask float64 `json:"Ask"` Volume float64 `json:"Volume"` QuoteVolume float64 `json:"QuoteVolume"` PriceATH float64 `json:"PriceATH"` Open float64 `json:"Open"` Close float64 `json:"Close"` Pair currency.Pair `json:"Pair"` ExchangeName string `json:"exchangeName"` AssetType asset.Item `json:"assetType"` LastUpdated time.Time }
Price struct stores the currency pair and pricing information
type Service ¶
type Service struct { Tickers map[string]map[*currency.Item]map[*currency.Item]map[asset.Item]*Ticker Exchange map[string]uuid.UUID sync.RWMutex // contains filtered or unexported fields }
Service holds ticker information for each individual exchange
func (*Service) GetAssociations ¶
GetAssociations links a singular book with it's dispatch associations
Click to show internal directories.
Click to hide internal directories.