api

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RestBaseURL = "https://api.kucoin.com/api"
View Source
const SandboxRestBaseURL = "https://openapi-sandbox.kucoin.com/api"

Variables

View Source
var DynamicPathRequestLimiter = rate.NewLimiter(5, 5)

Functions

This section is empty.

Types

type DynamicPathRequest added in v1.3.5

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

func (*DynamicPathRequest) Do added in v1.3.5

Do generates the request object and send the request object to the API endpoint

func (*DynamicPathRequest) GetDynamicPath added in v1.3.5

func (r *DynamicPathRequest) GetDynamicPath() (string, error)

func (*DynamicPathRequest) GetParameters added in v1.3.5

func (r *DynamicPathRequest) GetParameters() (map[string]interface{}, error)

GetParameters builds and checks the parameters and return the result in a map object

func (*DynamicPathRequest) GetParametersJSON added in v1.3.5

func (r *DynamicPathRequest) GetParametersJSON() ([]byte, error)

GetParametersJSON converts the parameters from GetParameters into the JSON format

func (*DynamicPathRequest) GetParametersQuery added in v1.3.5

func (r *DynamicPathRequest) GetParametersQuery() (url.Values, error)

GetParametersQuery converts the parameters from GetParameters into the url.Values format

func (*DynamicPathRequest) GetPath added in v1.3.5

func (r *DynamicPathRequest) GetPath() string

GetPath returns the request path of the API

func (*DynamicPathRequest) GetQueryParameters added in v1.3.5

func (r *DynamicPathRequest) GetQueryParameters() (url.Values, error)

GetQueryParameters builds and checks the query parameters and returns url.Values

func (*DynamicPathRequest) GetSlugParameters added in v1.3.5

func (r *DynamicPathRequest) GetSlugParameters() (map[string]interface{}, error)

GetSlugParameters builds and checks the slug parameters and return the result in a map object

func (*DynamicPathRequest) GetSlugsMap added in v1.3.5

func (r *DynamicPathRequest) GetSlugsMap() (map[string]string, error)

type NoParamRequest

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

func (*NoParamRequest) Do added in v1.3.5

Do generates the request object and send the request object to the API endpoint

func (*NoParamRequest) GetParameters added in v1.3.5

func (n *NoParamRequest) GetParameters() (map[string]interface{}, error)

GetParameters builds and checks the parameters and return the result in a map object

func (*NoParamRequest) GetParametersJSON added in v1.3.5

func (n *NoParamRequest) GetParametersJSON() ([]byte, error)

GetParametersJSON converts the parameters from GetParameters into the JSON format

func (*NoParamRequest) GetParametersQuery added in v1.3.5

func (n *NoParamRequest) GetParametersQuery() (url.Values, error)

GetParametersQuery converts the parameters from GetParameters into the url.Values format

func (*NoParamRequest) GetPath added in v1.3.5

func (n *NoParamRequest) GetPath() string

GetPath returns the request path of the API

func (*NoParamRequest) GetQueryParameters added in v1.3.5

func (n *NoParamRequest) GetQueryParameters() (url.Values, error)

GetQueryParameters builds and checks the query parameters and returns url.Values

func (*NoParamRequest) GetSlugParameters added in v1.3.5

func (n *NoParamRequest) GetSlugParameters() (map[string]interface{}, error)

GetSlugParameters builds and checks the slug parameters and return the result in a map object

func (*NoParamRequest) GetSlugsMap added in v1.3.5

func (n *NoParamRequest) GetSlugsMap() (map[string]string, error)

type NoParamResponse

type NoParamResponse struct {
	ID string `json:"id"`
}

type ResponseValidator added in v1.3.6

type ResponseValidator struct {
	RetCode int    `json:"ret_code"`
	Msg     string `json:"msg"`
}

func (ResponseValidator) Validate added in v1.3.6

func (n ResponseValidator) Validate() error

type ResponseValidatorRequest added in v1.3.6

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

func (*ResponseValidatorRequest) Do added in v1.3.6

Do generates the request object and send the request object to the API endpoint

func (*ResponseValidatorRequest) GetParameters added in v1.3.6

func (r *ResponseValidatorRequest) GetParameters() (map[string]interface{}, error)

GetParameters builds and checks the parameters and return the result in a map object

func (*ResponseValidatorRequest) GetParametersJSON added in v1.3.6

func (r *ResponseValidatorRequest) GetParametersJSON() ([]byte, error)

GetParametersJSON converts the parameters from GetParameters into the JSON format

func (*ResponseValidatorRequest) GetParametersQuery added in v1.3.6

func (r *ResponseValidatorRequest) GetParametersQuery() (url.Values, error)

GetParametersQuery converts the parameters from GetParameters into the url.Values format

func (*ResponseValidatorRequest) GetPath added in v1.3.6

func (r *ResponseValidatorRequest) GetPath() string

GetPath returns the request path of the API

func (*ResponseValidatorRequest) GetQueryParameters added in v1.3.6

func (r *ResponseValidatorRequest) GetQueryParameters() (url.Values, error)

GetQueryParameters builds and checks the query parameters and returns url.Values

func (*ResponseValidatorRequest) GetSlugParameters added in v1.3.6

func (r *ResponseValidatorRequest) GetSlugParameters() (map[string]interface{}, error)

GetSlugParameters builds and checks the slug parameters and return the result in a map object

func (*ResponseValidatorRequest) GetSlugsMap added in v1.3.6

func (r *ResponseValidatorRequest) GetSlugsMap() (map[string]string, error)

type RestClient

type RestClient struct {
	requestgen.BaseAPIClient

	Key, Secret, Passphrase string
	KeyVersion              string
}

func NewClient

func NewClient() *RestClient

func (*RestClient) Auth

func (c *RestClient) Auth(key, secret, passphrase string)

func (*RestClient) NewAuthenticatedRequest

func (c *RestClient) NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error)

NewAuthenticatedRequest creates new http request for authenticated routes.

Jump to

Keyboard shortcuts

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