Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToMap ¶
ArrayToMap converts an array of exchanges to a map of exchanges.
Types ¶
type Exchange ¶
type Exchange struct {
Name string
Periods []string
Pairs []string
Fees float64
LastSyncTime time.Time
}
Exchange represents an exchange.
func MapToArray ¶
MapToArray converts a map of exchanges to an array of exchanges.
func (*Exchange) AddPeriods ¶
AddPeriods adds a period to the exchange.
func (Exchange) IsOutdated ¶
IsOutdated checks if the exchange is outdated.
Click to show internal directories.
Click to hide internal directories.