Documentation
¶
Index ¶
Constants ¶
View Source
const GET = "GET"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoostedTokenProfile ¶
type BoostedTokenProfile struct { URL string `json:"url"` ChainID string `json:"chainId"` TokenAddress string `json:"tokenAddress"` Amount float64 `json:"amount"` TotalAmount float64 `json:"totalAmount"` Icon string `json:"icon"` Header string `json:"header"` Description string `json:"description"` Links []Link `json:"links"` }
func GetLatestBoostedTokenProfiles ¶
func GetLatestBoostedTokenProfiles() ([]BoostedTokenProfile, error)
GetLatestTokenProfiles fetches the latest token profiles
func GetTokensWithMostActiveBoosts ¶
func GetTokensWithMostActiveBoosts() ([]BoostedTokenProfile, error)
type OrderPaidResponse ¶
type OrderPaidResponse struct { Type string `json:"type"` Status string `json:"status"` PaymentTimestamp int `json:"paymentTimestamp"` }
func CheckOrdersPaid ¶
func CheckOrdersPaid(chainId string, tokenAddress string) (*OrderPaidResponse, error)
type Pair ¶
type Pair struct { ChainID string `json:"chainId"` DexID string `json:"dexId"` URL string `json:"url"` PairAddress string `json:"pairAddress"` Labels []string `json:"labels"` BaseToken Token `json:"baseToken"` QuoteToken Token `json:"quoteToken"` PriceNative string `json:"priceNative"` PriceUsd string `json:"priceUsd"` Liquidity Liquidity `json:"liquidity"` FDV float64 `json:"fdv"` MarketCap float64 `json:"marketCap"` PairCreatedAt int64 `json:"pairCreatedAt"` Info Info `json:"info"` Boosts Boosts `json:"boosts"` }
type PairsResponse ¶
type PairsResponse struct { SchemaVersion string `json:"schemaVersion"` Pairs []Pair `json:"pairs"` }
func GetPairsByChainAndPairId ¶
func GetPairsByChainAndPairId(chainId string, pairId string) (*PairsResponse, error)
func GetTokenPairs ¶
func GetTokenPairs(tokenAddresses []string) (*PairsResponse, error)
GetTokenPairs fetches pair information for the given token addresses
func SearchPairs ¶
func SearchPairs(searchText string) (*PairsResponse, error)
type TokenProfile ¶
type TokenProfile struct { URL string `json:"url"` ChainID string `json:"chainId"` TokenAddress string `json:"tokenAddress"` Icon string `json:"icon"` Header string `json:"header"` Description string `json:"description"` Links []Link `json:"links"` }
func GetLatestTokenProfiles ¶
func GetLatestTokenProfiles() ([]TokenProfile, error)
GetLatestTokenProfiles fetches the latest token profiles
Click to show internal directories.
Click to hide internal directories.