spotprices

package
v0.0.6-developer-preview Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Configuration) (*Client, error)

func (*Client) GetCustomCurrenciesList

func (api *Client) GetCustomCurrenciesList(ctx context.Context) (*CurrenciesResponseDto, error)

GetCustomCurrenciesList Get List of custom currencies

func (*Client) GetPricesForRequestedTokens

func (api *Client) GetPricesForRequestedTokens(ctx context.Context, params GetPricesRequestDto) (*PricesForRequestedTokensResponse, error)

GetPricesForRequestedTokens Get prices for requested tokens (do not support too many tokens since it is HTTP GET)

func (*Client) GetPricesForRequestedTokensLarge

func (api *Client) GetPricesForRequestedTokensLarge(ctx context.Context, params GetPricesRequestDto) (*PricesForRequestedTokensResponse, error)

GetPricesForRequestedTokensLarge Get prices for requested tokens

func (*Client) GetPricesForWhitelistedTokens

func (api *Client) GetPricesForWhitelistedTokens(ctx context.Context, params GetWhitelistedTokensPricesParams) (*PricesForWhitelistedTokensResponse, error)

GetPricesForWhitelistedTokens Get Prices for whitelisted tokens

type Configuration

type Configuration struct {
	ApiKey string
	ApiURL string
	API    api
}

func NewConfiguration

func NewConfiguration(params ConfigurationParams) (*Configuration, error)

type ConfigurationParams

type ConfigurationParams struct {
	ChainId uint64
	ApiUrl  string
	ApiKey  string
}

type CurrenciesResponseDto

type CurrenciesResponseDto struct {
	Codes []string `json:"codes"`
}

CurrenciesResponseDto defines model for CurrenciesResponseDto.

type GetPricesForRequestedTokensJSONRequestBody

type GetPricesForRequestedTokensJSONRequestBody = GetPricesRequestDto

GetPricesForRequestedTokensJSONRequestBody defines body for GetPricesForRequestedTokens for application/json ContentType.

type GetPricesForRequestedTokensParams

type GetPricesForRequestedTokensParams struct {
	// Currency If no currency provided, then price returned in native Wei
	Currency GetPricesForRequestedTokensParamsCurrency `url:"currency,omitempty" json:"currency,omitempty"`
}

GetPricesForRequestedTokensParams defines parameters for GetPricesForRequestedTokens.

type GetPricesForRequestedTokensParamsCurrency

type GetPricesForRequestedTokensParamsCurrency string

GetPricesForRequestedTokensParamsCurrency defines parameters for GetPricesForRequestedTokens.

const (
	AED GetPricesForRequestedTokensParamsCurrency = "AED"
	ARS GetPricesForRequestedTokensParamsCurrency = "ARS"
	AUD GetPricesForRequestedTokensParamsCurrency = "AUD"
	BDT GetPricesForRequestedTokensParamsCurrency = "BDT"
	BHD GetPricesForRequestedTokensParamsCurrency = "BHD"
	BMD GetPricesForRequestedTokensParamsCurrency = "BMD"
	BRL GetPricesForRequestedTokensParamsCurrency = "BRL"
	CAD GetPricesForRequestedTokensParamsCurrency = "CAD"
	CHF GetPricesForRequestedTokensParamsCurrency = "CHF"
	CLP GetPricesForRequestedTokensParamsCurrency = "CLP"
	CNY GetPricesForRequestedTokensParamsCurrency = "CNY"
	CZK GetPricesForRequestedTokensParamsCurrency = "CZK"
	DKK GetPricesForRequestedTokensParamsCurrency = "DKK"
	EUR GetPricesForRequestedTokensParamsCurrency = "EUR"
	GBP GetPricesForRequestedTokensParamsCurrency = "GBP"
	HKD GetPricesForRequestedTokensParamsCurrency = "HKD"
	HUF GetPricesForRequestedTokensParamsCurrency = "HUF"
	IDR GetPricesForRequestedTokensParamsCurrency = "IDR"
	ILS GetPricesForRequestedTokensParamsCurrency = "ILS"
	INR GetPricesForRequestedTokensParamsCurrency = "INR"
	JPY GetPricesForRequestedTokensParamsCurrency = "JPY"
	KRW GetPricesForRequestedTokensParamsCurrency = "KRW"
	KWD GetPricesForRequestedTokensParamsCurrency = "KWD"
	LKR GetPricesForRequestedTokensParamsCurrency = "LKR"
	MMK GetPricesForRequestedTokensParamsCurrency = "MMK"
	MXN GetPricesForRequestedTokensParamsCurrency = "MXN"
	MYR GetPricesForRequestedTokensParamsCurrency = "MYR"
	NGN GetPricesForRequestedTokensParamsCurrency = "NGN"
	NOK GetPricesForRequestedTokensParamsCurrency = "NOK"
	NZD GetPricesForRequestedTokensParamsCurrency = "NZD"
	PHP GetPricesForRequestedTokensParamsCurrency = "PHP"
	PKR GetPricesForRequestedTokensParamsCurrency = "PKR"
	PLN GetPricesForRequestedTokensParamsCurrency = "PLN"
	RUB GetPricesForRequestedTokensParamsCurrency = "RUB"
	SAR GetPricesForRequestedTokensParamsCurrency = "SAR"
	SEK GetPricesForRequestedTokensParamsCurrency = "SEK"
	SGD GetPricesForRequestedTokensParamsCurrency = "SGD"
	THB GetPricesForRequestedTokensParamsCurrency = "THB"
	TRY GetPricesForRequestedTokensParamsCurrency = "TRY"
	TWD GetPricesForRequestedTokensParamsCurrency = "TWD"
	UAH GetPricesForRequestedTokensParamsCurrency = "UAH"
	USD GetPricesForRequestedTokensParamsCurrency = "USD"
	VEF GetPricesForRequestedTokensParamsCurrency = "VEF"
	VND GetPricesForRequestedTokensParamsCurrency = "VND"
	ZAR GetPricesForRequestedTokensParamsCurrency = "ZAR"
)

