Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2024 Changes in this version + const GroupDay + const GroupHour + const GroupMinute + type Client struct + func NewClient() *Client + func (c *Client) Auth(token string) + func (c *Client) NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, ...) (*http.Request, error) + func (c *Client) NewRateRequest() *RateRequest + func (c *Client) QueryRate(ctx context.Context, source string, target string) ([]Rate, error) + func (c *Client) QueryRateHistory(ctx context.Context, source string, target string, from time.Time, ...) ([]Rate, error) + type Group string + type Rate struct + Source string + Target string + Time Time + Value fixedpoint.Value + type RateRequest struct + func (r *RateRequest) Do(ctx context.Context) ([]Rate, error) + func (r *RateRequest) From(from time.Time) *RateRequest + func (r *RateRequest) GetParameters() (map[string]interface{}, error) + func (r *RateRequest) GetParametersJSON() ([]byte, error) + func (r *RateRequest) GetParametersQuery() (url.Values, error) + func (r *RateRequest) GetPath() string + func (r *RateRequest) GetQueryParameters() (url.Values, error) + func (r *RateRequest) GetSlugParameters() (map[string]interface{}, error) + func (r *RateRequest) GetSlugsMap() (map[string]string, error) + func (r *RateRequest) Group(group Group) *RateRequest + func (r *RateRequest) Source(source string) *RateRequest + func (r *RateRequest) Target(target string) *RateRequest + func (r *RateRequest) Time(time time.Time) *RateRequest + func (r *RateRequest) To(to time.Time) *RateRequest + type Time time.Time + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) String() string + func (t Time) Time() time.Time