Decrease binance search debounce period

symbol_search
Tyler Goodlet 2021-05-27 11:41:48 -04:00
parent 3e39e9620c
commit e88e5b8ce2
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ _ohlc_dtype = [
ohlc_dtype = np.dtype(_ohlc_dtype) ohlc_dtype = np.dtype(_ohlc_dtype)
_show_wap_in_history = False _show_wap_in_history = False
_search_conf = {'pause_period': 0.375} _search_conf = {'pause_period': 0.0616}
# https://binance-docs.github.io/apidocs/spot/en/#exchange-information # https://binance-docs.github.io/apidocs/spot/en/#exchange-information
@ -298,7 +298,7 @@ async def stream_messages(ws):
if cs.cancelled_caught: if cs.cancelled_caught:
timeouts += 1 timeouts += 1
if timeouts > 2: if timeouts > 10:
raise trio.TooSlowError("binance feed seems down?") raise trio.TooSlowError("binance feed seems down?")
continue continue