haifengat / pyctp

上期技术期货交易api之python封装,实现接口调用。支持windows linux.
Apache License 2.0
249 stars 130 forks source link

运行报错 #18

Open xiaodonggua1 opened 5 years ago

xiaodonggua1 commented 5 years ago

Traceback (most recent call last): File "D:/deyaTrade/test_api", line 82, in tt = TestTrade(front_trade, broker, investor, pwd, appid, auth_code, proc) File "D:/deyaTrade/test_api", line 23, in init self.t = CtpTrade() File "C:\Program Files\python36\lib\site-packages\py_ctp\trade.py", line 49, in init self.t = Trade() File "C:\Program Files\python36\lib\site-packages\py_ctp\ctp_trade.py", line 36, in init self.h = CDLL(absolute_dllfile_path) File "C:\Program Files\python36\lib\ctypes__init.py", line 348, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

xiaodonggua1 commented 5 years ago

用的是https://pypi.org/project/py-ctp/ 的测试代码