Skip to content

Commit

Permalink
http client from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
secmask committed Jul 28, 2021
1 parent 8e940c3 commit 9d1f078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binance_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ type Client struct {
}

// NewClient create new client object
func NewClient(key, secret, apiBaseURL, futureAPIBaseURL string) *Client {
func NewClient(key, secret, apiBaseURL, futureAPIBaseURL string, hc *http.Client) *Client {
return &Client{
httpClient: &http.Client{Timeout: defaultTimeout},
apiKey: key,
secretKey: secret,
apiBaseURL: apiBaseURL,
futureAPIBaseURL: futureAPIBaseURL,
httpClient: hc,
}
}

Expand Down

0 comments on commit 9d1f078

Please sign in to comment.