pkg

package
v0.0.0-...-5b29fed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Ping() (*ping.PingResponse, error)
	Key() (*key.KeyResponse, error)
	GetCoinsList(request *coins.GetCoinsListRequest) (*coins.GetCoinsListResponse, error)
	GetCoinPriceByIDs(request *simple.GetCoinPriceByIDsRequest) (*simple.GetCoinPriceByIDsResponse, error)
	GetCoinPriceByTokenAddress(request *simple.GetCoinPriceByTokenAddressRequest) (*simple.GetCoinPriceByTokenAddressResponse, error)
	GetSupportedCurrencies() (*simple.GetSupportedCurrenciesResponse, error)
	GetAssetPlatforms() (*asset_platforms.GetAssetPlatformsResponse, error)
	GetCategoriesList() (*categories.GetCategoriesListResponse, error)
	GetCategoriesData(request *categories.GetCategoriesDataRequest) (*categories.GetCategoriesDataResponse, error)
	GetExchangesList(request *exchanges.GetExchangesListRequest) (*exchanges.GetExchangesListResponse, error)
	GetExchangeData(request *exchanges.GetExchangeDataRequest) (*exchanges.GetExchangeDataResponse, error)
	GetExchangeTickers(request *exchanges.GetExchangeTickersRequest) (*exchanges.GetExchangeTickersResponse, error)
	GetExchangeVolumeChart(request *exchanges.GetExchangeVolumeChartRequest) (*exchanges.GetExchangeVolumeChartResponse, error)
	GetContractData(request *contract.GetContractDataRequest) (*contract.GetContractDataResponse, error)
	GetContractMarketChart(request *contract.GetContractMarketChartRequest) (*contract.GetContractMarketChartResponse, error)
	GetContractMarketChartRange(request *contract.GetContractMarketChartRangeRequest) (*contract.GetContractMarketChartRangeResponse, error)
	GetDerivativesList() (*derivatives.GetDerivativesListResponse, error)
	GetDerivativesExchangesList() (*derivatives.GetDerivativesExchangesListResponse, error)
	GetDerivativeExchangeData(request *derivatives.GetDerivativeExchangeDataRequest) (*derivatives.GetDerivativeExchangeDataResponse, error)
	GetDerivativesExchangesListIDMap() (*derivatives.GetDerivativesExchangesListIDMapResponse, error)
	GetNFTsList() (*nfts.GetNFTsListResponse, error)
	GetNFTData(request *nfts.GetNFTDataRequest) (*nfts.GetNFTDataResponse, error)
	GetNFTContractData(request *nfts.GetNFTContractDataRequest) (*nfts.GetNFTContractDataResponse, error)
	GetNFTsMarketData(request *nfts.GetNFTsMarketDataRequest) (*nfts.GetNFTsMarketDataResponse, error)
	GetNFTHistory(request *nfts.GetNFTHistoryRequest) (*nfts.GetNFTHistoryResponse, error)
	GetNFTContractHistory(request *nfts.GetNFTContractHistoryRequest) (*nfts.GetNFTContractHistoryResponse, error)
	GetNFTTickers(request *nfts.GetNFTTickersRequest) (*nfts.GetNFTTickersResponse, error)
	GetExchangeRates() (*exchange_rates.GetExchangeRatesResponse, error)
	Search(request *search.SearchRequest) (*search.SearchResponse, error)
	GetTrending() (*trending.TrendingResponse, error)
	GetGlobal() (*global.GetGlobalResponse, error)
	GetGlobalDefi() (*global.GetGlobalDefiResponse, error)
	GetGlobalMarketCapChart(vsCurrency string, days string) (*global.GetGlobalMarketCapChartResponse, error)
	GetPublicTreasury() (*companies.GetPublicTreasuryResponse, error)
}

func NewClient

func NewClient(options ...ClientOption) Client

type ClientImpl

