大家好,我委托下单之后撤单,收到了错误信息:撤单失败,尚未收到服务端返回的委托信息。
之前的下单现实的状态是提交中,不知道是我程序写的问题还是直达的问题呢?谢谢!
大家好,我想用vnpy从直达期货下载历史数据。但是测试了几个合约,得到了如下报错
"""
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "c:\vnstudio\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection
raise err
File "c:\vnstudio\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\urllib3\connectionpool.py", line 706, in urlopen
chunked=chunked,
File "c:\vnstudio\lib\site-packages\urllib3\connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "c:\vnstudio\lib\http\client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "c:\vnstudio\lib\http\client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "c:\vnstudio\lib\http\client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "c:\vnstudio\lib\http\client.py", line 1016, in _send_output
self.send(msg)
File "c:\vnstudio\lib\http\client.py", line 956, in send
self.connect()
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 200, in connect
conn = self._new_conn()
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001C966BF6358>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "c:\vnstudio\lib\site-packages\urllib3\connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "c:\vnstudio\lib\site-packages\urllib3\util\retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='222.73.120.40', port=8609): Max retries exceeded with url: /api/HistoryQuote?type=M1&exchangeNo=SGXQ&symbol=UC2112&startTime=2021-08-10&count=&endTime=2021-08-13 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001C966BF6358>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 600, in download
count = self.engine.download_bar_data(symbol, exchange, interval, start)
File "c:\vnstudio\lib\site-packages\vnpy_datamanager\engine.py", line 201, in download_bar_data
req, contract.gateway_name
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 216, in query_history
return gateway.query_history(req)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\da\da_gateway.py", line 188, in query_history
r = requests.get(path, headers=headers, params=params)
File "c:\vnstudio\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, kwargs)
File "c:\vnstudio\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, kwargs)
File "c:\vnstudio\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, send_kwargs)
File "c:\vnstudio\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, kwargs)
File "c:\vnstudio\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='222.73.120.40', port=8609): Max retries exceeded with url: /api/HistoryQuote?type=M1&exchangeNo=SGXQ&symbol=UC2112&startTime=2021-08-10&count=&endTime=2021-08-13 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001C966BF6358>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
"""
请问是什么原因呢?谢谢