public

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for public API

func (*Client) GetPublicAuth

func (a *Client) GetPublicAuth(params *GetPublicAuthParams) (*GetPublicAuthOK, error)
GetPublicAuth authenticates

Retrieve an Oauth access token, to be used for authentication of 'private' requests.

Three methods of authentication are supported:

- <code>password</code> - using email and and password as when logging on to the website - <code>client_credentials</code> - using the access key and access secret that can be found on the API page on the website - <code>client_signature</code> - using the access key that can be found on the API page on the website and user generated signature. The signature is calculated using some fields provided in the request, using formula described here [Deribit signature credentials](#additional-authorization-method-deribit-signature-credentials) - <code>refresh_token</code> - using a refresh token that was received from an earlier invocation

The response will contain an access token, expiration period (number of seconds that the token is valid) and a refresh token that can be used to get a new set of tokens.

func (*Client) GetPublicGetContractSize

func (a *Client) GetPublicGetContractSize(params *GetPublicGetContractSizeParams) (*GetPublicGetContractSizeOK, error)

GetPublicGetContractSize retrieves contract size of provided instrument

func (*Client) GetPublicGetCurrencies

func (a *Client) GetPublicGetCurrencies(params *GetPublicGetCurrenciesParams) (*GetPublicGetCurrenciesOK, error)

GetPublicGetCurrencies retrieves all cryptocurrencies supported by the API

func (*Client) GetPublicGetFundingChartData

func (a *Client) GetPublicGetFundingChartData(params *GetPublicGetFundingChartDataParams) (*GetPublicGetFundingChartDataOK, error)

GetPublicGetFundingChartData retrieves the latest user trades that have occurred for p e r p e t u a l instruments in a specific currency symbol and within given time range

func (*Client) GetPublicGetHistoricalVolatility

func (a *Client) GetPublicGetHistoricalVolatility(params *GetPublicGetHistoricalVolatilityParams) (*GetPublicGetHistoricalVolatilityOK, error)

GetPublicGetHistoricalVolatility provides information about historical volatility for given cryptocurrency

func (*Client) GetPublicGetInstruments

func (a *Client) GetPublicGetInstruments(params *GetPublicGetInstrumentsParams) (*GetPublicGetInstrumentsOK, error)

GetPublicGetInstruments retrieves available trading instruments this method can be used to see which instruments are available for trading or which instruments have existed historically

func (*Client) GetPublicGetTradingviewChartData

func (a *Client) GetPublicGetTradingviewChartData(params *GetPublicGetTradingviewChartDataParams) (*GetPublicGetTradingviewChartDataOK, error)

GetPublicGetTradingviewChartData publiclies available market data used to generate a trading view candle chart

func (*Client) GetPublicHello

func (a *Client) GetPublicHello(params *GetPublicHelloParams) (*GetPublicHelloOK, error)

GetPublicHello methods used to introduce the client software connected to deribit platform over websocket provided data may have an impact on the maintained connection and will be collected for internal statistical purposes in response deribit will also introduce itself

func (*Client) GetPublicSetHeartbeat

func (a *Client) GetPublicSetHeartbeat(params *GetPublicSetHeartbeatParams) (*GetPublicSetHeartbeatOK, error)

GetPublicSetHeartbeat signals the websocket connection to send and request heartbeats heartbeats can be used to detect stale connections when heartbeats have been set up the API server will send heartbeat messages and test request messages your software should respond to test request messages by sending a api v2 public test request if your software fails to do so the API server will immediately close the connection if your account is configured to cancel on disconnect any orders opened over the connection will be cancelled

func (*Client) GetPublicSubscribe

func (a *Client) GetPublicSubscribe(params *GetPublicSubscribeParams) (*GetPublicSubscribeOK, error)
GetPublicSubscribe subscribes to one or more channels

Subscribe to one or more channels.

This is the same method as [/private/subscribe](#private_subscribe), but it can only be used for 'public' channels.

func (*Client) GetPublicTest

func (a *Client) GetPublicTest(params *GetPublicTestParams) (*GetPublicTestOK, error)

GetPublicTest tests the connection to the API server and returns its version you can use this to make sure the API is reachable and matches the expected version

func (*Client) GetPublicTicker

func (a *Client) GetPublicTicker(params *GetPublicTickerParams) (*GetPublicTickerOK, error)

GetPublicTicker gets ticker for an instrument

func (*Client) GetPublicValidateField

func (a *Client) GetPublicValidateField(params *GetPublicValidateFieldParams) (*GetPublicValidateFieldOK, error)

GetPublicValidateField methods used to introduce the client software connected to deribit platform over websocket provided data may have an impact on the maintained connection and will be collected for internal statistical purposes in response deribit will also introduce itself

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetPublicAuth(params *GetPublicAuthParams) (*GetPublicAuthOK, error)

	GetPublicGetContractSize(params *GetPublicGetContractSizeParams) (*GetPublicGetContractSizeOK, error)

	GetPublicGetCurrencies(params *GetPublicGetCurrenciesParams) (*GetPublicGetCurrenciesOK, error)

	GetPublicGetFundingChartData(params *GetPublicGetFundingChartDataParams) (*GetPublicGetFundingChartDataOK, error)

	GetPublicGetHistoricalVolatility(params *GetPublicGetHistoricalVolatilityParams) (*GetPublicGetHistoricalVolatilityOK, error)

	GetPublicGetInstruments(params *GetPublicGetInstrumentsParams) (*GetPublicGetInstrumentsOK, error)

	GetPublicGetTradingviewChartData(params *GetPublicGetTradingviewChartDataParams) (*GetPublicGetTradingviewChartDataOK, error)

	GetPublicHello(params *GetPublicHelloParams) (*GetPublicHelloOK, error)

	GetPublicSetHeartbeat(params *GetPublicSetHeartbeatParams) (*GetPublicSetHeartbeatOK, error)

	GetPublicSubscribe(params *GetPublicSubscribeParams) (*GetPublicSubscribeOK, error)

	GetPublicTest(params *GetPublicTestParams) (*GetPublicTestOK, error)

	GetPublicTicker(params *GetPublicTickerParams) (*GetPublicTickerOK, error)

	GetPublicValidateField(params *GetPublicValidateFieldParams) (*GetPublicValidateFieldOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new public API client.

type GetPublicAuthOK

type GetPublicAuthOK struct {
	Payload *models.PublicAuthResponse
}

GetPublicAuthOK handles this case with default header values.

ok response

func NewGetPublicAuthOK

func NewGetPublicAuthOK() *GetPublicAuthOK

NewGetPublicAuthOK creates a GetPublicAuthOK with default headers values

func (*GetPublicAuthOK) Error

func (o *GetPublicAuthOK) Error() string

func (*GetPublicAuthOK) GetPayload

func (o *GetPublicAuthOK) GetPayload() *models.PublicAuthResponse

type GetPublicAuthParams

type GetPublicAuthParams struct {

	/*ClientID
	  Required for grant type `client_credentials` and `client_signature`

	*/
	ClientID string
	/*ClientSecret
	  Required for grant type `client_credentials`

	*/
	ClientSecret string
	/*GrantType
	  Method of authentication

	*/
	GrantType string
	/*Nonce
	  Optional for grant type `client_signature`; delivers user generated initialization vector for the server token

	*/
	Nonce *string
	/*Password
	  Required for grant type `password`

	*/
	Password string
	/*RefreshToken
	  Required for grant type `refresh_token`

	*/
	RefreshToken string
	/*Scope
	  Describes type of the access for assigned token, possible values: `connection`, `session:name`, `trade:[read, read_write, none]`, `wallet:[read, read_write, none]`, `account:[read, read_write, none]`, `expires:NUMBER`, `ip:ADDR`.</BR></BR> **NOTICE:** Depending on choosing an authentication method (“`grant type“`) some scopes could be narrowed by the server. e.g. when “`grant_type = client_credentials“` and “`scope = wallet:read_write“` it's modified by the server as “`scope = wallet:read“`</BR></BR> Please check details described in [Access scope](#access-scope)

	*/
	Scope *string
	/*Signature
	  Required for grant type `client_signature`; it's a cryptographic signature calculated over provided fields using user **secret key**. The signature should be calculated as an HMAC (Hash-based Message Authentication Code) with `SHA256` hash algorithm

	*/
	Signature string
	/*State
	  Will be passed back in the response

	*/
	State *string
	/*Timestamp
	  Required for grant type `client_signature`, provides time when request has been generated

	*/
	Timestamp string
	/*Username
	  Required for grant type `password`

	*/
	Username string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicAuthParams contains all the parameters to send to the API endpoint for the get public auth operation typically these are written to a http.Request

func NewGetPublicAuthParams

func NewGetPublicAuthParams() *GetPublicAuthParams

NewGetPublicAuthParams creates a new GetPublicAuthParams object with the default values initialized.

func NewGetPublicAuthParamsWithContext

func NewGetPublicAuthParamsWithContext(ctx context.Context) *GetPublicAuthParams

NewGetPublicAuthParamsWithContext creates a new GetPublicAuthParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicAuthParamsWithHTTPClient

func NewGetPublicAuthParamsWithHTTPClient(client *http.Client) *GetPublicAuthParams

NewGetPublicAuthParamsWithHTTPClient creates a new GetPublicAuthParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicAuthParamsWithTimeout

func NewGetPublicAuthParamsWithTimeout(timeout time.Duration) *GetPublicAuthParams

NewGetPublicAuthParamsWithTimeout creates a new GetPublicAuthParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicAuthParams) SetClientID

func (o *GetPublicAuthParams) SetClientID(clientID string)

SetClientID adds the clientId to the get public auth params

func (*GetPublicAuthParams) SetClientSecret

func (o *GetPublicAuthParams) SetClientSecret(clientSecret string)

SetClientSecret adds the clientSecret to the get public auth params

func (*GetPublicAuthParams) SetContext

func (o *GetPublicAuthParams) SetContext(ctx context.Context)

SetContext adds the context to the get public auth params

func (*GetPublicAuthParams) SetGrantType

func (o *GetPublicAuthParams) SetGrantType(grantType string)

SetGrantType adds the grantType to the get public auth params

func (*GetPublicAuthParams) SetHTTPClient

func (o *GetPublicAuthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public auth params

func (*GetPublicAuthParams) SetNonce

func (o *GetPublicAuthParams) SetNonce(nonce *string)

SetNonce adds the nonce to the get public auth params

func (*GetPublicAuthParams) SetPassword

func (o *GetPublicAuthParams) SetPassword(password string)

SetPassword adds the password to the get public auth params

func (*GetPublicAuthParams) SetRefreshToken

func (o *GetPublicAuthParams) SetRefreshToken(refreshToken string)

SetRefreshToken adds the refreshToken to the get public auth params

func (*GetPublicAuthParams) SetScope

func (o *GetPublicAuthParams) SetScope(scope *string)

SetScope adds the scope to the get public auth params

func (*GetPublicAuthParams) SetSignature

func (o *GetPublicAuthParams) SetSignature(signature string)

SetSignature adds the signature to the get public auth params

func (*GetPublicAuthParams) SetState

func (o *GetPublicAuthParams) SetState(state *string)

SetState adds the state to the get public auth params

func (*GetPublicAuthParams) SetTimeout

func (o *GetPublicAuthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public auth params

func (*GetPublicAuthParams) SetTimestamp

func (o *GetPublicAuthParams) SetTimestamp(timestamp string)

SetTimestamp adds the timestamp to the get public auth params

func (*GetPublicAuthParams) SetUsername

func (o *GetPublicAuthParams) SetUsername(username string)

SetUsername adds the username to the get public auth params

func (*GetPublicAuthParams) WithClientID

func (o *GetPublicAuthParams) WithClientID(clientID string) *GetPublicAuthParams

WithClientID adds the clientID to the get public auth params

func (*GetPublicAuthParams) WithClientSecret

func (o *GetPublicAuthParams) WithClientSecret(clientSecret string) *GetPublicAuthParams

WithClientSecret adds the clientSecret to the get public auth params

func (*GetPublicAuthParams) WithContext

WithContext adds the context to the get public auth params

func (*GetPublicAuthParams) WithGrantType

func (o *GetPublicAuthParams) WithGrantType(grantType string) *GetPublicAuthParams

WithGrantType adds the grantType to the get public auth params

func (*GetPublicAuthParams) WithHTTPClient

func (o *GetPublicAuthParams) WithHTTPClient(client *http.Client) *GetPublicAuthParams

WithHTTPClient adds the HTTPClient to the get public auth params

func (*GetPublicAuthParams) WithNonce

func (o *GetPublicAuthParams) WithNonce(nonce *string) *GetPublicAuthParams

WithNonce adds the nonce to the get public auth params

func (*GetPublicAuthParams) WithPassword

func (o *GetPublicAuthParams) WithPassword(password string) *GetPublicAuthParams

WithPassword adds the password to the get public auth params

func (*GetPublicAuthParams) WithRefreshToken

func (o *GetPublicAuthParams) WithRefreshToken(refreshToken string) *GetPublicAuthParams

WithRefreshToken adds the refreshToken to the get public auth params

func (*GetPublicAuthParams) WithScope

func (o *GetPublicAuthParams) WithScope(scope *string) *GetPublicAuthParams

WithScope adds the scope to the get public auth params

func (*GetPublicAuthParams) WithSignature

func (o *GetPublicAuthParams) WithSignature(signature string) *GetPublicAuthParams

WithSignature adds the signature to the get public auth params

func (*GetPublicAuthParams) WithState

func (o *GetPublicAuthParams) WithState(state *string) *GetPublicAuthParams

WithState adds the state to the get public auth params

func (*GetPublicAuthParams) WithTimeout

func (o *GetPublicAuthParams) WithTimeout(timeout time.Duration) *GetPublicAuthParams

WithTimeout adds the timeout to the get public auth params

func (*GetPublicAuthParams) WithTimestamp

func (o *GetPublicAuthParams) WithTimestamp(timestamp string) *GetPublicAuthParams

WithTimestamp adds the timestamp to the get public auth params

func (*GetPublicAuthParams) WithUsername

func (o *GetPublicAuthParams) WithUsername(username string) *GetPublicAuthParams

WithUsername adds the username to the get public auth params

func (*GetPublicAuthParams) WriteToRequest

func (o *GetPublicAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPublicAuthReader

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

GetPublicAuthReader is a Reader for the GetPublicAuth structure.

func (*GetPublicAuthReader) ReadResponse

func (o *GetPublicAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicAuthTooManyRequests

type GetPublicAuthTooManyRequests struct {
	Payload *models.ErrorMessage
}

GetPublicAuthTooManyRequests handles this case with default header values.

over limit

func NewGetPublicAuthTooManyRequests

func NewGetPublicAuthTooManyRequests() *GetPublicAuthTooManyRequests

NewGetPublicAuthTooManyRequests creates a GetPublicAuthTooManyRequests with default headers values

func (*GetPublicAuthTooManyRequests) Error

func (*GetPublicAuthTooManyRequests) GetPayload

type GetPublicGetContractSizeOK

type GetPublicGetContractSizeOK struct {
	Payload *models.PublicGetContractSizeResponse
}

GetPublicGetContractSizeOK handles this case with default header values.

ok response

func NewGetPublicGetContractSizeOK

func NewGetPublicGetContractSizeOK() *GetPublicGetContractSizeOK

NewGetPublicGetContractSizeOK creates a GetPublicGetContractSizeOK with default headers values

func (*GetPublicGetContractSizeOK) Error

func (*GetPublicGetContractSizeOK) GetPayload

type GetPublicGetContractSizeParams

type GetPublicGetContractSizeParams struct {

	/*InstrumentName
	  Instrument name

	*/
	InstrumentName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetContractSizeParams contains all the parameters to send to the API endpoint for the get public get contract size operation typically these are written to a http.Request

func NewGetPublicGetContractSizeParams

func NewGetPublicGetContractSizeParams() *GetPublicGetContractSizeParams

NewGetPublicGetContractSizeParams creates a new GetPublicGetContractSizeParams object with the default values initialized.

func NewGetPublicGetContractSizeParamsWithContext

func NewGetPublicGetContractSizeParamsWithContext(ctx context.Context) *GetPublicGetContractSizeParams

NewGetPublicGetContractSizeParamsWithContext creates a new GetPublicGetContractSizeParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetContractSizeParamsWithHTTPClient

func NewGetPublicGetContractSizeParamsWithHTTPClient(client *http.Client) *GetPublicGetContractSizeParams

NewGetPublicGetContractSizeParamsWithHTTPClient creates a new GetPublicGetContractSizeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetContractSizeParamsWithTimeout

func NewGetPublicGetContractSizeParamsWithTimeout(timeout time.Duration) *GetPublicGetContractSizeParams

NewGetPublicGetContractSizeParamsWithTimeout creates a new GetPublicGetContractSizeParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetContractSizeParams) SetContext

func (o *GetPublicGetContractSizeParams) SetContext(ctx context.Context)

SetContext adds the context to the get public get contract size params

func (*GetPublicGetContractSizeParams) SetHTTPClient

func (o *GetPublicGetContractSizeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get contract size params

func (*GetPublicGetContractSizeParams) SetInstrumentName

func (o *GetPublicGetContractSizeParams) SetInstrumentName(instrumentName string)

SetInstrumentName adds the instrumentName to the get public get contract size params

func (*GetPublicGetContractSizeParams) SetTimeout

func (o *GetPublicGetContractSizeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get contract size params

func (*GetPublicGetContractSizeParams) WithContext

WithContext adds the context to the get public get contract size params

func (*GetPublicGetContractSizeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get contract size params

func (*GetPublicGetContractSizeParams) WithInstrumentName

func (o *GetPublicGetContractSizeParams) WithInstrumentName(instrumentName string) *GetPublicGetContractSizeParams

WithInstrumentName adds the instrumentName to the get public get contract size params

func (*GetPublicGetContractSizeParams) WithTimeout

WithTimeout adds the timeout to the get public get contract size params

func (*GetPublicGetContractSizeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetContractSizeReader

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

GetPublicGetContractSizeReader is a Reader for the GetPublicGetContractSize structure.

func (*GetPublicGetContractSizeReader) ReadResponse

func (o *GetPublicGetContractSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicGetCurrenciesOK

type GetPublicGetCurrenciesOK struct {
	Payload *models.PublicGetCurrenciesResponse
}

GetPublicGetCurrenciesOK handles this case with default header values.

ok response

func NewGetPublicGetCurrenciesOK

func NewGetPublicGetCurrenciesOK() *GetPublicGetCurrenciesOK

NewGetPublicGetCurrenciesOK creates a GetPublicGetCurrenciesOK with default headers values

func (*GetPublicGetCurrenciesOK) Error

func (o *GetPublicGetCurrenciesOK) Error() string

func (*GetPublicGetCurrenciesOK) GetPayload

type GetPublicGetCurrenciesParams

type GetPublicGetCurrenciesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetCurrenciesParams contains all the parameters to send to the API endpoint for the get public get currencies operation typically these are written to a http.Request

func NewGetPublicGetCurrenciesParams

func NewGetPublicGetCurrenciesParams() *GetPublicGetCurrenciesParams

NewGetPublicGetCurrenciesParams creates a new GetPublicGetCurrenciesParams object with the default values initialized.

func NewGetPublicGetCurrenciesParamsWithContext

func NewGetPublicGetCurrenciesParamsWithContext(ctx context.Context) *GetPublicGetCurrenciesParams

NewGetPublicGetCurrenciesParamsWithContext creates a new GetPublicGetCurrenciesParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetCurrenciesParamsWithHTTPClient

func NewGetPublicGetCurrenciesParamsWithHTTPClient(client *http.Client) *GetPublicGetCurrenciesParams

NewGetPublicGetCurrenciesParamsWithHTTPClient creates a new GetPublicGetCurrenciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetCurrenciesParamsWithTimeout

func NewGetPublicGetCurrenciesParamsWithTimeout(timeout time.Duration) *GetPublicGetCurrenciesParams

NewGetPublicGetCurrenciesParamsWithTimeout creates a new GetPublicGetCurrenciesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetCurrenciesParams) SetContext

func (o *GetPublicGetCurrenciesParams) SetContext(ctx context.Context)

SetContext adds the context to the get public get currencies params

func (*GetPublicGetCurrenciesParams) SetHTTPClient

func (o *GetPublicGetCurrenciesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get currencies params

func (*GetPublicGetCurrenciesParams) SetTimeout

func (o *GetPublicGetCurrenciesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get currencies params

func (*GetPublicGetCurrenciesParams) WithContext

WithContext adds the context to the get public get currencies params

func (*GetPublicGetCurrenciesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get currencies params

func (*GetPublicGetCurrenciesParams) WithTimeout

WithTimeout adds the timeout to the get public get currencies params

func (*GetPublicGetCurrenciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetCurrenciesReader

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

GetPublicGetCurrenciesReader is a Reader for the GetPublicGetCurrencies structure.

func (*GetPublicGetCurrenciesReader) ReadResponse

func (o *GetPublicGetCurrenciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicGetFundingChartDataOK

type GetPublicGetFundingChartDataOK struct {
	Payload *models.PublicGetFundingChartDataResponse
}

GetPublicGetFundingChartDataOK handles this case with default header values.

GetPublicGetFundingChartDataOK get public get funding chart data o k

func NewGetPublicGetFundingChartDataOK

func NewGetPublicGetFundingChartDataOK() *GetPublicGetFundingChartDataOK

NewGetPublicGetFundingChartDataOK creates a GetPublicGetFundingChartDataOK with default headers values

func (*GetPublicGetFundingChartDataOK) Error

func (*GetPublicGetFundingChartDataOK) GetPayload

type GetPublicGetFundingChartDataParams

type GetPublicGetFundingChartDataParams struct {

	/*InstrumentName
	  Instrument name

	*/
	InstrumentName string
	/*Length
	  Specifies time period. `8h` - 8 hours, `24h` - 24 hours

	*/
	Length *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetFundingChartDataParams contains all the parameters to send to the API endpoint for the get public get funding chart data operation typically these are written to a http.Request

func NewGetPublicGetFundingChartDataParams

func NewGetPublicGetFundingChartDataParams() *GetPublicGetFundingChartDataParams

NewGetPublicGetFundingChartDataParams creates a new GetPublicGetFundingChartDataParams object with the default values initialized.

func NewGetPublicGetFundingChartDataParamsWithContext

func NewGetPublicGetFundingChartDataParamsWithContext(ctx context.Context) *GetPublicGetFundingChartDataParams

NewGetPublicGetFundingChartDataParamsWithContext creates a new GetPublicGetFundingChartDataParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetFundingChartDataParamsWithHTTPClient

func NewGetPublicGetFundingChartDataParamsWithHTTPClient(client *http.Client) *GetPublicGetFundingChartDataParams

NewGetPublicGetFundingChartDataParamsWithHTTPClient creates a new GetPublicGetFundingChartDataParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetFundingChartDataParamsWithTimeout

func NewGetPublicGetFundingChartDataParamsWithTimeout(timeout time.Duration) *GetPublicGetFundingChartDataParams

NewGetPublicGetFundingChartDataParamsWithTimeout creates a new GetPublicGetFundingChartDataParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetFundingChartDataParams) SetContext

SetContext adds the context to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) SetHTTPClient

func (o *GetPublicGetFundingChartDataParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) SetInstrumentName

func (o *GetPublicGetFundingChartDataParams) SetInstrumentName(instrumentName string)

SetInstrumentName adds the instrumentName to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) SetLength

func (o *GetPublicGetFundingChartDataParams) SetLength(length *string)

SetLength adds the length to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) SetTimeout

func (o *GetPublicGetFundingChartDataParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WithContext

WithContext adds the context to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WithInstrumentName

func (o *GetPublicGetFundingChartDataParams) WithInstrumentName(instrumentName string) *GetPublicGetFundingChartDataParams

WithInstrumentName adds the instrumentName to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WithLength

WithLength adds the length to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WithTimeout

WithTimeout adds the timeout to the get public get funding chart data params

func (*GetPublicGetFundingChartDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetFundingChartDataReader

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

GetPublicGetFundingChartDataReader is a Reader for the GetPublicGetFundingChartData structure.

func (*GetPublicGetFundingChartDataReader) ReadResponse

func (o *GetPublicGetFundingChartDataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicGetHistoricalVolatilityOK

type GetPublicGetHistoricalVolatilityOK struct {
	Payload *models.PublicGetHistoricalVolatilityResponse
}

GetPublicGetHistoricalVolatilityOK handles this case with default header values.

ok response

func NewGetPublicGetHistoricalVolatilityOK

func NewGetPublicGetHistoricalVolatilityOK() *GetPublicGetHistoricalVolatilityOK

NewGetPublicGetHistoricalVolatilityOK creates a GetPublicGetHistoricalVolatilityOK with default headers values

func (*GetPublicGetHistoricalVolatilityOK) Error

func (*GetPublicGetHistoricalVolatilityOK) GetPayload

type GetPublicGetHistoricalVolatilityParams

type GetPublicGetHistoricalVolatilityParams struct {

	/*Currency
	  The currency symbol

	*/
	Currency string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetHistoricalVolatilityParams contains all the parameters to send to the API endpoint for the get public get historical volatility operation typically these are written to a http.Request

func NewGetPublicGetHistoricalVolatilityParams

func NewGetPublicGetHistoricalVolatilityParams() *GetPublicGetHistoricalVolatilityParams

NewGetPublicGetHistoricalVolatilityParams creates a new GetPublicGetHistoricalVolatilityParams object with the default values initialized.

func NewGetPublicGetHistoricalVolatilityParamsWithContext

func NewGetPublicGetHistoricalVolatilityParamsWithContext(ctx context.Context) *GetPublicGetHistoricalVolatilityParams

NewGetPublicGetHistoricalVolatilityParamsWithContext creates a new GetPublicGetHistoricalVolatilityParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetHistoricalVolatilityParamsWithHTTPClient

func NewGetPublicGetHistoricalVolatilityParamsWithHTTPClient(client *http.Client) *GetPublicGetHistoricalVolatilityParams

NewGetPublicGetHistoricalVolatilityParamsWithHTTPClient creates a new GetPublicGetHistoricalVolatilityParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetHistoricalVolatilityParamsWithTimeout

func NewGetPublicGetHistoricalVolatilityParamsWithTimeout(timeout time.Duration) *GetPublicGetHistoricalVolatilityParams

NewGetPublicGetHistoricalVolatilityParamsWithTimeout creates a new GetPublicGetHistoricalVolatilityParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetHistoricalVolatilityParams) SetContext

SetContext adds the context to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) SetCurrency

func (o *GetPublicGetHistoricalVolatilityParams) SetCurrency(currency string)

SetCurrency adds the currency to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) SetHTTPClient

func (o *GetPublicGetHistoricalVolatilityParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) SetTimeout

func (o *GetPublicGetHistoricalVolatilityParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) WithContext

WithContext adds the context to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) WithCurrency

WithCurrency adds the currency to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) WithTimeout

WithTimeout adds the timeout to the get public get historical volatility params

func (*GetPublicGetHistoricalVolatilityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetHistoricalVolatilityReader

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

GetPublicGetHistoricalVolatilityReader is a Reader for the GetPublicGetHistoricalVolatility structure.

func (*GetPublicGetHistoricalVolatilityReader) ReadResponse

func (o *GetPublicGetHistoricalVolatilityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicGetInstrumentsOK

type GetPublicGetInstrumentsOK struct {
	Payload *models.PublicGetInstrumentsResponse
}

GetPublicGetInstrumentsOK handles this case with default header values.

ok response

func NewGetPublicGetInstrumentsOK

func NewGetPublicGetInstrumentsOK() *GetPublicGetInstrumentsOK

NewGetPublicGetInstrumentsOK creates a GetPublicGetInstrumentsOK with default headers values

func (*GetPublicGetInstrumentsOK) Error

func (o *GetPublicGetInstrumentsOK) Error() string

func (*GetPublicGetInstrumentsOK) GetPayload

type GetPublicGetInstrumentsParams

type GetPublicGetInstrumentsParams struct {

	/*Currency
	  The currency symbol

	*/
	Currency string
	/*Expired
	  Set to true to show expired instruments instead of active ones.

	*/
	Expired *bool
	/*Kind
	  Instrument kind, if not provided instruments of all kinds are considered

	*/
	Kind *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetInstrumentsParams contains all the parameters to send to the API endpoint for the get public get instruments operation typically these are written to a http.Request

func NewGetPublicGetInstrumentsParams

func NewGetPublicGetInstrumentsParams() *GetPublicGetInstrumentsParams

NewGetPublicGetInstrumentsParams creates a new GetPublicGetInstrumentsParams object with the default values initialized.

func NewGetPublicGetInstrumentsParamsWithContext

func NewGetPublicGetInstrumentsParamsWithContext(ctx context.Context) *GetPublicGetInstrumentsParams

NewGetPublicGetInstrumentsParamsWithContext creates a new GetPublicGetInstrumentsParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetInstrumentsParamsWithHTTPClient

func NewGetPublicGetInstrumentsParamsWithHTTPClient(client *http.Client) *GetPublicGetInstrumentsParams

NewGetPublicGetInstrumentsParamsWithHTTPClient creates a new GetPublicGetInstrumentsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetInstrumentsParamsWithTimeout

func NewGetPublicGetInstrumentsParamsWithTimeout(timeout time.Duration) *GetPublicGetInstrumentsParams

NewGetPublicGetInstrumentsParamsWithTimeout creates a new GetPublicGetInstrumentsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetInstrumentsParams) SetContext

func (o *GetPublicGetInstrumentsParams) SetContext(ctx context.Context)

SetContext adds the context to the get public get instruments params

func (*GetPublicGetInstrumentsParams) SetCurrency

func (o *GetPublicGetInstrumentsParams) SetCurrency(currency string)

SetCurrency adds the currency to the get public get instruments params

func (*GetPublicGetInstrumentsParams) SetExpired

func (o *GetPublicGetInstrumentsParams) SetExpired(expired *bool)

SetExpired adds the expired to the get public get instruments params

func (*GetPublicGetInstrumentsParams) SetHTTPClient

func (o *GetPublicGetInstrumentsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get instruments params

func (*GetPublicGetInstrumentsParams) SetKind

func (o *GetPublicGetInstrumentsParams) SetKind(kind *string)

SetKind adds the kind to the get public get instruments params

func (*GetPublicGetInstrumentsParams) SetTimeout

func (o *GetPublicGetInstrumentsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithContext

WithContext adds the context to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithCurrency

WithCurrency adds the currency to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithExpired

WithExpired adds the expired to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithKind

WithKind adds the kind to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WithTimeout

WithTimeout adds the timeout to the get public get instruments params

func (*GetPublicGetInstrumentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetInstrumentsReader

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

GetPublicGetInstrumentsReader is a Reader for the GetPublicGetInstruments structure.

func (*GetPublicGetInstrumentsReader) ReadResponse

func (o *GetPublicGetInstrumentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicGetTradingviewChartDataOK

type GetPublicGetTradingviewChartDataOK struct {
	Payload *models.PublicGetTradingviewChartDataResponse
}

GetPublicGetTradingviewChartDataOK handles this case with default header values.

GetPublicGetTradingviewChartDataOK get public get tradingview chart data o k

func NewGetPublicGetTradingviewChartDataOK

func NewGetPublicGetTradingviewChartDataOK() *GetPublicGetTradingviewChartDataOK

NewGetPublicGetTradingviewChartDataOK creates a GetPublicGetTradingviewChartDataOK with default headers values

func (*GetPublicGetTradingviewChartDataOK) Error

func (*GetPublicGetTradingviewChartDataOK) GetPayload

type GetPublicGetTradingviewChartDataParams

type GetPublicGetTradingviewChartDataParams struct {

	/*EndTimestamp
	  The most recent timestamp to return result for

	*/
	EndTimestamp int64
	/*InstrumentName
	  Instrument name

	*/
	InstrumentName string
	/*Resolution
	  Chart bars resolution given in full minutes or keyword `1D`

	*/
	Resolution string
	/*StartTimestamp
	  The earliest timestamp to return result for

	*/
	StartTimestamp int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicGetTradingviewChartDataParams contains all the parameters to send to the API endpoint for the get public get tradingview chart data operation typically these are written to a http.Request

func NewGetPublicGetTradingviewChartDataParams

func NewGetPublicGetTradingviewChartDataParams() *GetPublicGetTradingviewChartDataParams

NewGetPublicGetTradingviewChartDataParams creates a new GetPublicGetTradingviewChartDataParams object with the default values initialized.

func NewGetPublicGetTradingviewChartDataParamsWithContext

func NewGetPublicGetTradingviewChartDataParamsWithContext(ctx context.Context) *GetPublicGetTradingviewChartDataParams

NewGetPublicGetTradingviewChartDataParamsWithContext creates a new GetPublicGetTradingviewChartDataParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicGetTradingviewChartDataParamsWithHTTPClient

func NewGetPublicGetTradingviewChartDataParamsWithHTTPClient(client *http.Client) *GetPublicGetTradingviewChartDataParams

NewGetPublicGetTradingviewChartDataParamsWithHTTPClient creates a new GetPublicGetTradingviewChartDataParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicGetTradingviewChartDataParamsWithTimeout

func NewGetPublicGetTradingviewChartDataParamsWithTimeout(timeout time.Duration) *GetPublicGetTradingviewChartDataParams

NewGetPublicGetTradingviewChartDataParamsWithTimeout creates a new GetPublicGetTradingviewChartDataParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicGetTradingviewChartDataParams) SetContext

SetContext adds the context to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetEndTimestamp

func (o *GetPublicGetTradingviewChartDataParams) SetEndTimestamp(endTimestamp int64)

SetEndTimestamp adds the endTimestamp to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetHTTPClient

func (o *GetPublicGetTradingviewChartDataParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetInstrumentName

func (o *GetPublicGetTradingviewChartDataParams) SetInstrumentName(instrumentName string)

SetInstrumentName adds the instrumentName to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetResolution

func (o *GetPublicGetTradingviewChartDataParams) SetResolution(resolution string)

SetResolution adds the resolution to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetStartTimestamp

func (o *GetPublicGetTradingviewChartDataParams) SetStartTimestamp(startTimestamp int64)

SetStartTimestamp adds the startTimestamp to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) SetTimeout

func (o *GetPublicGetTradingviewChartDataParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithContext

WithContext adds the context to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithEndTimestamp

WithEndTimestamp adds the endTimestamp to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithInstrumentName

WithInstrumentName adds the instrumentName to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithResolution

WithResolution adds the resolution to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithStartTimestamp

WithStartTimestamp adds the startTimestamp to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WithTimeout

WithTimeout adds the timeout to the get public get tradingview chart data params

func (*GetPublicGetTradingviewChartDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicGetTradingviewChartDataReader

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

GetPublicGetTradingviewChartDataReader is a Reader for the GetPublicGetTradingviewChartData structure.

func (*GetPublicGetTradingviewChartDataReader) ReadResponse

func (o *GetPublicGetTradingviewChartDataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicHelloOK

type GetPublicHelloOK struct {
	Payload *models.PublicTestResponse
}

GetPublicHelloOK handles this case with default header values.

GetPublicHelloOK get public hello o k

func NewGetPublicHelloOK

func NewGetPublicHelloOK() *GetPublicHelloOK

NewGetPublicHelloOK creates a GetPublicHelloOK with default headers values

func (*GetPublicHelloOK) Error

func (o *GetPublicHelloOK) Error() string

func (*GetPublicHelloOK) GetPayload

func (o *GetPublicHelloOK) GetPayload() *models.PublicTestResponse

type GetPublicHelloParams

type GetPublicHelloParams struct {

	/*ClientName
	  Client software name

	*/
	ClientName string
	/*ClientVersion
	  Client software version

	*/
	ClientVersion string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicHelloParams contains all the parameters to send to the API endpoint for the get public hello operation typically these are written to a http.Request

func NewGetPublicHelloParams

func NewGetPublicHelloParams() *GetPublicHelloParams

NewGetPublicHelloParams creates a new GetPublicHelloParams object with the default values initialized.

func NewGetPublicHelloParamsWithContext

func NewGetPublicHelloParamsWithContext(ctx context.Context) *GetPublicHelloParams

NewGetPublicHelloParamsWithContext creates a new GetPublicHelloParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicHelloParamsWithHTTPClient

func NewGetPublicHelloParamsWithHTTPClient(client *http.Client) *GetPublicHelloParams

NewGetPublicHelloParamsWithHTTPClient creates a new GetPublicHelloParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicHelloParamsWithTimeout

func NewGetPublicHelloParamsWithTimeout(timeout time.Duration) *GetPublicHelloParams

NewGetPublicHelloParamsWithTimeout creates a new GetPublicHelloParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicHelloParams) SetClientName

func (o *GetPublicHelloParams) SetClientName(clientName string)

SetClientName adds the clientName to the get public hello params

func (*GetPublicHelloParams) SetClientVersion

func (o *GetPublicHelloParams) SetClientVersion(clientVersion string)

SetClientVersion adds the clientVersion to the get public hello params

func (*GetPublicHelloParams) SetContext

func (o *GetPublicHelloParams) SetContext(ctx context.Context)

SetContext adds the context to the get public hello params

func (*GetPublicHelloParams) SetHTTPClient

func (o *GetPublicHelloParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public hello params

func (*GetPublicHelloParams) SetTimeout

func (o *GetPublicHelloParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public hello params

func (*GetPublicHelloParams) WithClientName

func (o *GetPublicHelloParams) WithClientName(clientName string) *GetPublicHelloParams

WithClientName adds the clientName to the get public hello params

func (*GetPublicHelloParams) WithClientVersion

func (o *GetPublicHelloParams) WithClientVersion(clientVersion string) *GetPublicHelloParams

WithClientVersion adds the clientVersion to the get public hello params

func (*GetPublicHelloParams) WithContext

WithContext adds the context to the get public hello params

func (*GetPublicHelloParams) WithHTTPClient

func (o *GetPublicHelloParams) WithHTTPClient(client *http.Client) *GetPublicHelloParams

WithHTTPClient adds the HTTPClient to the get public hello params

func (*GetPublicHelloParams) WithTimeout

func (o *GetPublicHelloParams) WithTimeout(timeout time.Duration) *GetPublicHelloParams

WithTimeout adds the timeout to the get public hello params

func (*GetPublicHelloParams) WriteToRequest

func (o *GetPublicHelloParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPublicHelloReader

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

GetPublicHelloReader is a Reader for the GetPublicHello structure.

func (*GetPublicHelloReader) ReadResponse

func (o *GetPublicHelloReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicSetHeartbeatOK

type GetPublicSetHeartbeatOK struct {
	Payload *models.OkResponse
}

GetPublicSetHeartbeatOK handles this case with default header values.

GetPublicSetHeartbeatOK get public set heartbeat o k

func NewGetPublicSetHeartbeatOK

func NewGetPublicSetHeartbeatOK() *GetPublicSetHeartbeatOK

NewGetPublicSetHeartbeatOK creates a GetPublicSetHeartbeatOK with default headers values

func (*GetPublicSetHeartbeatOK) Error

func (o *GetPublicSetHeartbeatOK) Error() string

func (*GetPublicSetHeartbeatOK) GetPayload

func (o *GetPublicSetHeartbeatOK) GetPayload() *models.OkResponse

type GetPublicSetHeartbeatParams

type GetPublicSetHeartbeatParams struct {

	/*Interval
	  The heartbeat interval in seconds, but not less than 10

	*/
	Interval float64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicSetHeartbeatParams contains all the parameters to send to the API endpoint for the get public set heartbeat operation typically these are written to a http.Request

func NewGetPublicSetHeartbeatParams

func NewGetPublicSetHeartbeatParams() *GetPublicSetHeartbeatParams

NewGetPublicSetHeartbeatParams creates a new GetPublicSetHeartbeatParams object with the default values initialized.

func NewGetPublicSetHeartbeatParamsWithContext

func NewGetPublicSetHeartbeatParamsWithContext(ctx context.Context) *GetPublicSetHeartbeatParams

NewGetPublicSetHeartbeatParamsWithContext creates a new GetPublicSetHeartbeatParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicSetHeartbeatParamsWithHTTPClient

func NewGetPublicSetHeartbeatParamsWithHTTPClient(client *http.Client) *GetPublicSetHeartbeatParams

NewGetPublicSetHeartbeatParamsWithHTTPClient creates a new GetPublicSetHeartbeatParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicSetHeartbeatParamsWithTimeout

func NewGetPublicSetHeartbeatParamsWithTimeout(timeout time.Duration) *GetPublicSetHeartbeatParams

NewGetPublicSetHeartbeatParamsWithTimeout creates a new GetPublicSetHeartbeatParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicSetHeartbeatParams) SetContext

func (o *GetPublicSetHeartbeatParams) SetContext(ctx context.Context)

SetContext adds the context to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) SetHTTPClient

func (o *GetPublicSetHeartbeatParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) SetInterval

func (o *GetPublicSetHeartbeatParams) SetInterval(interval float64)

SetInterval adds the interval to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) SetTimeout

func (o *GetPublicSetHeartbeatParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) WithContext

WithContext adds the context to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) WithInterval

WithInterval adds the interval to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) WithTimeout

WithTimeout adds the timeout to the get public set heartbeat params

func (*GetPublicSetHeartbeatParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicSetHeartbeatReader

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

GetPublicSetHeartbeatReader is a Reader for the GetPublicSetHeartbeat structure.

func (*GetPublicSetHeartbeatReader) ReadResponse

func (o *GetPublicSetHeartbeatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicSubscribeOK

type GetPublicSubscribeOK struct {
	Payload *models.PrivateSubscribeResponse
}

GetPublicSubscribeOK handles this case with default header values.

ok response

func NewGetPublicSubscribeOK

func NewGetPublicSubscribeOK() *GetPublicSubscribeOK

NewGetPublicSubscribeOK creates a GetPublicSubscribeOK with default headers values

func (*GetPublicSubscribeOK) Error

func (o *GetPublicSubscribeOK) Error() string

func (*GetPublicSubscribeOK) GetPayload

type GetPublicSubscribeParams

type GetPublicSubscribeParams struct {

	/*Channels
	  A list of channels to subscribe to.

	*/
	Channels []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicSubscribeParams contains all the parameters to send to the API endpoint for the get public subscribe operation typically these are written to a http.Request

func NewGetPublicSubscribeParams

func NewGetPublicSubscribeParams() *GetPublicSubscribeParams

NewGetPublicSubscribeParams creates a new GetPublicSubscribeParams object with the default values initialized.

func NewGetPublicSubscribeParamsWithContext

func NewGetPublicSubscribeParamsWithContext(ctx context.Context) *GetPublicSubscribeParams

NewGetPublicSubscribeParamsWithContext creates a new GetPublicSubscribeParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicSubscribeParamsWithHTTPClient

func NewGetPublicSubscribeParamsWithHTTPClient(client *http.Client) *GetPublicSubscribeParams

NewGetPublicSubscribeParamsWithHTTPClient creates a new GetPublicSubscribeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicSubscribeParamsWithTimeout

func NewGetPublicSubscribeParamsWithTimeout(timeout time.Duration) *GetPublicSubscribeParams

NewGetPublicSubscribeParamsWithTimeout creates a new GetPublicSubscribeParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicSubscribeParams) SetChannels

func (o *GetPublicSubscribeParams) SetChannels(channels []string)

SetChannels adds the channels to the get public subscribe params

func (*GetPublicSubscribeParams) SetContext

func (o *GetPublicSubscribeParams) SetContext(ctx context.Context)

SetContext adds the context to the get public subscribe params

func (*GetPublicSubscribeParams) SetHTTPClient

func (o *GetPublicSubscribeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public subscribe params

func (*GetPublicSubscribeParams) SetTimeout

func (o *GetPublicSubscribeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public subscribe params

func (*GetPublicSubscribeParams) WithChannels

func (o *GetPublicSubscribeParams) WithChannels(channels []string) *GetPublicSubscribeParams

WithChannels adds the channels to the get public subscribe params

func (*GetPublicSubscribeParams) WithContext

WithContext adds the context to the get public subscribe params

func (*GetPublicSubscribeParams) WithHTTPClient

func (o *GetPublicSubscribeParams) WithHTTPClient(client *http.Client) *GetPublicSubscribeParams

WithHTTPClient adds the HTTPClient to the get public subscribe params

func (*GetPublicSubscribeParams) WithTimeout

WithTimeout adds the timeout to the get public subscribe params

func (*GetPublicSubscribeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicSubscribeReader

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

GetPublicSubscribeReader is a Reader for the GetPublicSubscribe structure.

func (*GetPublicSubscribeReader) ReadResponse

func (o *GetPublicSubscribeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicSubscribeUnauthorized

type GetPublicSubscribeUnauthorized struct {
	Payload *models.ErrorMessage
}

GetPublicSubscribeUnauthorized handles this case with default header values.

not authorised

func NewGetPublicSubscribeUnauthorized

func NewGetPublicSubscribeUnauthorized() *GetPublicSubscribeUnauthorized

NewGetPublicSubscribeUnauthorized creates a GetPublicSubscribeUnauthorized with default headers values

func (*GetPublicSubscribeUnauthorized) Error

func (*GetPublicSubscribeUnauthorized) GetPayload

type GetPublicTestOK

type GetPublicTestOK struct {
	Payload *models.PublicTestResponse
}

GetPublicTestOK handles this case with default header values.

GetPublicTestOK get public test o k

func NewGetPublicTestOK

func NewGetPublicTestOK() *GetPublicTestOK

NewGetPublicTestOK creates a GetPublicTestOK with default headers values

func (*GetPublicTestOK) Error

func (o *GetPublicTestOK) Error() string

func (*GetPublicTestOK) GetPayload

func (o *GetPublicTestOK) GetPayload() *models.PublicTestResponse

type GetPublicTestParams

type GetPublicTestParams struct {

	/*ExpectedResult
	  The value "exception" will trigger an error response. This may be useful for testing wrapper libraries.

	*/
	ExpectedResult *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicTestParams contains all the parameters to send to the API endpoint for the get public test operation typically these are written to a http.Request

func NewGetPublicTestParams

func NewGetPublicTestParams() *GetPublicTestParams

NewGetPublicTestParams creates a new GetPublicTestParams object with the default values initialized.

func NewGetPublicTestParamsWithContext

func NewGetPublicTestParamsWithContext(ctx context.Context) *GetPublicTestParams

NewGetPublicTestParamsWithContext creates a new GetPublicTestParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicTestParamsWithHTTPClient

func NewGetPublicTestParamsWithHTTPClient(client *http.Client) *GetPublicTestParams

NewGetPublicTestParamsWithHTTPClient creates a new GetPublicTestParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicTestParamsWithTimeout

func NewGetPublicTestParamsWithTimeout(timeout time.Duration) *GetPublicTestParams

NewGetPublicTestParamsWithTimeout creates a new GetPublicTestParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicTestParams) SetContext

func (o *GetPublicTestParams) SetContext(ctx context.Context)

SetContext adds the context to the get public test params

func (*GetPublicTestParams) SetExpectedResult

func (o *GetPublicTestParams) SetExpectedResult(expectedResult *string)

SetExpectedResult adds the expectedResult to the get public test params

func (*GetPublicTestParams) SetHTTPClient

func (o *GetPublicTestParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public test params

func (*GetPublicTestParams) SetTimeout

func (o *GetPublicTestParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public test params

func (*GetPublicTestParams) WithContext

WithContext adds the context to the get public test params

func (*GetPublicTestParams) WithExpectedResult

func (o *GetPublicTestParams) WithExpectedResult(expectedResult *string) *GetPublicTestParams

WithExpectedResult adds the expectedResult to the get public test params

func (*GetPublicTestParams) WithHTTPClient

func (o *GetPublicTestParams) WithHTTPClient(client *http.Client) *GetPublicTestParams

WithHTTPClient adds the HTTPClient to the get public test params

func (*GetPublicTestParams) WithTimeout

func (o *GetPublicTestParams) WithTimeout(timeout time.Duration) *GetPublicTestParams

WithTimeout adds the timeout to the get public test params

func (*GetPublicTestParams) WriteToRequest

func (o *GetPublicTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPublicTestReader

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

GetPublicTestReader is a Reader for the GetPublicTest structure.

func (*GetPublicTestReader) ReadResponse

func (o *GetPublicTestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicTickerOK

type GetPublicTickerOK struct {
	Payload *models.PublicTickerResponse
}

GetPublicTickerOK handles this case with default header values.

ok response

func NewGetPublicTickerOK

func NewGetPublicTickerOK() *GetPublicTickerOK

NewGetPublicTickerOK creates a GetPublicTickerOK with default headers values

func (*GetPublicTickerOK) Error

func (o *GetPublicTickerOK) Error() string

func (*GetPublicTickerOK) GetPayload

type GetPublicTickerParams

type GetPublicTickerParams struct {

	/*InstrumentName
	  Instrument name

	*/
	InstrumentName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicTickerParams contains all the parameters to send to the API endpoint for the get public ticker operation typically these are written to a http.Request

func NewGetPublicTickerParams

func NewGetPublicTickerParams() *GetPublicTickerParams

NewGetPublicTickerParams creates a new GetPublicTickerParams object with the default values initialized.

func NewGetPublicTickerParamsWithContext

func NewGetPublicTickerParamsWithContext(ctx context.Context) *GetPublicTickerParams

NewGetPublicTickerParamsWithContext creates a new GetPublicTickerParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicTickerParamsWithHTTPClient

func NewGetPublicTickerParamsWithHTTPClient(client *http.Client) *GetPublicTickerParams

NewGetPublicTickerParamsWithHTTPClient creates a new GetPublicTickerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicTickerParamsWithTimeout

func NewGetPublicTickerParamsWithTimeout(timeout time.Duration) *GetPublicTickerParams

NewGetPublicTickerParamsWithTimeout creates a new GetPublicTickerParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicTickerParams) SetContext

func (o *GetPublicTickerParams) SetContext(ctx context.Context)

SetContext adds the context to the get public ticker params

func (*GetPublicTickerParams) SetHTTPClient

func (o *GetPublicTickerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public ticker params

func (*GetPublicTickerParams) SetInstrumentName

func (o *GetPublicTickerParams) SetInstrumentName(instrumentName string)

SetInstrumentName adds the instrumentName to the get public ticker params

func (*GetPublicTickerParams) SetTimeout

func (o *GetPublicTickerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public ticker params

func (*GetPublicTickerParams) WithContext

WithContext adds the context to the get public ticker params

func (*GetPublicTickerParams) WithHTTPClient

func (o *GetPublicTickerParams) WithHTTPClient(client *http.Client) *GetPublicTickerParams

WithHTTPClient adds the HTTPClient to the get public ticker params

func (*GetPublicTickerParams) WithInstrumentName

func (o *GetPublicTickerParams) WithInstrumentName(instrumentName string) *GetPublicTickerParams

WithInstrumentName adds the instrumentName to the get public ticker params

func (*GetPublicTickerParams) WithTimeout

func (o *GetPublicTickerParams) WithTimeout(timeout time.Duration) *GetPublicTickerParams

WithTimeout adds the timeout to the get public ticker params

func (*GetPublicTickerParams) WriteToRequest

func (o *GetPublicTickerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPublicTickerReader

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

GetPublicTickerReader is a Reader for the GetPublicTicker structure.

func (*GetPublicTickerReader) ReadResponse

func (o *GetPublicTickerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicValidateFieldOK

type GetPublicValidateFieldOK struct {
	Payload *models.OkResponse
}

GetPublicValidateFieldOK handles this case with default header values.

GetPublicValidateFieldOK get public validate field o k

func NewGetPublicValidateFieldOK

func NewGetPublicValidateFieldOK() *GetPublicValidateFieldOK

NewGetPublicValidateFieldOK creates a GetPublicValidateFieldOK with default headers values

func (*GetPublicValidateFieldOK) Error

func (o *GetPublicValidateFieldOK) Error() string

func (*GetPublicValidateFieldOK) GetPayload

func (o *GetPublicValidateFieldOK) GetPayload() *models.OkResponse

type GetPublicValidateFieldParams

type GetPublicValidateFieldParams struct {

	/*Field
	  Name of the field to be validated, examples: postal_code, date_of_birth

	*/
	Field string
	/*Value
	  Value to be checked

	*/
	Value string
	/*Value2
	  Additional value to be compared with

	*/
	Value2 *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicValidateFieldParams contains all the parameters to send to the API endpoint for the get public validate field operation typically these are written to a http.Request

func NewGetPublicValidateFieldParams

func NewGetPublicValidateFieldParams() *GetPublicValidateFieldParams

NewGetPublicValidateFieldParams creates a new GetPublicValidateFieldParams object with the default values initialized.

func NewGetPublicValidateFieldParamsWithContext

func NewGetPublicValidateFieldParamsWithContext(ctx context.Context) *GetPublicValidateFieldParams

NewGetPublicValidateFieldParamsWithContext creates a new GetPublicValidateFieldParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublicValidateFieldParamsWithHTTPClient

func NewGetPublicValidateFieldParamsWithHTTPClient(client *http.Client) *GetPublicValidateFieldParams

NewGetPublicValidateFieldParamsWithHTTPClient creates a new GetPublicValidateFieldParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicValidateFieldParamsWithTimeout

func NewGetPublicValidateFieldParamsWithTimeout(timeout time.Duration) *GetPublicValidateFieldParams

NewGetPublicValidateFieldParamsWithTimeout creates a new GetPublicValidateFieldParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublicValidateFieldParams) SetContext

func (o *GetPublicValidateFieldParams) SetContext(ctx context.Context)

SetContext adds the context to the get public validate field params

func (*GetPublicValidateFieldParams) SetField

func (o *GetPublicValidateFieldParams) SetField(field string)

SetField adds the field to the get public validate field params

func (*GetPublicValidateFieldParams) SetHTTPClient

func (o *GetPublicValidateFieldParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get public validate field params

func (*GetPublicValidateFieldParams) SetTimeout

func (o *GetPublicValidateFieldParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get public validate field params

func (*GetPublicValidateFieldParams) SetValue

func (o *GetPublicValidateFieldParams) SetValue(value string)

SetValue adds the value to the get public validate field params

func (*GetPublicValidateFieldParams) SetValue2

func (o *GetPublicValidateFieldParams) SetValue2(value2 *string)

SetValue2 adds the value2 to the get public validate field params

func (*GetPublicValidateFieldParams) WithContext

WithContext adds the context to the get public validate field params

func (*GetPublicValidateFieldParams) WithField

WithField adds the field to the get public validate field params

func (*GetPublicValidateFieldParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public validate field params

func (*GetPublicValidateFieldParams) WithTimeout

WithTimeout adds the timeout to the get public validate field params

func (*GetPublicValidateFieldParams) WithValue

WithValue adds the value to the get public validate field params

func (*GetPublicValidateFieldParams) WithValue2

WithValue2 adds the value2 to the get public validate field params

func (*GetPublicValidateFieldParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicValidateFieldReader

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

GetPublicValidateFieldReader is a Reader for the GetPublicValidateField structure.

func (*GetPublicValidateFieldReader) ReadResponse

func (o *GetPublicValidateFieldReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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