Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoinbaseSource types.Source = "Coinbase"
Functions ¶
This section is empty.
Types ¶
type CoinbaseUSDCProvider ¶
type CoinbaseUSDCProvider struct {
// contains filtered or unexported fields
}
CoinbaseUSDCProvider fetches USDC/USD spot price from Coinbase.
func NewCoinbaseUSDCProvider ¶
func NewCoinbaseUSDCProvider(timeout time.Duration) *CoinbaseUSDCProvider
NewCoinbaseUSDCProvider creates a new instance of the Coinbase USDC provider.
func (*CoinbaseUSDCProvider) Fetch ¶
func (p *CoinbaseUSDCProvider) Fetch(ctx context.Context) ([]*types.ExchangeRate, error)
func (*CoinbaseUSDCProvider) Interval ¶
func (p *CoinbaseUSDCProvider) Interval() time.Duration
func (*CoinbaseUSDCProvider) Name ¶
func (p *CoinbaseUSDCProvider) Name() string
Click to show internal directories.
Click to hide internal directories.