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(cfg config.CoinMarketCapConfig) *Client
NewClient creates new resty client.
func (*Client) GetGlobalPrices ¶
type CoinMarketCapResponse ¶
type PoolsCache ¶
type PoolsCache struct { BlockHeight int64 `json:"blockHeight"` Pools []PoolsCachePool `json:"pools"` TotalValueLocked float64 `json:"totalValueLocked"` UpdatedAt time.Time `json:"updatedAt"` }
type PoolsCacheCoin ¶
type PoolsCachePool ¶
type PoolsCachePool struct { ID uint64 `json:"id"` ReserveCoins []PoolsCacheCoin `json:"reserveCoins"` PoolCoin PoolsCacheCoin `json:"poolCoin"` SwapFeeValueSinceLastHour float64 `json:"swapFeeValueSinceLastHour"` APY float64 `json:"apy"` }
Click to show internal directories.
Click to hide internal directories.