Documentation
¶
Index ¶
- Variables
- 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) Build(exName string) (api exws.API)
- func (builder *APIBuilder) BuildFuture(exName string) (api exws.FutureRestAPI)
- func (builder *APIBuilder) BuildFuturesWs(exName string) (exws.FuturesWsApi, error)
- func (builder *APIBuilder) BuildSpotWs(exName string) (exws.SpotWsApi, error)
- func (builder *APIBuilder) BuildWallet(exName string) (exws.WalletApi, error)
- func (builder *APIBuilder) ClientID(id string) (_builder *APIBuilder)
- func (builder *APIBuilder) Endpoint(endpoint string) (_builder *APIBuilder)
- func (builder *APIBuilder) FuturesEndpoint(endpoint string) (_builder *APIBuilder)
- func (builder *APIBuilder) FuturesLever(lever float64) (_builder *APIBuilder)
- func (builder *APIBuilder) GetHttpClient() *http.Client
- func (builder *APIBuilder) GetHttpClientConfig() *config.HttpClientConfig
- func (builder *APIBuilder) HttpProxy(proxyUrl string) (_builder *APIBuilder)
- func (builder *APIBuilder) HttpTimeout(timeout time.Duration) (_builder *APIBuilder)
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) 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)
Click to show internal directories.
Click to hide internal directories.