coingeckov3

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package coingeckov3 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetAssetPlatformsRequest

func NewGetAssetPlatformsRequest(server string) (*http.Request, error)

NewGetAssetPlatformsRequest generates requests for GetAssetPlatforms

func NewGetCoinsCategoriesListRequest

func NewGetCoinsCategoriesListRequest(server string) (*http.Request, error)

NewGetCoinsCategoriesListRequest generates requests for GetCoinsCategoriesList

func NewGetCoinsCategoriesRequest

func NewGetCoinsCategoriesRequest(server string, params *GetCoinsCategoriesParams) (*http.Request, error)

NewGetCoinsCategoriesRequest generates requests for GetCoinsCategories

func NewGetCoinsIdContractContractAddressMarketChartRangeRequest

func NewGetCoinsIdContractContractAddressMarketChartRangeRequest(server string, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartRangeParams) (*http.Request, error)

NewGetCoinsIdContractContractAddressMarketChartRangeRequest generates requests for GetCoinsIdContractContractAddressMarketChartRange

func NewGetCoinsIdContractContractAddressMarketChartRequest

func NewGetCoinsIdContractContractAddressMarketChartRequest(server string, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartParams) (*http.Request, error)

NewGetCoinsIdContractContractAddressMarketChartRequest generates requests for GetCoinsIdContractContractAddressMarketChart

func NewGetCoinsIdContractContractAddressRequest

func NewGetCoinsIdContractContractAddressRequest(server string, id string, contractAddress string) (*http.Request, error)

NewGetCoinsIdContractContractAddressRequest generates requests for GetCoinsIdContractContractAddress

func NewGetCoinsIdHistoryRequest

func NewGetCoinsIdHistoryRequest(server string, id string, params *GetCoinsIdHistoryParams) (*http.Request, error)

NewGetCoinsIdHistoryRequest generates requests for GetCoinsIdHistory

func NewGetCoinsIdMarketChartRangeRequest

func NewGetCoinsIdMarketChartRangeRequest(server string, id string, params *GetCoinsIdMarketChartRangeParams) (*http.Request, error)

NewGetCoinsIdMarketChartRangeRequest generates requests for GetCoinsIdMarketChartRange

func NewGetCoinsIdMarketChartRequest

func NewGetCoinsIdMarketChartRequest(server string, id string, params *GetCoinsIdMarketChartParams) (*http.Request, error)

NewGetCoinsIdMarketChartRequest generates requests for GetCoinsIdMarketChart

func NewGetCoinsIdOhlcRequest

func NewGetCoinsIdOhlcRequest(server string, id string, params *GetCoinsIdOhlcParams) (*http.Request, error)

NewGetCoinsIdOhlcRequest generates requests for GetCoinsIdOhlc

func NewGetCoinsIdRequest

func NewGetCoinsIdRequest(server string, id string, params *GetCoinsIdParams) (*http.Request, error)

NewGetCoinsIdRequest generates requests for GetCoinsId

func NewGetCoinsIdTickersRequest

func NewGetCoinsIdTickersRequest(server string, id string, params *GetCoinsIdTickersParams) (*http.Request, error)

NewGetCoinsIdTickersRequest generates requests for GetCoinsIdTickers

func NewGetCoinsListRequest

func NewGetCoinsListRequest(server string, params *GetCoinsListParams) (*http.Request, error)

NewGetCoinsListRequest generates requests for GetCoinsList

func NewGetCoinsMarketsRequest

func NewGetCoinsMarketsRequest(server string, params *GetCoinsMarketsParams) (*http.Request, error)

NewGetCoinsMarketsRequest generates requests for GetCoinsMarkets

func NewGetDerivativesExchangesIdRequest

func NewGetDerivativesExchangesIdRequest(server string, id string, params *GetDerivativesExchangesIdParams) (*http.Request, error)

NewGetDerivativesExchangesIdRequest generates requests for GetDerivativesExchangesId

func NewGetDerivativesExchangesListRequest

func NewGetDerivativesExchangesListRequest(server string) (*http.Request, error)

NewGetDerivativesExchangesListRequest generates requests for GetDerivativesExchangesList

func NewGetDerivativesExchangesRequest

func NewGetDerivativesExchangesRequest(server string, params *GetDerivativesExchangesParams) (*http.Request, error)

NewGetDerivativesExchangesRequest generates requests for GetDerivativesExchanges

func NewGetDerivativesRequest

func NewGetDerivativesRequest(server string, params *GetDerivativesParams) (*http.Request, error)

NewGetDerivativesRequest generates requests for GetDerivatives

func NewGetExchangeRatesRequest

func NewGetExchangeRatesRequest(server string) (*http.Request, error)

NewGetExchangeRatesRequest generates requests for GetExchangeRates

func NewGetExchangeRequest

func NewGetExchangeRequest(server string, id string) (*http.Request, error)

NewGetExchangeRequest generates requests for GetExchange

func NewGetExchangesIdTickersRequest

func NewGetExchangesIdTickersRequest(server string, id string, params *GetExchangesIdTickersParams) (*http.Request, error)

NewGetExchangesIdTickersRequest generates requests for GetExchangesIdTickers

func NewGetExchangesIdVolumeChartRequest

func NewGetExchangesIdVolumeChartRequest(server string, id string, params *GetExchangesIdVolumeChartParams) (*http.Request, error)

NewGetExchangesIdVolumeChartRequest generates requests for GetExchangesIdVolumeChart

func NewGetExchangesListRequest

func NewGetExchangesListRequest(server string) (*http.Request, error)

NewGetExchangesListRequest generates requests for GetExchangesList

func NewGetExchangesRequest

func NewGetExchangesRequest(server string, params *GetExchangesParams) (*http.Request, error)

NewGetExchangesRequest generates requests for GetExchanges

func NewGetGlobalRequest

func NewGetGlobalRequest(server string) (*http.Request, error)

NewGetGlobalRequest generates requests for GetGlobal

func NewGetIndexesListRequest

func NewGetIndexesListRequest(server string) (*http.Request, error)

NewGetIndexesListRequest generates requests for GetIndexesList

func NewGetIndexesMarketIdIdRequest

func NewGetIndexesMarketIdIdRequest(server string, marketId string, id string) (*http.Request, error)

NewGetIndexesMarketIdIdRequest generates requests for GetIndexesMarketIdId

func NewGetIndexesRequest

func NewGetIndexesRequest(server string, params *GetIndexesParams) (*http.Request, error)

NewGetIndexesRequest generates requests for GetIndexes

func NewGetPingRequest

func NewGetPingRequest(server string) (*http.Request, error)

NewGetPingRequest generates requests for GetPing

func NewGetSearchTrendingRequest

func NewGetSearchTrendingRequest(server string) (*http.Request, error)

NewGetSearchTrendingRequest generates requests for GetSearchTrending

func NewGetSimplePriceRequest

func NewGetSimplePriceRequest(server string, params *GetSimplePriceParams) (*http.Request, error)

NewGetSimplePriceRequest generates requests for GetSimplePrice

func NewGetSimpleSupportedVsCurrenciesRequest

func NewGetSimpleSupportedVsCurrenciesRequest(server string) (*http.Request, error)

NewGetSimpleSupportedVsCurrenciesRequest generates requests for GetSimpleSupportedVsCurrencies

func NewGetSimpleTokenPriceIdRequest

func NewGetSimpleTokenPriceIdRequest(server string, id string, params *GetSimpleTokenPriceIdParams) (*http.Request, error)

NewGetSimpleTokenPriceIdRequest generates requests for GetSimpleTokenPriceId

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetAssetPlatforms

func (c *Client) GetAssetPlatforms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsCategories

