Documentation ¶
Index ¶
- func CurrencyList(currencies container.GSlice[Currency]) string
- func NewClient(appID AppID) *genfuncs.Result[*Client]
- func PeriodList(periods container.GSlice[Period]) string
- type AppID
- type Client
- type Currency
- type CurrencyService
- type DateTime
- type NomicsCurrencyService
- type Period
- type TickerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrencyList ¶
CurrencyList formats a list of Currency into a string.
Types ¶
type AppID ¶
type AppID string
AppID API key
func DefaultAppID ¶
func DefaultAppID() AppID
DefaultAppID returns AppID based on NOMICS_APP_ID env variable.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client used to access services.
func MightSkipIntegrationTest ¶
MightSkipIntegrationTest determines if integraation tests should run.
type CurrencyService ¶
type CurrencyService interface {
Tickers(currencies container.GSlice[Currency], periods container.GSlice[Period]) *genfuncs.Result[container.GMap[Currency, *TickerInfo]]
}
CurrencyService provides services to do with cryptocurrencies
type NomicsCurrencyService ¶
type NomicsCurrencyService struct {
// contains filtered or unexported fields
}
NomicsCurrencyService is a CurrencyService implemented using Nomics API.
func NewNomicsCurrencyService ¶
func NewNomicsCurrencyService(client *Client) *NomicsCurrencyService
NewNomicsCurrencyService creates a Nomics based CurrencyService.
Click to show internal directories.
Click to hide internal directories.