type ClientImpl struct {
	PingClient           ping.Client
	KeyClient            key.Client
	CoinsClient          coins.Client
	SampleClient         simple.Client
	AssetPlatformsClient asset_platforms.Client
	CategoriesClient     categories.Client
	ExchangesClient      exchanges.Client
	ContractClient       contract.Client
	DerivativesClient    derivatives.Client
	NFTsClient           nfts.Client
	ExchangeRatesClient  exchange_rates.Client
	SearchClient         search.Client
	TrendingClient       trending.Client
	GlobalClient         global.Client
	CompaniesClient      companies.Client
}

func (ClientImpl) GetAssetPlatforms

func (c ClientImpl) GetAssetPlatforms() (*asset_platforms.GetAssetPlatformsResponse, error)

func (ClientImpl) GetCategoriesList

func (c ClientImpl) GetCategoriesList() (*categories.GetCategoriesListResponse, error)

func (ClientImpl) GetCoinPriceByIDs

func (ClientImpl) GetCoinsList

func (c ClientImpl) GetCoinsList(request *coins.GetCoinsListRequest) (*coins.GetCoinsListResponse, error)

func (ClientImpl) GetContractData

func (ClientImpl) GetDerivativesExchangesList

func (c ClientImpl) GetDerivativesExchangesList() (*derivatives.GetDerivativesExchangesListResponse, error)

func (ClientImpl) GetDerivativesExchangesListIDMap

func (c ClientImpl) GetDerivativesExchangesListIDMap() (*derivatives.GetDerivativesExchangesListIDMapResponse, error)

func (ClientImpl) GetDerivativesList

func (c ClientImpl) GetDerivativesList() (*derivatives.GetDerivativesListResponse, error)

func (ClientImpl) GetExchangeData

func (ClientImpl) GetExchangeRates

func (c ClientImpl) GetExchangeRates() (*exchange_rates.GetExchangeRatesResponse, error)

func (ClientImpl) GetExchangesList

func (ClientImpl) GetGlobal

func (c ClientImpl) GetGlobal() (*global.GetGlobalResponse, error)

func (ClientImpl) GetGlobalDefi

func (c ClientImpl) GetGlobalDefi() (*global.GetGlobalDefiResponse, error)

func (ClientImpl) GetGlobalMarketCapChart

func (c ClientImpl) GetGlobalMarketCapChart(vsCurrency string, days string) (*global.GetGlobalMarketCapChartResponse, error)

func (ClientImpl) GetNFTContractData

func (ClientImpl) GetNFTContractHistory

func (ClientImpl) GetNFTData

func (c ClientImpl) GetNFTData(request *nfts.GetNFTDataRequest) (*nfts.GetNFTDataResponse, error)

func (ClientImpl) GetNFTHistory

func (c ClientImpl) GetNFTHistory(request *nfts.GetNFTHistoryRequest) (*nfts.GetNFTHistoryResponse, error)

func (ClientImpl) GetNFTTickers

func (c ClientImpl) GetNFTTickers(request *nfts.GetNFTTickersRequest) (*nfts.GetNFTTickersResponse, error)

func (ClientImpl) GetNFTsList

func (c ClientImpl) GetNFTsList() (*nfts.GetNFTsListResponse, error)

func (ClientImpl) GetNFTsMarketData

func (c ClientImpl) GetNFTsMarketData(request *nfts.GetNFTsMarketDataRequest) (*nfts.GetNFTsMarketDataResponse, error)

func (ClientImpl) GetPublicTreasury

func (c ClientImpl) GetPublicTreasury() (*companies.GetPublicTreasuryResponse, error)

func (ClientImpl) GetSupportedCurrencies

func (c ClientImpl) GetSupportedCurrencies() (*simple.GetSupportedCurrenciesResponse, error)

func (ClientImpl) GetTrending

func (c ClientImpl) GetTrending() (*trending.TrendingResponse, error)

func (ClientImpl) Key

func (c ClientImpl) Key() (*key.KeyResponse, error)

func (ClientImpl) Ping

func (c ClientImpl) Ping() (*ping.PingResponse, error)

func (ClientImpl) Search

func (c ClientImpl) Search(request *search.SearchRequest) (*search.SearchResponse, error)

type ClientOption

type ClientOption = base.ClientOption

ClientOption defines client configuration options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL