Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

交易所错误 #7

Open
Mjzs12138 opened this issue Mar 7, 2024 · 0 comments
Open

交易所错误 #7

Mjzs12138 opened this issue Mar 7, 2024 · 0 comments

Comments

@Mjzs12138
Copy link

连接HK_FUTURE接口会出现如下错误:

Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/vnpy_futu/futu_gateway.py", line 162, in query_data
self.query_order()
File "/opt/homebrew/lib/python3.10/site-packages/vnpy_futu/futu_gateway.py", line 395, in query_order
self.process_order(data)
File "/opt/homebrew/lib/python3.10/site-packages/vnpy_futu/futu_gateway.py", line 538, in process_order
symbol, exchange = convert_symbol_futu2vt(row["code"])
File "/opt/homebrew/lib/python3.10/site-packages/vnpy_futu/futu_gateway.py", line 586, in convert_symbol_futu2vt
exchange = EXCHANGE_FUTU2VT[futu_exchange]
KeyError: 'SG'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant