Decrease binance search debounce period
parent
3e39e9620c
commit
e88e5b8ce2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue