builder

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIBuilder

type APIBuilder struct {
	// 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) BuildSpot

func (builder *APIBuilder) BuildSpot(exName string) (api SpotAPI)

使用默认交易所连接地址构建

func (*APIBuilder) BuildSpotWebsocket

func (builder *APIBuilder) BuildSpotWebsocket(exName, proxyURL string) (ws SpotWebsocket, err error)

使用默认交易所连接地址构建

func (*APIBuilder) BuildSpotWebsocketWithURL

func (builder *APIBuilder) BuildSpotWebsocketWithURL(exName, wsURL, proxyURL string) (ws SpotWebsocket, err error)

使用自定义交易所连接地址构建

func (*APIBuilder) BuildSpotWithURL

func (builder *APIBuilder) BuildSpotWithURL(exName, wsURL string) (api SpotAPI)

使用自定义交易所连接地址构建

func (*APIBuilder) ClientID

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

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