Skip to content

Commit

Permalink
binanceapi: adjust http timeout to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 9, 2022
1 parent d3dea28 commit df6a34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exchange/binance/binanceapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/c9s/bbgo/pkg/types"
)

const defaultHTTPTimeout = time.Second * 2
const defaultHTTPTimeout = time.Second * 10
const RestBaseURL = "https://api.binance.com"
const SandboxRestBaseURL = "https://testnet.binance.vision"
const DebugRequestResponse = false
Expand All @@ -37,7 +37,7 @@ var defaultTransport = &http.Transport{
MaxIdleConns: 100,
MaxConnsPerHost: 100,
MaxIdleConnsPerHost: 100,
//TLSNextProto: make(map[string]func(string, *tls.Conn) http.RoundTripper),
// TLSNextProto: make(map[string]func(string, *tls.Conn) http.RoundTripper),
ExpectContinueTimeout: 0,
ForceAttemptHTTP2: true,
TLSClientConfig: &tls.Config{},
Expand Down

0 comments on commit df6a34f

Please sign in to comment.