binanceapi: adjust http timeout to 10s

This commit is contained in:
c9s 2022-12-09 21:30:33 +08:00
parent d3dea2870b
commit df6a34f5af

View File

@ -21,7 +21,7 @@ import (
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
) )
const defaultHTTPTimeout = time.Second * 2 const defaultHTTPTimeout = time.Second * 10
const RestBaseURL = "https://api.binance.com" const RestBaseURL = "https://api.binance.com"
const SandboxRestBaseURL = "https://testnet.binance.vision" const SandboxRestBaseURL = "https://testnet.binance.vision"
const DebugRequestResponse = false const DebugRequestResponse = false