Defines values for GetPricesForRequestedTokensParamsCurrency.

type GetPricesRequestDto

type GetPricesRequestDto struct {
	// Currency If no currency provided, then price returned in native Wei
	Currency GetPricesRequestDtoCurrency `json:"currency,omitempty"`
	Tokens   []string                    `json:"tokens"`
}

GetPricesRequestDto defines model for GetPricesRequestDto.

func (*GetPricesRequestDto) Validate

func (params *GetPricesRequestDto) Validate() error

type GetPricesRequestDtoCurrency

type GetPricesRequestDtoCurrency string

GetPricesRequestDtoCurrency If no currency provided, then price returned in native Wei

const (
	GetPricesRequestDtoCurrencyUSD GetPricesRequestDtoCurrency = "USD"
)

Defines values for GetPricesRequestDtoCurrency.

type GetWhitelistedTokensPricesParams

type GetWhitelistedTokensPricesParams struct {
	// Currency If no currency provided, then price returned in native Wei
	Currency GetWhitelistedTokensPricesParamsCurrency `url:"currency,omitempty" json:"currency,omitempty"`
}

GetWhitelistedTokensPricesParams defines parameters for GetWhitelistedTokensPrices.

func (*GetWhitelistedTokensPricesParams) Validate

func (params *GetWhitelistedTokensPricesParams) Validate() error

type GetWhitelistedTokensPricesParamsCurrency

type GetWhitelistedTokensPricesParamsCurrency string

GetWhitelistedTokensPricesParamsCurrency defines parameters for GetWhitelistedTokensPrices.

