Documentation
¶
Index ¶
- Constants
- type Bitpanda
- func (p *Bitpanda) FetchPrices() (err error)
- func (p *Bitpanda) FetchRate(coin string, fiat string) (rate types.ExchangeRate, err error)
- func (p *Bitpanda) FetchRateSynced(coin string, fiat string, rates *types.ExchangeRates, wg *sync.WaitGroup)
- func (p *Bitpanda) SetMarket(market string) (err error)
- type Prices
Constants ¶
View Source
const ( // ProviderName cotains the common name of the provider. ProviderName string = "Bitpanda" // APIBaseURL points to the basic API endpoint used for all requests. APIBaseURL string = "https://api.bitpanda.com/v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitpanda ¶
type Bitpanda struct { // Error is used to convey possible errors. Error error // contains filtered or unexported fields }
Bitpanda is a specific implementation of a Provider.
func (*Bitpanda) FetchPrices ¶
FetchPrices retrieves all available exchange rates and stores them for further use.
func (*Bitpanda) FetchRateSynced ¶
func (p *Bitpanda) FetchRateSynced(coin string, fiat string, rates *types.ExchangeRates, wg *sync.WaitGroup)
FetchRateSynced is a multi-threading implementation of FetchRate.
Click to show internal directories.
Click to hide internal directories.