func (c *Client) GetCoinsCategories(ctx context.Context, params *GetCoinsCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsCategoriesList

func (c *Client) GetCoinsCategoriesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsId

func (c *Client) GetCoinsId(ctx context.Context, id string, params *GetCoinsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdContractContractAddress

func (c *Client) GetCoinsIdContractContractAddress(ctx context.Context, id string, contractAddress string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdContractContractAddressMarketChart

func (c *Client) GetCoinsIdContractContractAddressMarketChart(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdContractContractAddressMarketChartRange

func (c *Client) GetCoinsIdContractContractAddressMarketChartRange(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdHistory

func (c *Client) GetCoinsIdHistory(ctx context.Context, id string, params *GetCoinsIdHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdMarketChart

func (c *Client) GetCoinsIdMarketChart(ctx context.Context, id string, params *GetCoinsIdMarketChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdMarketChartRange

func (c *Client) GetCoinsIdMarketChartRange(ctx context.Context, id string, params *GetCoinsIdMarketChartRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdOhlc

func (c *Client) GetCoinsIdOhlc(ctx context.Context, id string, params *GetCoinsIdOhlcParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsIdTickers

func (c *Client) GetCoinsIdTickers(ctx context.Context, id string, params *GetCoinsIdTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsList

func (c *Client) GetCoinsList(ctx context.Context, params *GetCoinsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoinsMarkets

func (c *Client) GetCoinsMarkets(ctx context.Context, params *GetCoinsMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDerivatives

func (c *Client) GetDerivatives(ctx context.Context, params *GetDerivativesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDerivativesExchanges

func (c *Client) GetDerivativesExchanges(ctx context.Context, params *GetDerivativesExchangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDerivativesExchangesId

func (c *Client) GetDerivativesExchangesId(ctx context.Context, id string, params *GetDerivativesExchangesIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDerivativesExchangesList

func (c *Client) GetDerivativesExchangesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchange

func (c *Client) GetExchange(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchangeRates

func (c *Client) GetExchangeRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchanges

func (c *Client) GetExchanges(ctx context.Context, params *GetExchangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchangesIdTickers

func (c *Client) GetExchangesIdTickers(ctx context.Context, id string, params *GetExchangesIdTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchangesIdVolumeChart

func (c *Client) GetExchangesIdVolumeChart(ctx context.Context, id string, params *GetExchangesIdVolumeChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExchangesList

func (c *Client) GetExchangesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetGlobal

func (c *Client) GetGlobal(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIndexes

func (c *Client) GetIndexes(ctx context.Context, params *GetIndexesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIndexesList

func (c *Client) GetIndexesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIndexesMarketIdId

func (c *Client) GetIndexesMarketIdId(ctx context.Context, marketId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPing

func (c *Client) GetPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSearchTrending

func (c *Client) GetSearchTrending(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSimplePrice

func (c *Client) GetSimplePrice(ctx context.Context, params *GetSimplePriceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSimpleSupportedVsCurrencies

func (c *Client) GetSimpleSupportedVsCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSimpleTokenPriceId

func (c *Client) GetSimpleTokenPriceId(ctx context.Context, id string, params *GetSimpleTokenPriceIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetAssetPlatforms request
	GetAssetPlatforms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsCategories request
	GetCoinsCategories(ctx context.Context, params *GetCoinsCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsCategoriesList request
	GetCoinsCategoriesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsList request
	GetCoinsList(ctx context.Context, params *GetCoinsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsMarkets request
	GetCoinsMarkets(ctx context.Context, params *GetCoinsMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsId request
	GetCoinsId(ctx context.Context, id string, params *GetCoinsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdContractContractAddress request
	GetCoinsIdContractContractAddress(ctx context.Context, id string, contractAddress string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdContractContractAddressMarketChart request
	GetCoinsIdContractContractAddressMarketChart(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdContractContractAddressMarketChartRange request
	GetCoinsIdContractContractAddressMarketChartRange(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdHistory request
	GetCoinsIdHistory(ctx context.Context, id string, params *GetCoinsIdHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdMarketChart request
	GetCoinsIdMarketChart(ctx context.Context, id string, params *GetCoinsIdMarketChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdMarketChartRange request
	GetCoinsIdMarketChartRange(ctx context.Context, id string, params *GetCoinsIdMarketChartRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdOhlc request
	GetCoinsIdOhlc(ctx context.Context, id string, params *GetCoinsIdOhlcParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoinsIdTickers request
	GetCoinsIdTickers(ctx context.Context, id string, params *GetCoinsIdTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDerivatives request
	GetDerivatives(ctx context.Context, params *GetDerivativesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDerivativesExchanges request
	GetDerivativesExchanges(ctx context.Context, params *GetDerivativesExchangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDerivativesExchangesList request
	GetDerivativesExchangesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDerivativesExchangesId request
	GetDerivativesExchangesId(ctx context.Context, id string, params *GetDerivativesExchangesIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchangeRates request
	GetExchangeRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchanges request
	GetExchanges(ctx context.Context, params *GetExchangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchangesList request
	GetExchangesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchange request
	GetExchange(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchangesIdTickers request
	GetExchangesIdTickers(ctx context.Context, id string, params *GetExchangesIdTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExchangesIdVolumeChart request
	GetExchangesIdVolumeChart(ctx context.Context, id string, params *GetExchangesIdVolumeChartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetGlobal request
	GetGlobal(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIndexes request
	GetIndexes(ctx context.Context, params *GetIndexesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIndexesList request
	GetIndexesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIndexesMarketIdId request
	GetIndexesMarketIdId(ctx context.Context, marketId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPing request
	GetPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSearchTrending request
	GetSearchTrending(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSimplePrice request
	GetSimplePrice(ctx context.Context, params *GetSimplePriceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSimpleSupportedVsCurrencies request
	GetSimpleSupportedVsCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSimpleTokenPriceId request
	GetSimpleTokenPriceId(ctx context.Context, id string, params *GetSimpleTokenPriceIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetAssetPlatformsWithResponse

func (c *ClientWithResponses) GetAssetPlatformsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAssetPlatformsResponse, error)

GetAssetPlatformsWithResponse request returning *GetAssetPlatformsResponse

func (*ClientWithResponses) GetCoinsCategoriesListWithResponse

func (c *ClientWithResponses) GetCoinsCategoriesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCoinsCategoriesListResponse, error)

GetCoinsCategoriesListWithResponse request returning *GetCoinsCategoriesListResponse

func (*ClientWithResponses) GetCoinsCategoriesWithResponse

func (c *ClientWithResponses) GetCoinsCategoriesWithResponse(ctx context.Context, params *GetCoinsCategoriesParams, reqEditors ...RequestEditorFn) (*GetCoinsCategoriesResponse, error)

GetCoinsCategoriesWithResponse request returning *GetCoinsCategoriesResponse

func (*ClientWithResponses) GetCoinsIdContractContractAddressMarketChartRangeWithResponse

func (c *ClientWithResponses) GetCoinsIdContractContractAddressMarketChartRangeWithResponse(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartRangeParams, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressMarketChartRangeResponse, error)

GetCoinsIdContractContractAddressMarketChartRangeWithResponse request returning *GetCoinsIdContractContractAddressMarketChartRangeResponse

func (*ClientWithResponses) GetCoinsIdContractContractAddressMarketChartWithResponse

func (c *ClientWithResponses) GetCoinsIdContractContractAddressMarketChartWithResponse(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartParams, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressMarketChartResponse, error)

GetCoinsIdContractContractAddressMarketChartWithResponse request returning *GetCoinsIdContractContractAddressMarketChartResponse

func (*ClientWithResponses) GetCoinsIdContractContractAddressWithResponse

func (c *ClientWithResponses) GetCoinsIdContractContractAddressWithResponse(ctx context.Context, id string, contractAddress string, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressResponse, error)

GetCoinsIdContractContractAddressWithResponse request returning *GetCoinsIdContractContractAddressResponse

func (*ClientWithResponses) GetCoinsIdHistoryWithResponse

func (c *ClientWithResponses) GetCoinsIdHistoryWithResponse(ctx context.Context, id string, params *GetCoinsIdHistoryParams, reqEditors ...RequestEditorFn) (*GetCoinsIdHistoryResponse, error)

GetCoinsIdHistoryWithResponse request returning *GetCoinsIdHistoryResponse

func (*ClientWithResponses) GetCoinsIdMarketChartRangeWithResponse

func (c *ClientWithResponses) GetCoinsIdMarketChartRangeWithResponse(ctx context.Context, id string, params *GetCoinsIdMarketChartRangeParams, reqEditors ...RequestEditorFn) (*GetCoinsIdMarketChartRangeResponse, error)

GetCoinsIdMarketChartRangeWithResponse request returning *GetCoinsIdMarketChartRangeResponse

func (*ClientWithResponses) GetCoinsIdMarketChartWithResponse

func (c *ClientWithResponses) GetCoinsIdMarketChartWithResponse(ctx context.Context, id string, params *GetCoinsIdMarketChartParams, reqEditors ...RequestEditorFn) (*GetCoinsIdMarketChartResponse, error)

GetCoinsIdMarketChartWithResponse request returning *GetCoinsIdMarketChartResponse

func (*ClientWithResponses) GetCoinsIdOhlcWithResponse

func (c *ClientWithResponses) GetCoinsIdOhlcWithResponse(ctx context.Context, id string, params *GetCoinsIdOhlcParams, reqEditors ...RequestEditorFn) (*GetCoinsIdOhlcResponse, error)

GetCoinsIdOhlcWithResponse request returning *GetCoinsIdOhlcResponse

func (*ClientWithResponses) GetCoinsIdTickersWithResponse

func (c *ClientWithResponses) GetCoinsIdTickersWithResponse(ctx context.Context, id string, params *GetCoinsIdTickersParams, reqEditors ...RequestEditorFn) (*GetCoinsIdTickersResponse, error)

GetCoinsIdTickersWithResponse request returning *GetCoinsIdTickersResponse

func (*ClientWithResponses) GetCoinsIdWithResponse

func (c *ClientWithResponses) GetCoinsIdWithResponse(ctx context.Context, id string, params *GetCoinsIdParams, reqEditors ...RequestEditorFn) (*GetCoinsIdResponse, error)

GetCoinsIdWithResponse request returning *GetCoinsIdResponse

func (*ClientWithResponses) GetCoinsListWithResponse

func (c *ClientWithResponses) GetCoinsListWithResponse(ctx context.Context, params *GetCoinsListParams, reqEditors ...RequestEditorFn) (*GetCoinsListResponse, error)

GetCoinsListWithResponse request returning *GetCoinsListResponse

func (*ClientWithResponses) GetCoinsMarketsWithResponse

func (c *ClientWithResponses) GetCoinsMarketsWithResponse(ctx context.Context, params *GetCoinsMarketsParams, reqEditors ...RequestEditorFn) (*GetCoinsMarketsResponse, error)

GetCoinsMarketsWithResponse request returning *GetCoinsMarketsResponse

func (*ClientWithResponses) GetDerivativesExchangesIdWithResponse

func (c *ClientWithResponses) GetDerivativesExchangesIdWithResponse(ctx context.Context, id string, params *GetDerivativesExchangesIdParams, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesIdResponse, error)

GetDerivativesExchangesIdWithResponse request returning *GetDerivativesExchangesIdResponse

func (*ClientWithResponses) GetDerivativesExchangesListWithResponse

func (c *ClientWithResponses) GetDerivativesExchangesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesListResponse, error)

GetDerivativesExchangesListWithResponse request returning *GetDerivativesExchangesListResponse

func (*ClientWithResponses) GetDerivativesExchangesWithResponse

func (c *ClientWithResponses) GetDerivativesExchangesWithResponse(ctx context.Context, params *GetDerivativesExchangesParams, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesResponse, error)

GetDerivativesExchangesWithResponse request returning *GetDerivativesExchangesResponse

func (*ClientWithResponses) GetDerivativesWithResponse

func (c *ClientWithResponses) GetDerivativesWithResponse(ctx context.Context, params *GetDerivativesParams, reqEditors ...RequestEditorFn) (*GetDerivativesResponse, error)

GetDerivativesWithResponse request returning *GetDerivativesResponse

func (*ClientWithResponses) GetExchangeRatesWithResponse

func (c *ClientWithResponses) GetExchangeRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExchangeRatesResponse, error)

GetExchangeRatesWithResponse request returning *GetExchangeRatesResponse

func (*ClientWithResponses) GetExchangeWithResponse

func (c *ClientWithResponses) GetExchangeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetExchangeResponse, error)

GetExchangeWithResponse request returning *GetExchangeResponse

func (*ClientWithResponses) GetExchangesIdTickersWithResponse

func (c *ClientWithResponses) GetExchangesIdTickersWithResponse(ctx context.Context, id string, params *GetExchangesIdTickersParams, reqEditors ...RequestEditorFn) (*GetExchangesIdTickersResponse, error)

GetExchangesIdTickersWithResponse request returning *GetExchangesIdTickersResponse

func (*ClientWithResponses) GetExchangesIdVolumeChartWithResponse

func (c *ClientWithResponses) GetExchangesIdVolumeChartWithResponse(ctx context.Context, id string, params *GetExchangesIdVolumeChartParams, reqEditors ...RequestEditorFn) (*GetExchangesIdVolumeChartResponse, error)

GetExchangesIdVolumeChartWithResponse request returning *GetExchangesIdVolumeChartResponse

func (*ClientWithResponses) GetExchangesListWithResponse

func (c *ClientWithResponses) GetExchangesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExchangesListResponse, error)

GetExchangesListWithResponse request returning *GetExchangesListResponse

func (*ClientWithResponses) GetExchangesWithResponse

func (c *ClientWithResponses) GetExchangesWithResponse(ctx context.Context, params *GetExchangesParams, reqEditors ...RequestEditorFn) (*GetExchangesResponse, error)

GetExchangesWithResponse request returning *GetExchangesResponse

func (*ClientWithResponses) GetGlobalWithResponse

func (c *ClientWithResponses) GetGlobalWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalResponse, error)

GetGlobalWithResponse request returning *GetGlobalResponse

func (*ClientWithResponses) GetIndexesListWithResponse

func (c *ClientWithResponses) GetIndexesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIndexesListResponse, error)

GetIndexesListWithResponse request returning *GetIndexesListResponse

func (*ClientWithResponses) GetIndexesMarketIdIdWithResponse

func (c *ClientWithResponses) GetIndexesMarketIdIdWithResponse(ctx context.Context, marketId string, id string, reqEditors ...RequestEditorFn) (*GetIndexesMarketIdIdResponse, error)

GetIndexesMarketIdIdWithResponse request returning *GetIndexesMarketIdIdResponse

func (*ClientWithResponses) GetIndexesWithResponse

func (c *ClientWithResponses) GetIndexesWithResponse(ctx context.Context, params *GetIndexesParams, reqEditors ...RequestEditorFn) (*GetIndexesResponse, error)

GetIndexesWithResponse request returning *GetIndexesResponse

func (*ClientWithResponses) GetPingWithResponse

func (c *ClientWithResponses) GetPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPingResponse, error)

GetPingWithResponse request returning *GetPingResponse

func (*ClientWithResponses) GetSearchTrendingWithResponse

func (c *ClientWithResponses) GetSearchTrendingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchTrendingResponse, error)

GetSearchTrendingWithResponse request returning *GetSearchTrendingResponse

func (*ClientWithResponses) GetSimplePriceWithResponse

func (c *ClientWithResponses) GetSimplePriceWithResponse(ctx context.Context, params *GetSimplePriceParams, reqEditors ...RequestEditorFn) (*GetSimplePriceResponse, error)

GetSimplePriceWithResponse request returning *GetSimplePriceResponse

func (*ClientWithResponses) GetSimpleSupportedVsCurrenciesWithResponse

func (c *ClientWithResponses) GetSimpleSupportedVsCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSimpleSupportedVsCurrenciesResponse, error)

GetSimpleSupportedVsCurrenciesWithResponse request returning *GetSimpleSupportedVsCurrenciesResponse

func (*ClientWithResponses) GetSimpleTokenPriceIdWithResponse

func (c *ClientWithResponses) GetSimpleTokenPriceIdWithResponse(ctx context.Context, id string, params *GetSimpleTokenPriceIdParams, reqEditors ...RequestEditorFn) (*GetSimpleTokenPriceIdResponse, error)

GetSimpleTokenPriceIdWithResponse request returning *GetSimpleTokenPriceIdResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAssetPlatforms request
	GetAssetPlatformsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAssetPlatformsResponse, error)

	// GetCoinsCategories request
	GetCoinsCategoriesWithResponse(ctx context.Context, params *GetCoinsCategoriesParams, reqEditors ...RequestEditorFn) (*GetCoinsCategoriesResponse, error)

	// GetCoinsCategoriesList request
	GetCoinsCategoriesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCoinsCategoriesListResponse, error)

	// GetCoinsList request
	GetCoinsListWithResponse(ctx context.Context, params *GetCoinsListParams, reqEditors ...RequestEditorFn) (*GetCoinsListResponse, error)

	// GetCoinsMarkets request
	GetCoinsMarketsWithResponse(ctx context.Context, params *GetCoinsMarketsParams, reqEditors ...RequestEditorFn) (*GetCoinsMarketsResponse, error)

	// GetCoinsId request
	GetCoinsIdWithResponse(ctx context.Context, id string, params *GetCoinsIdParams, reqEditors ...RequestEditorFn) (*GetCoinsIdResponse, error)

	// GetCoinsIdContractContractAddress request
	GetCoinsIdContractContractAddressWithResponse(ctx context.Context, id string, contractAddress string, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressResponse, error)

	// GetCoinsIdContractContractAddressMarketChart request
	GetCoinsIdContractContractAddressMarketChartWithResponse(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartParams, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressMarketChartResponse, error)

	// GetCoinsIdContractContractAddressMarketChartRange request
	GetCoinsIdContractContractAddressMarketChartRangeWithResponse(ctx context.Context, id string, contractAddress string, params *GetCoinsIdContractContractAddressMarketChartRangeParams, reqEditors ...RequestEditorFn) (*GetCoinsIdContractContractAddressMarketChartRangeResponse, error)

	// GetCoinsIdHistory request
	GetCoinsIdHistoryWithResponse(ctx context.Context, id string, params *GetCoinsIdHistoryParams, reqEditors ...RequestEditorFn) (*GetCoinsIdHistoryResponse, error)

	// GetCoinsIdMarketChart request
	GetCoinsIdMarketChartWithResponse(ctx context.Context, id string, params *GetCoinsIdMarketChartParams, reqEditors ...RequestEditorFn) (*GetCoinsIdMarketChartResponse, error)

	// GetCoinsIdMarketChartRange request
	GetCoinsIdMarketChartRangeWithResponse(ctx context.Context, id string, params *GetCoinsIdMarketChartRangeParams, reqEditors ...RequestEditorFn) (*GetCoinsIdMarketChartRangeResponse, error)

	// GetCoinsIdOhlc request
	GetCoinsIdOhlcWithResponse(ctx context.Context, id string, params *GetCoinsIdOhlcParams, reqEditors ...RequestEditorFn) (*GetCoinsIdOhlcResponse, error)

	// GetCoinsIdTickers request
	GetCoinsIdTickersWithResponse(ctx context.Context, id string, params *GetCoinsIdTickersParams, reqEditors ...RequestEditorFn) (*GetCoinsIdTickersResponse, error)

	// GetDerivatives request
	GetDerivativesWithResponse(ctx context.Context, params *GetDerivativesParams, reqEditors ...RequestEditorFn) (*GetDerivativesResponse, error)

	// GetDerivativesExchanges request
	GetDerivativesExchangesWithResponse(ctx context.Context, params *GetDerivativesExchangesParams, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesResponse, error)

	// GetDerivativesExchangesList request
	GetDerivativesExchangesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesListResponse, error)

	// GetDerivativesExchangesId request
	GetDerivativesExchangesIdWithResponse(ctx context.Context, id string, params *GetDerivativesExchangesIdParams, reqEditors ...RequestEditorFn) (*GetDerivativesExchangesIdResponse, error)

	// GetExchangeRates request
	GetExchangeRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExchangeRatesResponse, error)

	// GetExchanges request
	GetExchangesWithResponse(ctx context.Context, params *GetExchangesParams, reqEditors ...RequestEditorFn) (*GetExchangesResponse, error)

	// GetExchangesList request
	GetExchangesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExchangesListResponse, error)

	// GetExchange request
	GetExchangeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetExchangeResponse, error)

	// GetExchangesIdTickers request
	GetExchangesIdTickersWithResponse(ctx context.Context, id string, params *GetExchangesIdTickersParams, reqEditors ...RequestEditorFn) (*GetExchangesIdTickersResponse, error)

	// GetExchangesIdVolumeChart request
	GetExchangesIdVolumeChartWithResponse(ctx context.Context, id string, params *GetExchangesIdVolumeChartParams, reqEditors ...RequestEditorFn) (*GetExchangesIdVolumeChartResponse, error)

	// GetGlobal request
	GetGlobalWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalResponse, error)

	// GetIndexes request
	GetIndexesWithResponse(ctx context.Context, params *GetIndexesParams, reqEditors ...RequestEditorFn) (*GetIndexesResponse, error)

	// GetIndexesList request
	GetIndexesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIndexesListResponse, error)

	// GetIndexesMarketIdId request
	GetIndexesMarketIdIdWithResponse(ctx context.Context, marketId string, id string, reqEditors ...RequestEditorFn) (*GetIndexesMarketIdIdResponse, error)

	// GetPing request
	GetPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPingResponse, error)

	// GetSearchTrending request
	GetSearchTrendingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchTrendingResponse, error)

	// GetSimplePrice request
	GetSimplePriceWithResponse(ctx context.Context, params *GetSimplePriceParams, reqEditors ...RequestEditorFn) (*GetSimplePriceResponse, error)

	// GetSimpleSupportedVsCurrencies request
	GetSimpleSupportedVsCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSimpleSupportedVsCurrenciesResponse, error)

	// GetSimpleTokenPriceId request
	GetSimpleTokenPriceIdWithResponse(ctx context.Context, id string, params *GetSimpleTokenPriceIdParams, reqEditors ...RequestEditorFn) (*GetSimpleTokenPriceIdResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Coin

type Coin struct {
	Id                   string                 `json:"id"`
	Name                 *string                `json:"name,omitempty"`
	Symbol               string                 `json:"symbol"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Coin defines model for coin.

func (Coin) Get

func (a Coin) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Coin. Returns the specified element and whether it was found

func (Coin) MarshalJSON

func (a Coin) MarshalJSON() ([]byte, error)

Override default JSON handling for Coin to handle AdditionalProperties

func (*Coin) Set

func (a *Coin) Set(fieldName string, value interface{})

Setter for additional properties for Coin

func (*Coin) UnmarshalJSON

func (a *Coin) UnmarshalJSON(b []byte) error

Override default JSON handling for Coin to handle AdditionalProperties

type ConvertedDetails

type ConvertedDetails struct {
	Btc                  *float64               `json:"btc,omitempty"`
	Eth                  *float64               `json:"eth,omitempty"`
	Usd                  *float64               `json:"usd,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ConvertedDetails defines model for convertedDetails.

func (ConvertedDetails) Get

func (a ConvertedDetails) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ConvertedDetails. Returns the specified element and whether it was found

func (ConvertedDetails) MarshalJSON

func (a ConvertedDetails) MarshalJSON() ([]byte, error)

Override default JSON handling for ConvertedDetails to handle AdditionalProperties

func (*ConvertedDetails) Set

func (a *ConvertedDetails) Set(fieldName string, value interface{})

Setter for additional properties for ConvertedDetails

func (*ConvertedDetails) UnmarshalJSON

func (a *ConvertedDetails) UnmarshalJSON(b []byte) error

Override default JSON handling for ConvertedDetails to handle AdditionalProperties

type Exchange

type Exchange struct {
	Country                     string                 `json:"country"`
	Description                 string                 `json:"description"`
	HasTradingIncentive         bool                   `json:"has_trading_incentive"`
	Id                          string                 `json:"id"`
	Image                       string                 `json:"image"`
	Name                        string                 `json:"name"`
	TradeVolume24hBtc           float64                `json:"trade_volume_24h_btc"`
	TradeVolume24hBtcNormalized float64                `json:"trade_volume_24h_btc_normalized"`
	TrustScore                  int                    `json:"trust_score"`
	TrustScoreRank              int                    `json:"trust_score_rank"`
	Url                         string                 `json:"url"`
	YearEstablished             int                    `json:"year_established"`
	AdditionalProperties        map[string]interface{} `json:"-"`
}

Exchange defines model for exchange.

func (Exchange) Get

func (a Exchange) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Exchange. Returns the specified element and whether it was found

func (Exchange) MarshalJSON

func (a Exchange) MarshalJSON() ([]byte, error)

Override default JSON handling for Exchange to handle AdditionalProperties

func (*Exchange) Set

func (a *Exchange) Set(fieldName string, value interface{})

Setter for additional properties for Exchange

func (*Exchange) UnmarshalJSON

func (a *Exchange) UnmarshalJSON(b []byte) error

Override default JSON handling for Exchange to handle AdditionalProperties

type ExchangeDetails

type ExchangeDetails struct {
	AlertNotice                 string                 `json:"alert_notice"`
	Centralized                 bool                   `json:"centralized"`
	Country                     string                 `json:"country"`
	Description                 string                 `json:"description"`
	FacebookUrl                 string                 `json:"facebook_url"`
	HasTradingIncentive         bool                   `json:"has_trading_incentive"`
	Image                       string                 `json:"image"`
	Name                        string                 `json:"name"`
	OtherUrl1                   string                 `json:"other_url_1"`
	OtherUrl2                   string                 `json:"other_url_2"`
	PublicNotice                string                 `json:"public_notice"`
	RedditUrl                   string                 `json:"reddit_url"`
	SlackUrl                    string                 `json:"slack_url"`
	StatusUpdates               *[]StatusUpdate        `json:"status_updates,omitempty"`
	TelegramUrl                 string                 `json:"telegram_url"`
	Tickers                     *[]Ticker              `json:"tickers,omitempty"`
	TradeVolume24hBtc           float64                `json:"trade_volume_24h_btc"`
	TradeVolume24hBtcNormalized float64                `json:"trade_volume_24h_btc_normalized"`
	TrustScore                  int                    `json:"trust_score"`
	TrustScoreRank              int                    `json:"trust_score_rank"`
	TwitterHandle               string                 `json:"twitter_handle"`
	Url                         string                 `json:"url"`
	YearEstablished             int                    `json:"year_established"`
	AdditionalProperties        map[string]interface{} `json:"-"`
}

ExchangeDetails defines model for exchangeDetails.

func (ExchangeDetails) Get

func (a ExchangeDetails) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ExchangeDetails. Returns the specified element and whether it was found

func (ExchangeDetails) MarshalJSON

func (a ExchangeDetails) MarshalJSON() ([]byte, error)

Override default JSON handling for ExchangeDetails to handle AdditionalProperties

func (*ExchangeDetails) Set

func (a *ExchangeDetails) Set(fieldName string, value interface{})

Setter for additional properties for ExchangeDetails

func (*ExchangeDetails) UnmarshalJSON

func (a *ExchangeDetails) UnmarshalJSON(b []byte) error

Override default JSON handling for ExchangeDetails to handle AdditionalProperties

type ExchangeIdName

type ExchangeIdName struct {
	Id                   string                 `json:"id"`
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ExchangeIdName defines model for exchangeIdName.

func (ExchangeIdName) Get

func (a ExchangeIdName) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ExchangeIdName. Returns the specified element and whether it was found

func (ExchangeIdName) MarshalJSON

func (a ExchangeIdName) MarshalJSON() ([]byte, error)

Override default JSON handling for ExchangeIdName to handle AdditionalProperties

func (*ExchangeIdName) Set

func (a *ExchangeIdName) Set(fieldName string, value interface{})

Setter for additional properties for ExchangeIdName

func (*ExchangeIdName) UnmarshalJSON

func (a *ExchangeIdName) UnmarshalJSON(b []byte) error

Override default JSON handling for ExchangeIdName to handle AdditionalProperties

type GetAssetPlatformsResponse

type GetAssetPlatformsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetAssetPlatformsResponse

func ParseGetAssetPlatformsResponse(rsp *http.Response) (*GetAssetPlatformsResponse, error)

ParseGetAssetPlatformsResponse parses an HTTP response from a GetAssetPlatformsWithResponse call

func (GetAssetPlatformsResponse) Status

func (r GetAssetPlatformsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAssetPlatformsResponse) StatusCode

func (r GetAssetPlatformsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsCategoriesListResponse

type GetCoinsCategoriesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsCategoriesListResponse

func ParseGetCoinsCategoriesListResponse(rsp *http.Response) (*GetCoinsCategoriesListResponse, error)

ParseGetCoinsCategoriesListResponse parses an HTTP response from a GetCoinsCategoriesListWithResponse call

func (GetCoinsCategoriesListResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsCategoriesListResponse) StatusCode

func (r GetCoinsCategoriesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsCategoriesParams

type GetCoinsCategoriesParams struct {
	// Order valid values: <b>market_cap_desc (default), market_cap_asc, name_desc, name_asc, market_cap_change_24h_desc and market_cap_change_24h_asc</b>
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetCoinsCategoriesParams defines parameters for GetCoinsCategories.

type GetCoinsCategoriesResponse

type GetCoinsCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsCategoriesResponse

func ParseGetCoinsCategoriesResponse(rsp *http.Response) (*GetCoinsCategoriesResponse, error)

ParseGetCoinsCategoriesResponse parses an HTTP response from a GetCoinsCategoriesWithResponse call

func (GetCoinsCategoriesResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsCategoriesResponse) StatusCode

func (r GetCoinsCategoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdContractContractAddressMarketChartParams

type GetCoinsIdContractContractAddressMarketChartParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// Days Data up to number of days ago (eg. 1,14,30,max)
	Days string `form:"days" json:"days"`
}

GetCoinsIdContractContractAddressMarketChartParams defines parameters for GetCoinsIdContractContractAddressMarketChart.

type GetCoinsIdContractContractAddressMarketChartRangeParams

type GetCoinsIdContractContractAddressMarketChartRangeParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// From From date in UNIX Timestamp (eg. 1392577232)
	From string `form:"from" json:"from"`

	// To To date in UNIX Timestamp (eg. 1422577232)
	To string `form:"to" json:"to"`
}

GetCoinsIdContractContractAddressMarketChartRangeParams defines parameters for GetCoinsIdContractContractAddressMarketChartRange.

type GetCoinsIdContractContractAddressMarketChartRangeResponse

type GetCoinsIdContractContractAddressMarketChartRangeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdContractContractAddressMarketChartRangeResponse

func ParseGetCoinsIdContractContractAddressMarketChartRangeResponse(rsp *http.Response) (*GetCoinsIdContractContractAddressMarketChartRangeResponse, error)

ParseGetCoinsIdContractContractAddressMarketChartRangeResponse parses an HTTP response from a GetCoinsIdContractContractAddressMarketChartRangeWithResponse call

func (GetCoinsIdContractContractAddressMarketChartRangeResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsIdContractContractAddressMarketChartRangeResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdContractContractAddressMarketChartResponse

type GetCoinsIdContractContractAddressMarketChartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdContractContractAddressMarketChartResponse

func ParseGetCoinsIdContractContractAddressMarketChartResponse(rsp *http.Response) (*GetCoinsIdContractContractAddressMarketChartResponse, error)

ParseGetCoinsIdContractContractAddressMarketChartResponse parses an HTTP response from a GetCoinsIdContractContractAddressMarketChartWithResponse call

func (GetCoinsIdContractContractAddressMarketChartResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsIdContractContractAddressMarketChartResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdContractContractAddressResponse

type GetCoinsIdContractContractAddressResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdContractContractAddressResponse

func ParseGetCoinsIdContractContractAddressResponse(rsp *http.Response) (*GetCoinsIdContractContractAddressResponse, error)

ParseGetCoinsIdContractContractAddressResponse parses an HTTP response from a GetCoinsIdContractContractAddressWithResponse call

func (GetCoinsIdContractContractAddressResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsIdContractContractAddressResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdHistoryParams

type GetCoinsIdHistoryParams struct {
	// Date The date of data snapshot in dd-mm-yyyy eg. 30-12-2017
	Date string `form:"date" json:"date"`

	// Localization Set to false to exclude localized languages in response
	Localization *string `form:"localization,omitempty" json:"localization,omitempty"`
}

GetCoinsIdHistoryParams defines parameters for GetCoinsIdHistory.

type GetCoinsIdHistoryResponse

type GetCoinsIdHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdHistoryResponse

func ParseGetCoinsIdHistoryResponse(rsp *http.Response) (*GetCoinsIdHistoryResponse, error)

ParseGetCoinsIdHistoryResponse parses an HTTP response from a GetCoinsIdHistoryWithResponse call

func (GetCoinsIdHistoryResponse) Status

func (r GetCoinsIdHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsIdHistoryResponse) StatusCode

func (r GetCoinsIdHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdMarketChartParams

type GetCoinsIdMarketChartParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// Days Data up to number of days ago (eg. 1,14,30,max)
	Days string `form:"days" json:"days"`

	// Interval Data interval. Possible value: daily
	Interval *string `form:"interval,omitempty" json:"interval,omitempty"`
}

GetCoinsIdMarketChartParams defines parameters for GetCoinsIdMarketChart.

type GetCoinsIdMarketChartRangeParams

type GetCoinsIdMarketChartRangeParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// From From date in UNIX Timestamp (eg. 1392577232)
	From string `form:"from" json:"from"`

	// To To date in UNIX Timestamp (eg. 1422577232)
	To string `form:"to" json:"to"`
}

GetCoinsIdMarketChartRangeParams defines parameters for GetCoinsIdMarketChartRange.

type GetCoinsIdMarketChartRangeResponse

type GetCoinsIdMarketChartRangeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdMarketChartRangeResponse

func ParseGetCoinsIdMarketChartRangeResponse(rsp *http.Response) (*GetCoinsIdMarketChartRangeResponse, error)

ParseGetCoinsIdMarketChartRangeResponse parses an HTTP response from a GetCoinsIdMarketChartRangeWithResponse call

func (GetCoinsIdMarketChartRangeResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsIdMarketChartRangeResponse) StatusCode

func (r GetCoinsIdMarketChartRangeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdMarketChartResponse

type GetCoinsIdMarketChartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdMarketChartResponse

func ParseGetCoinsIdMarketChartResponse(rsp *http.Response) (*GetCoinsIdMarketChartResponse, error)

ParseGetCoinsIdMarketChartResponse parses an HTTP response from a GetCoinsIdMarketChartWithResponse call

func (GetCoinsIdMarketChartResponse) Status

Status returns HTTPResponse.Status

func (GetCoinsIdMarketChartResponse) StatusCode

func (r GetCoinsIdMarketChartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdOhlcParams

type GetCoinsIdOhlcParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// Days  Data up to number of days ago (1/7/14/30/90/180/365/max)
	Days string `form:"days" json:"days"`
}

GetCoinsIdOhlcParams defines parameters for GetCoinsIdOhlc.

type GetCoinsIdOhlcResponse

type GetCoinsIdOhlcResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]float32
}

func ParseGetCoinsIdOhlcResponse

func ParseGetCoinsIdOhlcResponse(rsp *http.Response) (*GetCoinsIdOhlcResponse, error)

ParseGetCoinsIdOhlcResponse parses an HTTP response from a GetCoinsIdOhlcWithResponse call

func (GetCoinsIdOhlcResponse) Status

func (r GetCoinsIdOhlcResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsIdOhlcResponse) StatusCode

func (r GetCoinsIdOhlcResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdParams

type GetCoinsIdParams struct {
	// Localization Include all localized languages in response (true/false) <b>[default: true]</b>
	Localization *string `form:"localization,omitempty" json:"localization,omitempty"`

	// Tickers Include tickers data (true/false) <b>[default: true]</b>
	Tickers *bool `form:"tickers,omitempty" json:"tickers,omitempty"`

	// MarketData Include market_data (true/false) <b>[default: true]</b>
	MarketData *bool `form:"market_data,omitempty" json:"market_data,omitempty"`

	// CommunityData Include community_data data (true/false) <b>[default: true]</b>
	CommunityData *bool `form:"community_data,omitempty" json:"community_data,omitempty"`

	// DeveloperData Include developer_data data (true/false) <b>[default: true]</b>
	DeveloperData *bool `form:"developer_data,omitempty" json:"developer_data,omitempty"`

	// Sparkline Include sparkline 7 days data (eg. true, false) <b>[default: false]</b>
	Sparkline *bool `form:"sparkline,omitempty" json:"sparkline,omitempty"`
}

GetCoinsIdParams defines parameters for GetCoinsId.

type GetCoinsIdResponse

type GetCoinsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdResponse

func ParseGetCoinsIdResponse(rsp *http.Response) (*GetCoinsIdResponse, error)

ParseGetCoinsIdResponse parses an HTTP response from a GetCoinsIdWithResponse call

func (GetCoinsIdResponse) Status

func (r GetCoinsIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsIdResponse) StatusCode

func (r GetCoinsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsIdTickersParams

type GetCoinsIdTickersParams struct {
	// ExchangeIds filter results by exchange_ids (ref: v3/exchanges/list)
	ExchangeIds *string `form:"exchange_ids,omitempty" json:"exchange_ids,omitempty"`

	IncludeExchangeLogo *string `form:"include_exchange_logo,omitempty" json:"include_exchange_logo,omitempty"`

	// Page Page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Order valid values: <b>trust_score_desc (default), trust_score_asc and volume_desc</b>
	Order *string `form:"order,omitempty" json:"order,omitempty"`

	// Depth flag to show 2% orderbook depth. valid values: true, false
	Depth *string `form:"depth,omitempty" json:"depth,omitempty"`
}

GetCoinsIdTickersParams defines parameters for GetCoinsIdTickers.

type GetCoinsIdTickersResponse

type GetCoinsIdTickersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsIdTickersResponse

func ParseGetCoinsIdTickersResponse(rsp *http.Response) (*GetCoinsIdTickersResponse, error)

ParseGetCoinsIdTickersResponse parses an HTTP response from a GetCoinsIdTickersWithResponse call

func (GetCoinsIdTickersResponse) Status

func (r GetCoinsIdTickersResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsIdTickersResponse) StatusCode

func (r GetCoinsIdTickersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsListParams

type GetCoinsListParams struct {
	// IncludePlatform flag to include platform contract addresses (eg. 0x.... for Ethereum based tokens).
	//  valid values: true, false
	IncludePlatform *bool `form:"include_platform,omitempty" json:"include_platform,omitempty"`
}

GetCoinsListParams defines parameters for GetCoinsList.

type GetCoinsListResponse

type GetCoinsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Coin
}

func ParseGetCoinsListResponse

func ParseGetCoinsListResponse(rsp *http.Response) (*GetCoinsListResponse, error)

ParseGetCoinsListResponse parses an HTTP response from a GetCoinsListWithResponse call

func (GetCoinsListResponse) Status

func (r GetCoinsListResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsListResponse) StatusCode

func (r GetCoinsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoinsMarketsParams

type GetCoinsMarketsParams struct {
	// VsCurrency The target currency of market data (usd, eur, jpy, etc.)
	VsCurrency string `form:"vs_currency" json:"vs_currency"`

	// Ids The ids of the coin, comma separated crytocurrency symbols (base). refers to `/coins/list`.
	// <b>When left empty, returns numbers the coins observing the params `limit` and `start`</b>
	Ids *string `form:"ids,omitempty" json:"ids,omitempty"`

	// Category filter by coin category. Refer to /coin/categories/list
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Order valid values: <b>market_cap_desc, gecko_desc, gecko_asc, market_cap_asc, market_cap_desc, volume_asc, volume_desc, id_asc, id_desc</b>
	// sort results by field.
	Order *string `form:"order,omitempty" json:"order,omitempty"`

	// PerPage valid values: 1..250
	//  Total results per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page Page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Sparkline Include sparkline 7 days data (eg. true, false)
	Sparkline *bool `form:"sparkline,omitempty" json:"sparkline,omitempty"`

	// PriceChangePercentage Include price change percentage in <b>1h, 24h, 7d, 14d, 30d, 200d, 1y</b> (eg. '`1h,24h,7d`' comma-separated, invalid values will be discarded)
	PriceChangePercentage *string `form:"price_change_percentage,omitempty" json:"price_change_percentage,omitempty"`
}

GetCoinsMarketsParams defines parameters for GetCoinsMarkets.

type GetCoinsMarketsResponse

type GetCoinsMarketsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoinsMarketsResponse

func ParseGetCoinsMarketsResponse(rsp *http.Response) (*GetCoinsMarketsResponse, error)

ParseGetCoinsMarketsResponse parses an HTTP response from a GetCoinsMarketsWithResponse call

func (GetCoinsMarketsResponse) Status

func (r GetCoinsMarketsResponse) Status() string

Status returns HTTPResponse.Status

func (GetCoinsMarketsResponse) StatusCode

func (r GetCoinsMarketsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDerivativesExchangesIdParams

type GetDerivativesExchangesIdParams struct {
	// IncludeTickers ['all', 'unexpired'] - expired to show unexpired tickers, all to list all tickers, leave blank to omit tickers data in response
	IncludeTickers *string `form:"include_tickers,omitempty" json:"include_tickers,omitempty"`
}

GetDerivativesExchangesIdParams defines parameters for GetDerivativesExchangesId.

type GetDerivativesExchangesIdResponse

type GetDerivativesExchangesIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetDerivativesExchangesIdResponse

func ParseGetDerivativesExchangesIdResponse(rsp *http.Response) (*GetDerivativesExchangesIdResponse, error)

ParseGetDerivativesExchangesIdResponse parses an HTTP response from a GetDerivativesExchangesIdWithResponse call

func (GetDerivativesExchangesIdResponse) Status

Status returns HTTPResponse.Status

func (GetDerivativesExchangesIdResponse) StatusCode

func (r GetDerivativesExchangesIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDerivativesExchangesListResponse

type GetDerivativesExchangesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetDerivativesExchangesListResponse

func ParseGetDerivativesExchangesListResponse(rsp *http.Response) (*GetDerivativesExchangesListResponse, error)

ParseGetDerivativesExchangesListResponse parses an HTTP response from a GetDerivativesExchangesListWithResponse call

func (GetDerivativesExchangesListResponse) Status

Status returns HTTPResponse.Status

func (GetDerivativesExchangesListResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDerivativesExchangesParams

type GetDerivativesExchangesParams struct {
	// Order order results using following params name_asc,name_desc,open_interest_btc_asc,open_interest_btc_desc,trade_volume_24h_btc_asc,trade_volume_24h_btc_desc
	Order *string `form:"order,omitempty" json:"order,omitempty"`

	// PerPage Total results per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page Page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`
}

GetDerivativesExchangesParams defines parameters for GetDerivativesExchanges.

type GetDerivativesExchangesResponse

type GetDerivativesExchangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetDerivativesExchangesResponse

func ParseGetDerivativesExchangesResponse(rsp *http.Response) (*GetDerivativesExchangesResponse, error)

ParseGetDerivativesExchangesResponse parses an HTTP response from a GetDerivativesExchangesWithResponse call

func (GetDerivativesExchangesResponse) Status

Status returns HTTPResponse.Status

func (GetDerivativesExchangesResponse) StatusCode

func (r GetDerivativesExchangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDerivativesParams

type GetDerivativesParams struct {
	// IncludeTickers ['all', 'unexpired'] - expired to show unexpired tickers, all to list all tickers, defaults to unexpired
	IncludeTickers *string `form:"include_tickers,omitempty" json:"include_tickers,omitempty"`
}

GetDerivativesParams defines parameters for GetDerivatives.

type GetDerivativesResponse

type GetDerivativesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetDerivativesResponse

func ParseGetDerivativesResponse(rsp *http.Response) (*GetDerivativesResponse, error)

ParseGetDerivativesResponse parses an HTTP response from a GetDerivativesWithResponse call

func (GetDerivativesResponse) Status

func (r GetDerivativesResponse) Status() string

Status returns HTTPResponse.Status

func (GetDerivativesResponse) StatusCode

func (r GetDerivativesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangeRatesResponse

type GetExchangeRatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetExchangeRatesResponse

func ParseGetExchangeRatesResponse(rsp *http.Response) (*GetExchangeRatesResponse, error)

ParseGetExchangeRatesResponse parses an HTTP response from a GetExchangeRatesWithResponse call

func (GetExchangeRatesResponse) Status

func (r GetExchangeRatesResponse) Status() string

Status returns HTTPResponse.Status

func (GetExchangeRatesResponse) StatusCode

func (r GetExchangeRatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangeResponse

type GetExchangeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExchangeDetails
}

func ParseGetExchangeResponse

func ParseGetExchangeResponse(rsp *http.Response) (*GetExchangeResponse, error)

ParseGetExchangeResponse parses an HTTP response from a GetExchangeWithResponse call

func (GetExchangeResponse) Status

func (r GetExchangeResponse) Status() string

Status returns HTTPResponse.Status

func (GetExchangeResponse) StatusCode

func (r GetExchangeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangesIdTickersParams

type GetExchangesIdTickersParams struct {
	// CoinIds filter tickers by coin_ids (ref: v3/coins/list)
	CoinIds *string `form:"coin_ids,omitempty" json:"coin_ids,omitempty"`

	IncludeExchangeLogo *string `form:"include_exchange_logo,omitempty" json:"include_exchange_logo,omitempty"`

	// Page Page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Depth flag to show 2% orderbook depth i.e., cost_to_move_up_usd and cost_to_move_down_usd
	Depth *string `form:"depth,omitempty" json:"depth,omitempty"`

	// Order valid values: <b>trust_score_desc (default), trust_score_asc and volume_desc</b>
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetExchangesIdTickersParams defines parameters for GetExchangesIdTickers.

type GetExchangesIdTickersResponse

type GetExchangesIdTickersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetExchangesIdTickersResponse

func ParseGetExchangesIdTickersResponse(rsp *http.Response) (*GetExchangesIdTickersResponse, error)

ParseGetExchangesIdTickersResponse parses an HTTP response from a GetExchangesIdTickersWithResponse call

func (GetExchangesIdTickersResponse) Status

Status returns HTTPResponse.Status

func (GetExchangesIdTickersResponse) StatusCode

func (r GetExchangesIdTickersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangesIdVolumeChartParams

type GetExchangesIdVolumeChartParams struct {
	// Days  Data up to number of days ago (eg. 1,14,30)
	Days int `form:"days" json:"days"`
}

GetExchangesIdVolumeChartParams defines parameters for GetExchangesIdVolumeChart.

type GetExchangesIdVolumeChartResponse

type GetExchangesIdVolumeChartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetExchangesIdVolumeChartResponse

func ParseGetExchangesIdVolumeChartResponse(rsp *http.Response) (*GetExchangesIdVolumeChartResponse, error)

ParseGetExchangesIdVolumeChartResponse parses an HTTP response from a GetExchangesIdVolumeChartWithResponse call

func (GetExchangesIdVolumeChartResponse) Status

Status returns HTTPResponse.Status

func (GetExchangesIdVolumeChartResponse) StatusCode

func (r GetExchangesIdVolumeChartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangesListResponse

type GetExchangesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ExchangeIdName
}

func ParseGetExchangesListResponse

func ParseGetExchangesListResponse(rsp *http.Response) (*GetExchangesListResponse, error)

ParseGetExchangesListResponse parses an HTTP response from a GetExchangesListWithResponse call

func (GetExchangesListResponse) Status

func (r GetExchangesListResponse) Status() string

Status returns HTTPResponse.Status

func (GetExchangesListResponse) StatusCode

func (r GetExchangesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExchangesParams

type GetExchangesParams struct {
	// PerPage Valid values: 1...250
	// Total results per page
	// Default value:: 100
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`
}

GetExchangesParams defines parameters for GetExchanges.

type GetExchangesResponse

type GetExchangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Exchange
}

func ParseGetExchangesResponse

func ParseGetExchangesResponse(rsp *http.Response) (*GetExchangesResponse, error)

ParseGetExchangesResponse parses an HTTP response from a GetExchangesWithResponse call

func (GetExchangesResponse) Status

func (r GetExchangesResponse) Status() string

Status returns HTTPResponse.Status

func (GetExchangesResponse) StatusCode

func (r GetExchangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetGlobalResponse

type GetGlobalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetGlobalResponse

func ParseGetGlobalResponse(rsp *http.Response) (*GetGlobalResponse, error)

ParseGetGlobalResponse parses an HTTP response from a GetGlobalWithResponse call

func (GetGlobalResponse) Status

func (r GetGlobalResponse) Status() string

Status returns HTTPResponse.Status

func (GetGlobalResponse) StatusCode

func (r GetGlobalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIndexesListResponse

type GetIndexesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIndexesListResponse

func ParseGetIndexesListResponse(rsp *http.Response) (*GetIndexesListResponse, error)

ParseGetIndexesListResponse parses an HTTP response from a GetIndexesListWithResponse call

func (GetIndexesListResponse) Status

func (r GetIndexesListResponse) Status() string

Status returns HTTPResponse.Status

func (GetIndexesListResponse) StatusCode

func (r GetIndexesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIndexesMarketIdIdResponse

type GetIndexesMarketIdIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIndexesMarketIdIdResponse

func ParseGetIndexesMarketIdIdResponse(rsp *http.Response) (*GetIndexesMarketIdIdResponse, error)

ParseGetIndexesMarketIdIdResponse parses an HTTP response from a GetIndexesMarketIdIdWithResponse call

func (GetIndexesMarketIdIdResponse) Status

Status returns HTTPResponse.Status

func (GetIndexesMarketIdIdResponse) StatusCode

func (r GetIndexesMarketIdIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIndexesParams

type GetIndexesParams struct {
	// PerPage Total results per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page Page through results
	Page *int `form:"page,omitempty" json:"page,omitempty"`
}

GetIndexesParams defines parameters for GetIndexes.

type GetIndexesResponse

type GetIndexesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIndexesResponse

func ParseGetIndexesResponse(rsp *http.Response) (*GetIndexesResponse, error)

ParseGetIndexesResponse parses an HTTP response from a GetIndexesWithResponse call

func (GetIndexesResponse) Status

func (r GetIndexesResponse) Status() string

Status returns HTTPResponse.Status

func (GetIndexesResponse) StatusCode

func (r GetIndexesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPingResponse

type GetPingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetPingResponse

func ParseGetPingResponse(rsp *http.Response) (*GetPingResponse, error)

ParseGetPingResponse parses an HTTP response from a GetPingWithResponse call

func (GetPingResponse) Status

func (r GetPingResponse) Status() string

Status returns HTTPResponse.Status

func (GetPingResponse) StatusCode

func (r GetPingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSearchTrendingResponse

type GetSearchTrendingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetSearchTrendingResponse

func ParseGetSearchTrendingResponse(rsp *http.Response) (*GetSearchTrendingResponse, error)

ParseGetSearchTrendingResponse parses an HTTP response from a GetSearchTrendingWithResponse call

func (GetSearchTrendingResponse) Status

func (r GetSearchTrendingResponse) Status() string

Status returns HTTPResponse.Status

func (GetSearchTrendingResponse) StatusCode

func (r GetSearchTrendingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSimplePriceParams

type GetSimplePriceParams struct {
	// Ids id of coins, comma-separated if querying more than 1 coin
	// *refers to <b>`coins/list`</b>
	Ids string `form:"ids" json:"ids"`

	// VsCurrencies vs_currency of coins, comma-separated if querying more than 1 vs_currency
	// *refers to <b>`simple/supported_vs_currencies`</b>
	VsCurrencies string `form:"vs_currencies" json:"vs_currencies"`

	// IncludeMarketCap <b>true/false</b> to include market_cap, <b>default: false</b>
	IncludeMarketCap *string `form:"include_market_cap,omitempty" json:"include_market_cap,omitempty"`

	// Include24hrVol <b>true/false</b> to include 24hr_vol, <b>default: false</b>
	Include24hrVol *string `form:"include_24hr_vol,omitempty" json:"include_24hr_vol,omitempty"`

	// Include24hrChange <b>true/false</b> to include 24hr_change, <b>default: false</b>
	Include24hrChange *string `form:"include_24hr_change,omitempty" json:"include_24hr_change,omitempty"`

	// IncludeLastUpdatedAt <b>true/false</b> to include last_updated_at of price, <b>default: false</b>
	IncludeLastUpdatedAt *string `form:"include_last_updated_at,omitempty" json:"include_last_updated_at,omitempty"`
}

GetSimplePriceParams defines parameters for GetSimplePrice.

type GetSimplePriceResponse

type GetSimplePriceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetSimplePriceResponse

func ParseGetSimplePriceResponse(rsp *http.Response) (*GetSimplePriceResponse, error)

ParseGetSimplePriceResponse parses an HTTP response from a GetSimplePriceWithResponse call

func (GetSimplePriceResponse) Status

func (r GetSimplePriceResponse) Status() string

Status returns HTTPResponse.Status

func (GetSimplePriceResponse) StatusCode

func (r GetSimplePriceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSimpleSupportedVsCurrenciesResponse

type GetSimpleSupportedVsCurrenciesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetSimpleSupportedVsCurrenciesResponse

func ParseGetSimpleSupportedVsCurrenciesResponse(rsp *http.Response) (*GetSimpleSupportedVsCurrenciesResponse, error)

ParseGetSimpleSupportedVsCurrenciesResponse parses an HTTP response from a GetSimpleSupportedVsCurrenciesWithResponse call

func (GetSimpleSupportedVsCurrenciesResponse) Status

Status returns HTTPResponse.Status

func (GetSimpleSupportedVsCurrenciesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetSimpleTokenPriceIdParams

type GetSimpleTokenPriceIdParams struct {
	// ContractAddresses The contract address of tokens, comma separated
	ContractAddresses string `form:"contract_addresses" json:"contract_addresses"`

	// VsCurrencies vs_currency of coins, comma-separated if querying more than 1 vs_currency
	// *refers to <b>`simple/supported_vs_currencies`</b>
	VsCurrencies string `form:"vs_currencies" json:"vs_currencies"`

	// IncludeMarketCap <b>true/false</b> to include market_cap, <b>default: false</b>
	IncludeMarketCap *string `form:"include_market_cap,omitempty" json:"include_market_cap,omitempty"`

	// Include24hrVol <b>true/false</b> to include 24hr_vol, <b>default: false</b>
	Include24hrVol *string `form:"include_24hr_vol,omitempty" json:"include_24hr_vol,omitempty"`

	// Include24hrChange <b>true/false</b> to include 24hr_change, <b>default: false</b>
	Include24hrChange *string `form:"include_24hr_change,omitempty" json:"include_24hr_change,omitempty"`

	// IncludeLastUpdatedAt <b>true/false</b> to include last_updated_at of price, <b>default: false</b>
	IncludeLastUpdatedAt *string `form:"include_last_updated_at,omitempty" json:"include_last_updated_at,omitempty"`
}

GetSimpleTokenPriceIdParams defines parameters for GetSimpleTokenPriceId.

type GetSimpleTokenPriceIdResponse

type GetSimpleTokenPriceIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetSimpleTokenPriceIdResponse

func ParseGetSimpleTokenPriceIdResponse(rsp *http.Response) (*GetSimpleTokenPriceIdResponse, error)

ParseGetSimpleTokenPriceIdResponse parses an HTTP response from a GetSimpleTokenPriceIdWithResponse call

func (GetSimpleTokenPriceIdResponse) Status

Status returns HTTPResponse.Status

func (GetSimpleTokenPriceIdResponse) StatusCode

func (r GetSimpleTokenPriceIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Image

type Image struct {
	Large                string                 `json:"large"`
	Small                string                 `json:"small"`
	Thumb                string                 `json:"thumb"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Image defines model for image.

func (Image) Get

func (a Image) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Image. Returns the specified element and whether it was found

func (Image) MarshalJSON

func (a Image) MarshalJSON() ([]byte, error)

Override default JSON handling for Image to handle AdditionalProperties

func (*Image) Set

func (a *Image) Set(fieldName string, value interface{})

Setter for additional properties for Image

func (*Image) UnmarshalJSON

func (a *Image) UnmarshalJSON(b []byte) error

Override default JSON handling for Image to handle AdditionalProperties

type Market

type Market struct {
	HasTradingIncentive  *bool                  `json:"has_trading_incentive,omitempty"`
	Identifier           *string                `json:"identifier,omitempty"`
	Name                 *string                `json:"name,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Market defines model for market.

func (Market) Get

func (a Market) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Market. Returns the specified element and whether it was found

func (Market) MarshalJSON

func (a Market) MarshalJSON() ([]byte, error)

Override default JSON handling for Market to handle AdditionalProperties

func (*Market) Set

func (a *Market) Set(fieldName string, value interface{})

Setter for additional properties for Market

func (*Market) UnmarshalJSON

func (a *Market) UnmarshalJSON(b []byte) error

Override default JSON handling for Market to handle AdditionalProperties

type Project

type Project struct {
	Id                   string                 `json:"id"`
	Image                Image                  `json:"image"`
	Name                 string                 `json:"name"`
	Type                 string                 `json:"type"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Project defines model for project.

func (Project) Get

func (a Project) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Project. Returns the specified element and whether it was found

func (Project) MarshalJSON

func (a Project) MarshalJSON() ([]byte, error)

Override default JSON handling for Project to handle AdditionalProperties

func (*Project) Set

func (a *Project) Set(fieldName string, value interface{})

Setter for additional properties for Project

func (*Project) UnmarshalJSON

func (a *Project) UnmarshalJSON(b []byte) error

Override default JSON handling for Project to handle AdditionalProperties

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type StatusUpdate

type StatusUpdate struct {
	Category             string                 `json:"category"`
	CreatedAt            time.Time              `json:"created_at"`
	Description          string                 `json:"description"`
	Pin                  bool                   `json:"pin"`
	Project              *Project               `json:"project,omitempty"`
	User                 string                 `json:"user"`
	UserTitle            string                 `json:"user_title"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

StatusUpdate defines model for statusUpdate.

func (StatusUpdate) Get

func (a StatusUpdate) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for StatusUpdate. Returns the specified element and whether it was found

func (StatusUpdate) MarshalJSON

func (a StatusUpdate) MarshalJSON() ([]byte, error)

Override default JSON handling for StatusUpdate to handle AdditionalProperties

func (*StatusUpdate) Set

func (a *StatusUpdate) Set(fieldName string, value interface{})

Setter for additional properties for StatusUpdate

func (*StatusUpdate) UnmarshalJSON

func (a *StatusUpdate) UnmarshalJSON(b []byte) error

Override default JSON handling for StatusUpdate to handle AdditionalProperties

type Ticker

type Ticker struct {
	Base                   string                 `json:"base"`
	BidAskSpreadPercentage float64                `json:"bid_ask_spread_percentage"`
	CoinId                 string                 `json:"coin_id"`
	ConvertedLast          ConvertedDetails       `json:"converted_last"`
	ConvertedVolume        ConvertedDetails       `json:"converted_volume"`
	IsAnomaly              bool                   `json:"is_anomaly"`
	IsStale                bool                   `json:"is_stale"`
	Last                   float64                `json:"last"`
	LastFetchAt            time.Time              `json:"last_fetch_at"`
	LastTradedAt           time.Time              `json:"last_traded_at"`
	Market                 Market                 `json:"market"`
	Target                 string                 `json:"target"`
	TargetCoinId           string                 `json:"target_coin_id"`
	Timestamp              time.Time              `json:"timestamp"`
	TokenInfoUrl           *string                `json:"token_info_url,omitempty"`
	TradeUrl               string                 `json:"trade_url"`
	TrustScore             string                 `json:"trust_score"`
	Volume                 float64                `json:"volume"`
	AdditionalProperties   map[string]interface{} `json:"-"`
}

Ticker defines model for ticker.

func (Ticker) Get

func (a Ticker) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Ticker. Returns the specified element and whether it was found

func (Ticker) MarshalJSON

func (a Ticker) MarshalJSON() ([]byte, error)

Override default JSON handling for Ticker to handle AdditionalProperties

func (*Ticker) Set

func (a *Ticker) Set(fieldName string, value interface{})

Setter for additional properties for Ticker

func (*Ticker) UnmarshalJSON

func (a *Ticker) UnmarshalJSON(b []byte) error

Override default JSON handling for Ticker to handle AdditionalProperties

Jump to

Keyboard shortcuts

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