Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gecko ¶
type Gecko struct {
ApiKey string
TokenList []geckoapis.CoingeckoToken
UpdatedAt time.Time
}
func (*Gecko) GetId ¶
Get the id accroding to symbol. Some tokens like usdc.e on avalanche cannot be found by coingecko list, need special process.
func (*Gecko) GetPrice ¶
Get price by coingecko id. Currency can be "", "usd" will be used by default.
func (*Gecko) GetPriceBySymbol ¶
Get token price by its symbol. Some tokens like usdc.e on avalanche cannot be found by coingecko list, need special process.
Click to show internal directories.
Click to hide internal directories.