Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient is an interface that defines the methods that an HTTP client must implement.
type Kaspi ¶
type Kaspi struct {
// contains filtered or unexported fields
}
func NewKaspi ¶
func NewKaspi(addr string, httpClient HTTPClient) *Kaspi
NewKaspi creates a new Kaspi driver. Default addr is "https://guide.kaspi.kz/client/api/intgr/currency/rate/aggregate". Seems that addr works only from KZ location.
func (*Kaspi) FetchRates ¶
FetchRates fetches exchange rates from the Kaspi API.
type KaspiResponse ¶
type NBRK ¶
type NBRK struct {
// contains filtered or unexported fields
}
func NewNBRK ¶
func NewNBRK(addr string, client HTTPClient) *NBRK
NewNBRK creates a new NBRK driver. default address is "https://nationalbank.kz/rss/rates_all.xml" but you can pass your own address.
func (*NBRK) FetchRates ¶
FetchRates fetches exchange rates from the NBRK API.
Click to show internal directories.
Click to hide internal directories.