报错自动停止运行,要怎么提升容错

Author: wangtaolue, Created: 2021-11-21 19:14:45, Updated:

2021-11-21 19:01:02 Futures_Binance 错误 Sell(4375.3, 0.032): 502: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <HTML><HEAD><META HTTP-EQUIV=“Content-Type” CONTENT=“text/html; charset=iso-8859-1”> <TITLE>ERROR: The request could not be satisfied</TITLE> </HEAD><BODY> <H1>502 ERROR</H1> <H2>The request could not be satisfied.</H2> <HR noshade size=“1px”> The origin closed the connection. We can’t connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. <BR clear=“all”> If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. <BR clear=“all”> <HR noshade size=“1px”> <PRE> Generated by cloudfront (CloudFront) Request ID: DljBV97uNoogEXLJOBuBi3JjQXprvIEfWL17DPmrT4IpSB7ifm5waA== </PRE> <ADDRESS> </ADDRESS> </BODY></HTML> 报了这个错误然后自动停止运行了,想问一下怎么提高加卖单的容错,好像不能把_C这个函数用在exchange.sell里面


More

program 重复测试买入可以通过try函数建立递归

诺宝 try: exchange.Sell XXX except: continue

小草 看你自己策略需求

wangtaolue 理解了谢谢

wangtaolue 这个是报错之后继续尝试挂卖单,还是就是直接跳过挂卖单这一步