build

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAPIBuilder = NewAPIBuilder()

Functions

This section is empty.

Types

type APIBuilder

type APIBuilder struct {
	HttpClientConfig *config.HttpClientConfig
	// contains filtered or unexported fields
}

func NewAPIBuilder

func NewAPIBuilder() (builder *APIBuilder)

func NewCustomAPIBuilder

func NewCustomAPIBuilder(client *http.Client) (builder *APIBuilder)

func (*APIBuilder) APIKey

func (builder *APIBuilder) APIKey(key string) (_builder *APIBuilder)

func (*APIBuilder) APISecretkey

func (builder *APIBuilder) APISecretkey(key string) (_builder *APIBuilder)

func (*APIBuilder) ApiPassphrase

func (builder *APIBuilder) ApiPassphrase(apiPassphrase string) (_builder *APIBuilder)

func (*APIBuilder) Build

func (builder *APIBuilder) Build(exName string) (api exws.API)

func (*APIBuilder) BuildFuture

func (builder *APIBuilder) BuildFuture(exName string) (api exws.FutureRestAPI)

func (*APIBuilder) BuildFuturesWs

func (builder *APIBuilder) BuildFuturesWs(exName string) (exws.FuturesWsApi, error)

func (*APIBuilder) BuildSpotWs

func (builder *APIBuilder) BuildSpotWs(exName string) (exws.SpotWsApi, error)

func (*APIBuilder) BuildWallet

func (builder *APIBuilder) BuildWallet(exName string) (exws.WalletApi, error)

func (*APIBuilder) ClientID

func (builder *APIBuilder) ClientID(id string) (_builder *APIBuilder)

func (*APIBuilder) Endpoint

func (builder *APIBuilder) Endpoint(endpoint string) (_builder *APIBuilder)

func (*APIBuilder) FuturesEndpoint

func (builder *APIBuilder) FuturesEndpoint(endpoint string) (_builder *APIBuilder)

func (*APIBuilder) FuturesLever

func (builder *APIBuilder) FuturesLever(lever float64) (_builder *APIBuilder)

func (*APIBuilder) GetHttpClient

func (builder *APIBuilder) GetHttpClient() *http.Client

func (*APIBuilder) GetHttpClientConfig

func (builder *APIBuilder) GetHttpClientConfig() *config.HttpClientConfig

func (*APIBuilder) HttpProxy

func (builder *APIBuilder) HttpProxy(proxyUrl string) (_builder *APIBuilder)

func (*APIBuilder) HttpTimeout

func (builder *APIBuilder) HttpTimeout(timeout time.Duration) (_builder *APIBuilder)

Jump to

Keyboard shortcuts

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