const (
	GetWhitelistedTokensPricesParamsCurrencyAED GetWhitelistedTokensPricesParamsCurrency = "AED"
	GetWhitelistedTokensPricesParamsCurrencyARS GetWhitelistedTokensPricesParamsCurrency = "ARS"
	GetWhitelistedTokensPricesParamsCurrencyAUD GetWhitelistedTokensPricesParamsCurrency = "AUD"
	GetWhitelistedTokensPricesParamsCurrencyBDT GetWhitelistedTokensPricesParamsCurrency = "BDT"
	GetWhitelistedTokensPricesParamsCurrencyBHD GetWhitelistedTokensPricesParamsCurrency = "BHD"
	GetWhitelistedTokensPricesParamsCurrencyBMD GetWhitelistedTokensPricesParamsCurrency = "BMD"
	GetWhitelistedTokensPricesParamsCurrencyBRL GetWhitelistedTokensPricesParamsCurrency = "BRL"
	GetWhitelistedTokensPricesParamsCurrencyCAD GetWhitelistedTokensPricesParamsCurrency = "CAD"
	GetWhitelistedTokensPricesParamsCurrencyCHF GetWhitelistedTokensPricesParamsCurrency = "CHF"
	GetWhitelistedTokensPricesParamsCurrencyCLP GetWhitelistedTokensPricesParamsCurrency = "CLP"
	GetWhitelistedTokensPricesParamsCurrencyCNY GetWhitelistedTokensPricesParamsCurrency = "CNY"
	GetWhitelistedTokensPricesParamsCurrencyCZK GetWhitelistedTokensPricesParamsCurrency = "CZK"
	GetWhitelistedTokensPricesParamsCurrencyDKK GetWhitelistedTokensPricesParamsCurrency = "DKK"
	GetWhitelistedTokensPricesParamsCurrencyEUR GetWhitelistedTokensPricesParamsCurrency = "EUR"
	GetWhitelistedTokensPricesParamsCurrencyGBP GetWhitelistedTokensPricesParamsCurrency = "GBP"
	GetWhitelistedTokensPricesParamsCurrencyHKD GetWhitelistedTokensPricesParamsCurrency = "HKD"
	GetWhitelistedTokensPricesParamsCurrencyHUF GetWhitelistedTokensPricesParamsCurrency = "HUF"
	GetWhitelistedTokensPricesParamsCurrencyIDR GetWhitelistedTokensPricesParamsCurrency = "IDR"
	GetWhitelistedTokensPricesParamsCurrencyILS GetWhitelistedTokensPricesParamsCurrency = "ILS"
	GetWhitelistedTokensPricesParamsCurrencyINR GetWhitelistedTokensPricesParamsCurrency = "INR"
	GetWhitelistedTokensPricesParamsCurrencyJPY GetWhitelistedTokensPricesParamsCurrency = "JPY"
	GetWhitelistedTokensPricesParamsCurrencyKRW GetWhitelistedTokensPricesParamsCurrency = "KRW"
	GetWhitelistedTokensPricesParamsCurrencyKWD GetWhitelistedTokensPricesParamsCurrency = "KWD"
	GetWhitelistedTokensPricesParamsCurrencyLKR GetWhitelistedTokensPricesParamsCurrency = "LKR"
	GetWhitelistedTokensPricesParamsCurrencyMMK GetWhitelistedTokensPricesParamsCurrency = "MMK"
	GetWhitelistedTokensPricesParamsCurrencyMXN GetWhitelistedTokensPricesParamsCurrency = "MXN"
	GetWhitelistedTokensPricesParamsCurrencyMYR GetWhitelistedTokensPricesParamsCurrency = "MYR"
	GetWhitelistedTokensPricesParamsCurrencyNGN GetWhitelistedTokensPricesParamsCurrency = "NGN"
	GetWhitelistedTokensPricesParamsCurrencyNOK GetWhitelistedTokensPricesParamsCurrency = "NOK"
	GetWhitelistedTokensPricesParamsCurrencyNZD GetWhitelistedTokensPricesParamsCurrency = "NZD"
	GetWhitelistedTokensPricesParamsCurrencyPHP GetWhitelistedTokensPricesParamsCurrency = "PHP"
	GetWhitelistedTokensPricesParamsCurrencyPKR GetWhitelistedTokensPricesParamsCurrency = "PKR"
	GetWhitelistedTokensPricesParamsCurrencyPLN GetWhitelistedTokensPricesParamsCurrency = "PLN"
	GetWhitelistedTokensPricesParamsCurrencyRUB GetWhitelistedTokensPricesParamsCurrency = "RUB"
	GetWhitelistedTokensPricesParamsCurrencySAR GetWhitelistedTokensPricesParamsCurrency = "SAR"
	GetWhitelistedTokensPricesParamsCurrencySEK GetWhitelistedTokensPricesParamsCurrency = "SEK"
	GetWhitelistedTokensPricesParamsCurrencySGD GetWhitelistedTokensPricesParamsCurrency = "SGD"
	GetWhitelistedTokensPricesParamsCurrencyTHB GetWhitelistedTokensPricesParamsCurrency = "THB"
	GetWhitelistedTokensPricesParamsCurrencyTRY GetWhitelistedTokensPricesParamsCurrency = "TRY"
	GetWhitelistedTokensPricesParamsCurrencyTWD GetWhitelistedTokensPricesParamsCurrency = "TWD"
	GetWhitelistedTokensPricesParamsCurrencyUAH GetWhitelistedTokensPricesParamsCurrency = "UAH"
	GetWhitelistedTokensPricesParamsCurrencyUSD GetWhitelistedTokensPricesParamsCurrency = "USD"
	GetWhitelistedTokensPricesParamsCurrencyVEF GetWhitelistedTokensPricesParamsCurrency = "VEF"
	GetWhitelistedTokensPricesParamsCurrencyVND GetWhitelistedTokensPricesParamsCurrency = "VND"
	GetWhitelistedTokensPricesParamsCurrencyZAR GetWhitelistedTokensPricesParamsCurrency = "ZAR"
)

Defines values for GetWhitelistedTokensPricesParamsCurrency.

type PricesForRequestedTokensResponse

type PricesForRequestedTokensResponse map[string]string

PricesForRequestedTokensResponse is used instead of codegen struct to right now as params for API handle

type PricesForWhitelistedTokensResponse

type PricesForWhitelistedTokensResponse map[string]string

PricesForWhitelistedTokensResponse is used instead of codegen struct to right now as params for API handle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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