Documentation ¶
Index ¶
- type APIBuilder
- func (builder *APIBuilder) APIKey(key string) (_builder *APIBuilder)
- func (builder *APIBuilder) APISecretkey(key string) (_builder *APIBuilder)
- func (builder *APIBuilder) ApiPassphrase(apiPassphrase string) (_builder *APIBuilder)
- func (builder *APIBuilder) BuildSpot(exName string) (api SpotAPI)
- func (builder *APIBuilder) BuildSpotWebsocket(exName, proxyURL string) (ws SpotWebsocket, err error)
- func (builder *APIBuilder) BuildSpotWebsocketWithURL(exName, wsURL, proxyURL string) (ws SpotWebsocket, err error)
- func (builder *APIBuilder) BuildSpotWithURL(exName, wsURL string) (api SpotAPI)
- func (builder *APIBuilder) ClientID(id string) (_builder *APIBuilder)
- func (builder *APIBuilder) HttpProxy(proxyUrl string) (_builder *APIBuilder)
- func (builder *APIBuilder) HttpTimeout(timeout time.Duration) (_builder *APIBuilder)
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)
Click to show internal directories.
Click to hide internal directories.