Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHTTPRequest ¶
DoHTTPRequest executes the http request.
func NormalizeCurrency ¶
NormalizeCurrency return the standard ISO4217 representation of the known currency
Types ¶
type NewQuoteGetterFunc ¶ added in v0.2.0
type NewQuoteGetterFunc func(string, *http.Client) QuoteGetter
NewQuoteGetterFunc creates a new QuoteGetter from Name and http.Client.
type QuoteGetter ¶
type QuoteGetter interface { Source() string Client() *http.Client GetQuote(ctx context.Context, isin, url string) (*Result, error) }
QuoteGetter interface
type Sources ¶ added in v0.3.0
type Sources map[string]NewQuoteGetterFunc
Sources maps the source name to the corrisponing NewQuoteGetterFunc.
Click to show internal directories.
Click to hide internal directories.