open_exchange

package
v0.0.0-...-4d895cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(accessKey string) *Client

func (*Client) GetByDate

func (c *Client) GetByDate(base currency.Code, codes []currency.Code, date datetime.Date) (*HistoricalRates, error)

type HistoricalRates

type HistoricalRates struct {
	Date  datetime.Date             `json:"date"`
	Base  currency.Code             `json:"base"`
	Rates map[currency.Code]float64 `json:"rates"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL