toorop / go-bittrex

Go binding for the Bittrex crypto-currency exchange API.
MIT License
230 stars 101 forks source link

httpTimeout field in client struct (used in connectTimer), new initialization functions #29

Closed ghost closed 7 years ago

ghost commented 7 years ago

HTTP timeout variable moved from bittrex.go to client struct in client.go file to achieve easier configurability. Added new initialization functions to create new client with specified timeout value. When passing custom HttpClient, its Timeout value is also set to httpTimeout field in client struct. HttpTimeout value in client struct is used in connectTimer.